DAQChannel.SetEnumProperty Method (String, String)
- Aktualisiert2023-02-21
- 2 Minute(n) Lesezeit
Sets the value of a property of type enum specified by propertyName, where the enum value is a string.
Namespace:
NationalInstruments.VeriStand.SystemDefinitionAPIAssembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Public Sub SetEnumProperty ( _ propertyName As String, _ enumString As String _ ) |
| C# |
|---|
public void SetEnumProperty( string propertyName, string enumString ) |
| Visual C++ |
|---|
public: void SetEnumProperty( String^ propertyName, String^ enumString ) |
Parameters
- propertyName
- Type: System.String
The name of the property.
- enumString
- Type: System.String
The value of the enum as a string.
Remarks
To find valid propertyName and enumString values, refer to the list of DAQ channel properties.
This method throws an exception if the propertyName does not exist in the plug-in XML file that defines the measurement type of the channel, or if the enumString is invalid.