List Property
- Updated2023-02-21
- 3 minute(s) read
This property contains a SwitchScan.List, which is a string that specifies channel connections and trigger conditions. The SwitchScan.Initiate function makes or breaks connections and waits for triggers according to the instructions in the SwitchScan.List.
The SwitchScan.List is comprised of channel names that you separate with special characters. These special characters determine the operations the scanner performs on the channels when it executes this scan list.
Namespace:
NationalInstruments.ModularInstruments.NISwitch
Assembly:
NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)- To create a path between two channels, use the following character between the two channel names: -> (a dash followed by a '>' sign) Example: "CH1->CH2" tells the switch to make a path from channel CH1 to channel CH2.
- To break or clear a path, use the following character as a prefix before the path: ~ (tilde) Example: "~CH1->CH2" tells the switch to break the path from channel CH1 to channel CH2.
- To create a path between two channels, use the following character between the two channel names: -> (a dash followed by a '>' sign) Example: "CH1->CH2" tells the switch to make a path from channel CH1 to channel CH2.
- To tell the switch device to create multiple paths simultaneously, use the following character as a separator between the paths: , (comma) Example: "A->B;CH1->CH2,CH3->CH4" instructs the scanner to make the path between channels A and B, wait for a trigger, and then simultaneously make the paths between channels CH1 and CH2 and between channels CH3 and CH4.
Visual Basic (Declaration) |
---|
Public Property List As String |
C# |
---|
public string List { get; set; } |
Property Value
Type: System..::.String Specifies a String that indicates string that specifies channel connections and trigger conditions for scan operation.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The List was accessed after the associated NISwitch.NISwitch object was disposed. |