Voltage – Returns the analog input reading, which is generally a voltage.
4.2.18 - eDAC()
An easy function that writes a value to one analog output. This is a simple alternative to the very flexible IOType based method
normally used by this driver.
When needed, this function automatically enables the specified analog output.
Declaration:
LJ_ERROR _stdcall eDAC ( LJ_HANDLE Handle,
long Channel,
double Voltage,
long Binary,
long Reserved1,
long Reserved2)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
Handle – Handle returned by OpenLabJack().
Channel – The analog output channel to write to.
Voltage – The voltage to write to the analog output.
Binary – If this is nonzero (True), the value passed for Voltage should be binary. For example, pass 32768.0 in the double
parameter for mid-scale output.
Reserved (1&2) – Pass 0.
4.2.19 - eDI()
An easy function that reads the state of one digital input. This is a simple alternative to the very flexible IOType based method
normally used by this driver.
When needed, this function automatically configures the specified channel as a digital input.
Declaration:
LJ_ERROR _stdcall eDI ( LJ_HANDLE Handle,
long Channel,
long *State)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
Handle – Handle returned by OpenLabJack().
Channel – The channel to read. 0-19 corresponds to FIO0-CIO3.
Outputs:
State – Returns the state of the digital input. 0=False=Low and 1=True=High.
4.2.20 - eDO()
An easy function that writes the state of one digital output. This is a simple alternative to the very flexible IOType based method
normally used by this driver.
When needed, this function automatically configures the specified channel as a digital output.
Declaration:
LJ_ERROR _stdcall eDO ( LJ_HANDLE Handle,
long Channel,
long State)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
Handle – Handle returned by OpenLabJack().
Channel – The channel to write to. 0-19 corresponds to FIO0-CIO3.
State – The state to write to the digital output. 0=False=Low and 1=True=High.
4.2.21 - eTCConfig()
An easy function that configures and initializes all the timers and counters. This is a simple alternative to the very flexible IOType
based method normally used by this driver.
When needed, this function automatically configures the needed lines as digital.