VeriStand .NET API Reference

DAQChannel.SetEnumProperty Method (String, Int32)

Sets the value of a property of type enum specified by propertyName, where the enum value is an integer.

Namespace: NationalInstruments.VeriStand.SystemDefinitionAPI
Assembly: 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, _
	value As Integer _
)
C#
public void SetEnumProperty(
	string propertyName,
	int value
)
Visual C++
public:
void SetEnumProperty(
	String^ propertyName, 
	int value
)

Parameters

propertyName
Type: System.String
The name of the property.
value
Type: System.Int32
The value of the property.

Remarks

To find valid propertyName and enum 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 value is invalid.

See Also

Log in to get a better experience