Daqadcsetsetpoints – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 103

daqAdcSetSetpoints
Also See: daqAdcSetScan
Format
daqAdcSetSetpoints(handle, LimitA, LimitB, reserved, setpointFlags,
setpointOutput, output1, output2, outputMask1, outputMask2,
setpointCount)
Purpose
daqAdcSetSetpoints
allows the setting of up to 16 setpoints for a device.
Parameter Summary
Parameter Type
Description
handle
DaqHandleT
The handle to the device for which to set the option
limitA PFLOAT
Limit A specifies a value against which to determine if setpoint
criteria are met
limitB PLFOAT
Limit B specifies a value against which to determine if setpoint
criteria are met
reserved
PFLOAT
Reserved – reserved for future use
setpointFlags DWORD
The value of the option to set
setpointOutput DWORD
Output source or action: None, P2 Port C, Timer0-1, DAC0-3
output1 PFLOAT The value to output when the setpoint criteria are met
output2 PFLOAT
The value to output when the setpoint criteria are NOT met
outputMask1 PFLOAT
Output mask for output1 – for P2 Port C only
outputMask2 PFLOAT
Output mask for output2 – for P2 Port C only
setpointCount DWORD
Number of setpoints to configure (16 max)
Parameter Values
handle:
obtained from the daqOpen function
limitA:
any valid value for the input channel used for the setpoint
limitB:
any valid value for the input channel used for the setpoint
reserved:
not specified
setpointFlags:
see following table
setpointOutput:
see following table
output1:
any valid value for the output channel used for the setpoint
output2:
any valid value for the output channel used for the setpoint
setpointCount:
from 0 to 16
Parameter Type Definitions
setpointflags - DaqSetpointFlags
Definition
Description
DsfEqualLimitA
Setpoint criteria: Input Channel = limit A
DsfLessThanLimitA
Setpoint criteria: Input Channel < limit A
DsfGreaterThanLimitB
Setpoint criteria: Input Channel > limit B
DsfOutsideLimits
Setpoint criteria: Input Channel > limit A OR Input Channel < limit B
DsfInsideLimits
Setpoint criteria: Input Channel < limit A AND Input Channel > limit B
DsfHysteresis
Setpoint criteria: Input Channel > limit A then output1 Input Channel < limit B then
output2
DsfUpdateOnTrueOnly
If criteria met then output1
DsfUpdateOnTrueAndFalse
If criteria met then output1 else output2
For outside or inside window limits (DsfOutsideLimits, DsfInsideLimits) and for
hysteresis (DsfHysteresis) Limit A must be greater than Limit B. If this criteria is not
met DerrSetpointLimits error (error code 164) will be returned.
Programmer’s Manual
907794
Daq API Command Reference 4.2-47