Keysight Pathwave 89600 VSA .NET API
EnableChannelsById Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > Source Class : EnableChannelsById Method


sourceChannelIds
The channel IDs of source channels to enable in Channels collection.

Glossary Item Box

Selects which source channels in Channels are enabled.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub EnableChannelsById( _
   ByVal ParamArray sourceChannelIds() As ChannelId _
) 
C# 
public virtual void EnableChannelsById( 
   params ChannelId[] sourceChannelIds
)
C++/CLI 
public:
virtual void EnableChannelsById( 
   ... array<ChannelId>^ sourceChannelIds
) 

Parameters

sourceChannelIds
The channel IDs of source channels to enable in Channels collection.

Exceptions

ExceptionDescription
System.ArgumentExceptionIf the array is empty, any ID values are invalid, or duplicates of other ID values in the array.

Remarks

This method enables source channels with the specified channel IDs and disables all other source channels in the Channels collection.

In order to get an array of the current channel IDs of enabled source channels, the ChannelId property on the source channels in the Channels collection can be used with a filtered collection of enabled source channels. So for example in C# using a Linq expression the following code would return an array of the indexes of current enabled channels. Channels.Where(c => c.Enabled).Select(chan => chan.ChannelId).ToArray();

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

Minimum Software Version Requirement: Keysight PathWave 89600 VSA Ver 28.60

See Also