User`s guide

FUNCTIONS
SDK SECTION 11
Page 253
SetIODirection
unsigned int WINAPI SetIODirection(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 sets the current state of a particular IO.
Parameters
int index: IO index
Valid values: 0 to
GetNumberIO() - 1
int iDirection: requested 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 set.
System not initialized.
Acquisition in progress.
Invalid index.
Invalid direction.
Feature not available.
See also
GetNumberIO GetIOLevel GetIODirection SetIOLevel
SetIOLevel
unsigned int WINAPI SetIOLevel(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 sets the current state of a particular IO.
Parameters
int index: IO index
Valid values: 0 to GetNumberIO() - 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 set.
System not initialized.
Acquisition in progress.
Invalid index.
Invalid level.
Feature not available.
See also
GetNumberIO GetIOLevel GetIODirection SetIODirection