imaqIOChangeDetectConfigure
Syntax
imaqIOChangeDetectConfigure, id, triggerType, triggerNumber, detectMode, filter
Purpose
Configures the signal state change detector logic of an input line on the NI-IMAQ I/O device. Use this function to arm the detection of rising edges, falling edges, or both on the specified input trigger line.
Parameters
id As IMAQIO_SESSION
The ID of the session to enable or disable shutdown on.
triggerType As IMAQIOSignalType
The type of trigger line to detect a change on.
triggerNumber As IMAQIOSignalType
The trigger number to detect a change on.
detectMode As IMAQIOChangeDetectMode
The change detection mode. This specifies what type of edge to be sensitive to.
filter As Long
Used to suppress high-frequency noise from the change detection. After receiving an edge, the trigger line must be held steady in the new logic state for filter × (25) ns in order for the device to register a successful change detection. Set this parameter to 0 to disable filtering.
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorTextVB.