eDAC() [UD Library]
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.