User Manual

4.2 EAnalogOut
Easy function. This is a simplified version of AOUpdate. Sets the voltage of both analog
outputs. Execution time for this function is 20 milliseconds or less.
Declaration:
long EAnalogOut ( long *idnum,
long demo,
float analogOut0,
float analogOut1 )
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.
analogOut0 – Voltage from 0.0 to 5.0 for AO0.
analogOut1 – Voltage from 0.0 to 5.0 for AO1.
Outputs:
*idnum – Returns the local ID or –1 if no LabJack is found.
4.3 ECount
Easy function. This is a simplified version of Counter. Reads & resets the counter (CNT).
Calling this function disables STB (which is the default anyway). Execution time for this function
is 20 milliseconds or less.
Declaration:
long ECount( long *idnum,
long demo,
long resetCounter,
double *count,
double *ms )
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.
*count – Current count, before reset.
*ms – Value of Window’s millisecond timer at the time of the counter read (within
a few ms). Note that the millisecond timer rolls over about every 50 days. In
general, the millisecond timer starts counting from zero whenever the computer
reboots.
4.4 EDigitalIn
Easy function. This is a simplified version of DigitalIO that reads the state of one digital input.
Also configures the requested pin to input and leaves it that way. Execution time for this
function is 20 milliseconds or less.