DigitalPinAndChannelMap.CreateChannelMap Method
- Updated2023-11-24
- 1 minute(s) read
DigitalPinAndChannelMapCreateChannelMap Method
Creates a channel map, which translates the pin maps and sites to the instrument
channels. You must create the pin map using CreatePinMap(String, String)
before calling this method.
Namespace: NationalInstruments.ModularInstruments.NIDigital
Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021
Syntax
public void CreateChannelMap( int numberOfSites )
Public Sub CreateChannelMap ( numberOfSites As Integer )
Parameters
- numberOfSites
- Type: SystemInt32
Number of sites in the channel map.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The value for numberOfSites is invalid. |
InvalidOperationException |
|
Remarks
Use this method if you are not loading a pin map file using LoadPinMap(String).
You cannot modify the channel map within an instrument session after you load patterns or waveforms on the digital pattern instrument.
After calling this method, you can create channel map connections using MapPinToChannel(String, Int32, String). You must call EndChannelMap to finish creating a channel map.