NI-SCOPE .NET Class Library Help

Table of Contents

ScopeChannelCollection.Item Property

  • Updated2023-09-06
  • 1 minute(s) read
ScopeChannelCollection.Item Property

ScopeChannelCollectionItem Property

Gets a ScopeChannel object from the collection with the specified name. In Visual C#, this property is the indexer.
  • If the channel name is a string specifying a list or range of channels (e.g., "0,1,2" or "0-6"), a new ScopeChannel is created and returned. The ScopeChannel created is not added to the collection.
  • If the channel name corresponds to only one channel (e.g., "0" or "1") and if the channel has previously been accessed and cached in the collection, the corresponding ScopeChannel is returned; otherwise if the specified channel name exists on the instrument, a new ScopeChannel object is created, added to the collection, and returned.

Namespace:  NationalInstruments.ModularInstruments.NIScope
Assembly:  NationalInstruments.ModularInstruments.NIScope.Fx45 (in NationalInstruments.ModularInstruments.NIScope.Fx45.dll) Version: 2023

Syntax

public ScopeChannel this[
	string name
] { get; }
Public ReadOnly Default Property Item ( 
	name As String
) As ScopeChannel
	Get

Parameters

name
Type: SystemString
A string specifying the name of a single channel (e.g., "0"), a comma-separated list of channels (e.g., "0,1,2"), or range of channels (e.g., "0-2").

Property Value

Type: ScopeChannel
The ScopeChannel corresponding to the name of the channel.

Implements

IIviRepeatedCapabilityCollectionTItemString

See Also

Log in to get a better experience