
Parameter Description:
Returns:
LabJack errorcodes or 0 for no error.
Inputs:
•
*idnum –
Local ID, serial number, or -1 for first found.
•
demo –
Send 0 for normal operation, >0 for demo mode. Demo mode allows
this function to be called without a LabJack.
•
resetCounter –
If >0, the counter is reset to zero after being read.
Outputs:
•
*idnum –
Returns the local ID or –1 if no LabJack is found.
•
*stateD –
States of D0-D15.
•
*stateIO –
States of IO0-IO3.
•
*count –
Current value of the 32-bit counter (CNT). This value is read before the
counter is reset.
4.10 DigitalIO
Reads and writes to all 20 digital I/O. Execution time for this function is 20 milliseconds or less.
Declaration:
long __cdecl DigitalIO (
long *idnum,
long
demo,
long *trisD,
long
trisIO,
long
*stateD,
long
*stateIO,
long
updateDigital,
long
*outputD
)
Parameter Description:
Returns:
LabJack errorcodes or 0 for no error.
Inputs:
•
*idnum –
Local ID, serial number, or -1 for first found.
•
demo –
Send 0 for normal operation, >0 for demo mode. Demo mode allows
this function to be called without a LabJack.
•
*trisD –
Directions for D0-D15. 0=Input, 1=Output.
•
trisIO –
Directions for IO0-IO3. 0=Input, 1=Output.
•
*stateD –
Output states for D0-D15.
•
*stateIO –
Output states for IO0-IO3.
•
updateDigital –
If >0, tris and state values will be written. Otherwise, just a read
is performed.
Outputs:
•
*idnum –
Returns the local ID or –1 if no LabJack is found.
•
*trisD –
Returns a read of the direction registers for D0-D15.
•
*stateD –
States of D0-D15.
•
*stateIO –
States of IO0-IO3.
•
*outputD –
Returns a read of the output registers for D0-D15.
4.11 GetDriverVersion
Returns the version number of ljackuw.dll.
Declaration:
float __cdecl GetDriverVersion ( void )