DAQmxSwitchGetSingleRelayPos
From NI-DAQmx C Functions
DAQmxSwitchGetSingleRelayPos
int32 DAQmxSwitchGetSingleRelayPos (const char relayName[], uInt32 *relayPos);
Purpose
Returns the current position of a single relay.
Parameters
| Input | |||||||||||
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| relayName |
|
The relay you want to query. | |||||||||
| Output | |||||||||||
| Name | Type | Description | |||||||||
| relayPos |
|
The position of the relay.
|
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. |