Configures up to 16 detection setpoints associated with the input channels within a scan group. This method only works with boards that support synchronous input.
Member of the MccBoard class.
VB .NET
Public Function DaqSetSetpoints(ByVal limitAArray As Single(), ByVal limitBArray As Single(), ByVal reserved As Single(), ByVal setpointFlagsArray As MccDaq.SetpointFlag, ByVal setpointOutputArray As MccDaq.SetpointOutput, ByVal output1Array As Single(), ByVal output2Array As Single(), outputMask1Array As Single(), outputMask2Array As Single(), ByVal setpointCount As Integer) As MccDaq.ErrorInfo
C# .NET
public MccDaq.ErrorInfo DaqSetSetpoints(float[] limitAArray, float[] limitBArray, float[] reserved, MccDaq.SetpointFlag[] setpointFlagsArray, MccDaq.SetpointOutput[] setpointOutputArray, float[] output1Array, float[] output2Array, float[] outputMask1Array, float[] outputMask2Array, int setpointCount)
limitAArray
Array containing the limit A values for the input channels used for the setpoint. Limit A specifies a value used to determine if the setpoint criteria are met.
limitBArray
Array containing the limit B values for the input channels used for the setpoint. Limit B specifies a value used to determine if the setpoint criteria are met.
reserved
Reserved for future use.
setpointFlagsArray
Array containing the setpoint flags.
All of the setpointFlagsArray settings are MccDaq.SetpointFlag enumerated constants. Set it to one of the constants in the setpointFlagsArray parameter values section below.
setpointOutputArray
Array containing output sources.
All of the setpointOutputArray settings are MccDaq.SetPointOutput enumerated constants. Set it to one of the constants in the setpointOutputArray parameter values section below.
output1Array
Array containing the values for the output channels used for the setpoint.
output2Array
Array containing the values for the output channels used for the setpoint.
outputMask1Array
Array containing the output masks for output value 1 (for FIRSTPORTC only).
outputMask2Array
Array containing the output masks for output value 2 (for FIRSTPORTC only).
setpointCount
Number of setpoints to configure (0 to 16). Set to 0 to disable the setpoints.
Flag | Description |
EqualLimitA | Setpoint criteria: The input channel = limit A. |
LessThanLimitA | Setpoint criteria: The input channel < limit A. |
GreaterThanLimitB | Setpoint criteria: The input channel > limit B. |
OutsideLimits | Setpoint criteria: The input channel < limit A and > limit B. |
InsideLimits | Setpoint criteria: The input channel > limit A and < limit B. |
Hysteresis | Setpoint criteria: If the input channel > limit A then output value 1. If the input channel < limit B then output value 2. |
UpdateOnTrueOnly | If the criteria is met then output value 1. |
UpdateOnTrueAndFalse | If the criteria is met then output value 1, else output value 2. |
Output source | Description |
None | Perform no outputs. |
FirstPortC | Output to FirstPortC when the criteria is met. |
DigitalPort | Output to digital port when the criteria is met. |
DAC0 | Output to DAC0 when the criteria is met. You must have a device with DAC0. |
DAC1 | Output to DAC1 when the criteria is met. You must have a device with DAC1. |
DAC2 | Output to DAC2 when the criteria is met. You must have a device with DAC2. |
DAC3 | Output to DAC3 when the criteria is met. You must have a device with DAC3. |
TMR0 | Output to timer 0 when the criteria is met. |
TMR1 | Output to timer 1 when the criteria is met. |