4.2.15 - TCVoltsToTemp()
A utility function to convert thermocouple voltage readings to temperature.
Declaration:
LJ_ERROR _stdcall TCVoltsToTemp ( long TCType,
double TCVolts,
double CJTempK,
double *pTCTempK)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
TCType
– A constant that specifies the thermocouple type, such as LJ_ttK.
TCVolts
– The thermocouple voltage.
CJTempK
– The temperature of the cold junction in degrees K.
Outputs:
pTCTempK
– Returns the calculated thermocouple temperature.
4.2.16 - ResetLabJack()
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 the UE9, this parameter is ignored. For single-ended channels on the
U3, this parameter should be 31 (see Section 2.7.1).
Range
– See the header file for input range constants.
Resolution
– Pass 12-17 to specify the resolution of the analog input reading, and 18 for a high-res reading from the UE9-
Pro. 0-11 corresponds to 12-bit.
Settling
– Pass 0 for the default settling. This parameter adds extra settling before the ADC conversion of about Settling
times 5 microseconds.
Binary
– If this is nonzero (True), the Voltage parameter will return the raw binary value.
Reserved (1&2)
– Pass 0.
Outputs:
37
Summary of Contents for UE9
Page 84: ...84 ...