DAQmxSwitchGetSingleRelayPos
int32 DAQmxSwitchGetSingleRelayPos (const char relayName[], uInt32 *relayPos);
Purpose
Returns the current position of a single relay.
Parameters
Input
|
Name |
Type |
Description |
relayName
|
const char []
|
The relay you want to query. |
Output
|
Name |
Type |
Description |
relayPos
|
uInt32 *
|
The position of the relay.
Value |
|
Description |
DAQmx_Val_Open
|
|
Relay is open. |
DAQmx_Val_Closed
|
|
Relay is closed. |
|
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. |