NI-Digital Pattern Driver .NET Class Library

Table of Contents

DigitalPinAndChannelMap.CreateChannelMap Method

  • Updated2023-11-24
  • 1 minute(s) read
DigitalPinAndChannelMap.CreateChannelMap Method

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

ExceptionCondition
ArgumentExceptionThe value for numberOfSites is invalid.
InvalidOperationException
  1. The channel map has already been configured.
  2. The channel map configuration is not complete.

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.

See Also

Log in to get a better experience