User`s guide

FUNCTIONS
SDK SECTION 11
Page 162
GetIODirection
unsigned int WINAPI GetIODirection(int index, int* iDirection)
Description
Available in some systems are a number of IO’s that can be configured to be inputs or
outputs. This function gets the current state of a particular IO.
Parameters
int index: IO index
Valid values: 0 to
GetNumberIO() - 1
int* iDirection: current direction for this index.
0: Output
1: Input
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_P1INVALID
DRV_P2INVALID
DRV_NOT_AVAILABLE
IO direction returned.
System not initialized.
Acquisition in progress.
Invalid index.
Invalid parameter.
Feature not available.
See also
GetNumberIO GetIOLevel SetIODirection SetIOLevel
GetIOLevel
unsigned int WINAPI GetIOLevel(int index, int* iLevel)
Description
Available in some systems are a number of IO’s that can be configured to be inputs or
outputs. This function gets the current state of a particular IO.
Parameters
int index: IO index
Valid values: 0 toGetNumberIO() - 1
int* iLevel: current level for this index.
0: Low
1: High
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_P1INVALID
DRV_P2INVALID
DRV_NOT_AVAILABLE
IO level returned.
System not initialized.
Acquisition in progress.
Invalid index.
Invalid parameter.
Feature not available.
See also
GetNumberIO GetIODirection SetIODirection SetIOLevel