Configures the scan triggers for the scan list established with ConfigureList. Refer to Device Help to determine if the switch module supports scanning. ConfigureTrigger sets the location that the switch expects to receive an input trigger to advance through the List. This method also sets the location where it outputs a scan advanced signal after it completes an entry in the scan list.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public void ConfigureTrigger(PrecisionTimeSpan scanDelay, string triggerInput, string advancedOutput)

Parameters

NameTypeDescription
scanDelayPrecisionTimeSpan

The minimum length of time you want the switch to wait after it creates a path until it asserts a trigger on the scan advanced output line. The driver uses this value to set the Delay attribute. The Delay is in addition to the SettlingTime. Express this value in seconds. The default value is 0.0 s.

triggerInputstring

Trigger source you want the switch module to use during scanning. The driver uses this value to set the TriggerInput attribute. The switch waits for the trigger you specify when it encounters a semicolon in the scan list. When the trigger occurs, the switch advances to the next entry in the scan list. Refer to SwitchScanTriggerInput for a list of valid values.

advancedOutputstring

Output destination of the scan advanced trigger signal. NI-SWITCH uses this value to set the AdvancedOutput attribute. After the switch processes each entry in the scan list, it waits the length of time you specify in the Delay parameter and then asserts a trigger on the line you specify with this parameter. Refer to SwitchScanAdvancedOutput for a list of valid values

Exceptions

TypeDescription
System.ObjectDisposedException

The ConfigureTrigger method was accessed after the associated NISwitch object was disposed.