DigitalPinAndChannelMap.MapPinToChannel Method
- Updated2023-11-24
- 1 minute(s) read
DigitalPinAndChannelMapMapPinToChannel Method
Maps a pin to a digital pattern instrument channel.
Namespace: NationalInstruments.ModularInstruments.NIDigital
Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021
Syntax
public void MapPinToChannel( string pin, int site, string channel )
Public Sub MapPinToChannel ( pin As String, site As Integer, channel As String )
Parameters
- pin
- Type: SystemString
The name of the pin. - site
- Type: SystemInt32
The index of the site of the pin to map. This parameter is ignored if the specified pin is a system pin. - channel
- Type: SystemString
The name of the channel. Specify channel names using the channel number, for example, "0" or "31." To specify channels used in multi-instrument sessions, use the form PXI1Slot2/0 or PXI1Slot2/31.
Exceptions
Exception | Condition |
---|---|
SelectorNameException |
|
ArgumentException | The value for site is invalid. |
Remarks
This does not affect the pin and channel map files.
For a DUT pin, call this method once for each site. For system pins, call this method only once per pin because the method ignores the site parameter for system pins. You must call CreateChannelMap(Int32) before you call this method, and call EndChannelMap after creating all connections.