Visual Basic (Declaration) | |
---|---|
Public Overridable Sub EnableChannels( _ ByVal ParamArray sourceChannelIndexes() As Integer _ ) |
C# | |
---|---|
public virtual void EnableChannels( params int[] sourceChannelIndexes ) |
C++/CLI | |
---|---|
public: virtual void EnableChannels( ... array<int>^ sourceChannelIndexes ) |
Parameters
- sourceChannelIndexes
- The zero-based source channel indexes in Channels collection of the source channels to be enabled.
Exception | Description |
---|---|
System.ArgumentException | If the array is empty, any values are negative, duplicates of other values in the array, or for logical channel indexes that are out of range. |
This method enables source channels with the specified indexes and disables all other source channels in the Channels collection.
In order to get an array of the current source channel indexes of enabled channels, the IndexOf method on 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.Select((chan, index) => index).Where(index => Channels[index].Enabled).ToArray();
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