Keysight 89600 VSA .NET API
Create(Type,String) Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Keysight.SA.Vsa Namespace > ModeCollection Class > Create Method : Create(Type,String) Method


modeConfigurationType
Type to use for ModeConfiguration of new Mode.
name
Name to use for created Mode.

Glossary Item Box

Create a new Mode using the indicated ModeConfiguration type, with the supplied name.

Syntax

Visual Basic (Declaration) 
Public Overloads MustOverride Function Create( _
   ByVal modeConfigurationType As Type, _
   ByVal name As String _
) As Mode
C# 
public abstract Mode Create( 
   Type modeConfigurationType,
   string name
)
C++/CLI 
public:
abstract Mode^ Create( 
   Type^ modeConfigurationType,
   String^ name
) 

Parameters

modeConfigurationType
Type to use for ModeConfiguration of new Mode.
name
Name to use for created Mode.

Return Value

A handle to the newly created mode.

Exceptions

ExceptionDescription
System.ArgumentExceptionThrown if modeConfigurationType is not supported.
System.ArgumentExceptionThrown if the supplied name already exists in the collection, or if string is an invalid name.

Remarks

The configuration type is fixed for the life of the Mode; it cannot be changed after creation. Use a different Mode to drive measurements of a different type.

Requirements

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

See Also