EasyManua.ls Logo

LabJack U12 - Page 31

LabJack U12
61 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Declaration:
long 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.
demoSend 0 for normal operation, >0 for demo mode. Demo mode allows this function to be called without a LabJack.
*trisDDirections 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.
*trisDReturns a read of the direction registers for D0-D15.
*stateD – States of D0-D15.
*stateIO – States of IO0-IO3.
*outputDReturns a read of the output registers for D0-D15.
4.18 - GetDriverVersion
Returns the version number of ljackuw.dll. No hardware communication is involved.
Declaration:
float GetDriverVersion ( void )
Parameter Description:
Returns: Version number of ljackuw.dll.
ActiveX Function Differences:
Uses parameters to return DLL and OCX version.
Declaration (ActiveX):
void GetDriverVersionX ( float FAR* dllVersion,
float FAR* ocxVersion )
4.19 - GetErrorString
Converts a LabJack errorcode, returned by another function, into a string describing the error. No hardware communication is
involved.
Declaration:
void GetErrorString ( long errorcode,
char *errorString )
Parameter Description:
Returns: Nothing.
Inputs:
errorcode – LabJack errorcode.
*errorString – Pointer to a 50 element array of characters.
Outputs:
31

Other manuals for LabJack U12