ConfigureChannels Method

NI Signal Generators Help (NI-FGEN 18.1)

Edition Date: April 2018

Part Number: 370524V-01

»View Product Info
Download Help (Windows Only)

NIFgen Class See Also


Configures the channels used with the session.

Namespace: NationalInstruments.ModularInstruments.NIFgen

Assembly: NationalInstruments.ModularInstruments.NIFgen.Fx40 (in NationalInstruments.ModularInstruments.NIFgen.Fx40.dll) Version: 18.1.0.4 (18.1.0.4)

Syntax

Visual Basic (Declaration)
Public Sub ConfigureChannels ( _
	channels As String _
)

C#
public void ConfigureChannels(
	string channels
)

Parameters

channels
Type: System..::.String
The channel(s) that all subsequent channel-based properties in the session configure.

Exceptions

ExceptionCondition
Ivi.Driver.IviCDriverException The underlying NI-FGEN driver returned an error.
ArgumentException The channel(s) specified is invalid.

- or -

NIFgen.ConfigureChannels was called after the session had been committed or an attribute had been queried.
ObjectDisposedException ConfigureChannels was called after the associated NIFgen or FgenDriverUtility object was disposed.

Remarks

If you call this method, you must immediately call it after opening the session, and before configuring any properties or writing data.

Valid values for channels are non-negative integers. For example, 0 is the only valid value on devices with one channel, while devices with two channels support values of 0 and 1. You can specify more than one channel by inserting commas between values (for example, "0,1").

See Also

Reference

NIFgen Class

NationalInstruments.ModularInstruments.NIFgen Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful