Configures the List and Mode used for scanning. Refer to Switch Device Help to determine if the switch module supports scanning. The List is comprised of a list of channel connections separated by semicolons. For example, the following scan list will scan the first three channels of a multiplexer: com0->ch0; com0->ch1; com0->ch2; Refer to List for more information on scan list syntax. To see the status of the scan, call either IsScanning or WaitForScanComplete. Use the ConfigureTrigger method to configure the scan trigger. Use the Initiate method to start the scan.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public void ConfigureList(string scanList, SwitchScanMode scanMode)

Parameters

NameTypeDescription
scanListstring

The scan list to use. NI-SWITCH uses this value to set the List attribute.

scanModeSwitchScanMode

Specifies how the switch module breaks existing connections when scanning. The driver uses this value to set the Mode attribute. Refer to SwitchScanMode for more information. The default value is BreakBeforeMake.

Exceptions

TypeDescription
System.ObjectDisposedException

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