DaqSetSetpoints()

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.

Function Prototype

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)

Parameters

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.

Returns

setpointFlagsArray parameter values

FlagDescription
EqualLimitASetpoint criteria: The input channel = limit A.
LessThanLimitASetpoint criteria: The input channel < limit A.
GreaterThanLimitBSetpoint criteria: The input channel > limit B.
OutsideLimitsSetpoint criteria: The input channel < limit A and > limit B.
InsideLimitsSetpoint criteria: The input channel > limit A and < limit B.
HysteresisSetpoint criteria: If the input channel > limit A then output value 1. If the input channel < limit B then output value 2.
UpdateOnTrueOnlyIf the criteria is met then output value 1.
UpdateOnTrueAndFalseIf the criteria is met then output value 1, else output value 2.

setpointOutputArray parameter values

Output sourceDescription
NonePerform no outputs.
FirstPortCOutput to FirstPortC when the criteria is met.
DigitalPortOutput to digital port when the criteria is met.
DAC0Output to DAC0 when the criteria is met. You must have a device with DAC0.
DAC1Output to DAC1 when the criteria is met. You must have a device with DAC1.
DAC2Output to DAC2 when the criteria is met. You must have a device with DAC2.
DAC3Output to DAC3 when the criteria is met. You must have a device with DAC3.
TMR0Output to timer 0 when the criteria is met.
TMR1Output to timer 1 when the criteria is met.