DAQmxSwitchGetSingleRelayCount
int32 DAQmxSwitchGetSingleRelayCount (const char relayName[], uInt32 *count);
Purpose
Returns the number of times a single relay has been actuated. Use this function to track relay lifetime and usage. You must set the waitForSettling parameter of Switch functions to TRUE to obtain an accurate relay count.
Parameters
Input | ||
Name | Type | Description |
---|---|---|
relayName |
|
The relay you want to query. |
Output | ||
Name | Type | Description |
count |
|
The number of times the relay has been actuated. |
Return Value
Name | Type | Description |
---|---|---|
status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |