Sends a reset command to the LabJack hardware. Reset causes the device to go to the reset/power-up configuration.
Resetting the LabJack does not invalidate the handle, thus the device does not have to be opened again after a reset, but a Go
call is likely to fail for a couple seconds after until the LabJack is ready.
In a future driver release, this function might be given an additional parameter that determines the type of reset.
Declaration:
LJ_ERROR _stdcall ResetLabJack ( LJ_HANDLE Handle );
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
Handle
– Handle returned by OpenLabJack().
Outputs:
None
4.2.17 - eAIN()
An easy function that returns a reading from one analog 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(s) for analog input.
Declaration:
LJ_ERROR _stdcall eAIN ( LJ_HANDLE Handle,
long ChannelP,
long ChannelN,
double *Voltage,
long Range,
long Resolution,
long Settling,
long Binary,
long Reserved1,
long Reserved2)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
Handle
– Handle returned by OpenLabJack().
ChannelP
– The positive AIN channel to acquire.
ChannelN
– The negative AIN channel to acquire. For single-ended channels on the U3, this parameter should be 31 or 199
(see Section 2.6.1).
Range
– Ignored on the U3.
Resolution
– Pass a nonzero value to enable QuickSample.
Settling
– Pass a nonzero value to enable LongSettling.
Binary
– If this is nonzero (True), the Voltage parameter will return the raw binary value.
Reserved (1&2)
– Pass 0.
Outputs:
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:
31