Sets the value of double properties of the board.

Namespace:  Quanser.Hardware
Assembly:  Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)

Syntax

Visual Basic (Declaration)
Public Sub SetDoubleProperty ( _
	properties As Hil..::.DoubleProperty(), _
	values As Double() _
)
C#
public void SetDoubleProperty(
	Hil..::.DoubleProperty[] properties,
	double[] values
)
Visual C++
public:
void SetDoubleProperty(
	array<Hil..::.DoubleProperty>^ properties, 
	array<double>^ values
)
JavaScript
function setDoubleProperty(properties, values);

Parameters

properties
Type: array< Quanser.Hardware..::.Hil..::.DoubleProperty >[]()[]

An array containing the property numbers of the properties to be set. For a list of the standard double properties refer to the Hil..::.DoubleProperty enumeration. Boards may have custom properties as well.

Select a board type from the list for board-specific details: .

values
Type: array< System..::.Double >[]()[]
An array of the property values to be set for the board. Each element in the values array corresponds to the same element in the properties array. Hence, there must be as many elements in the values array as there are properties.

Remarks

The SetDoubleProperty method sets the values of a set of double properties from the board. There are currently no standard double properties defined. Typically, only board-specific properties may actually be reconfigured. For a list of the standard double properties refer to the Hil..::.DoubleProperty enumeration. Boards may have custom properties as well. This method can set the value of more than one double property at the same time.

Examples

This sample illustrates how to use the SetDoubleProperty(array<Hil..::.DoubleProperty>[]()[], array<Double>[]()[]) method. It sets the value of a board-specific double property to 3.14.
C# Copy Code
Hil.DoubleProperty [] properties = { Hil.DoubleProperty.ProductSpecific + 5 };
double [] values = { 3.14 };

board.SetDoubleProperty(properties, values);
Visual Basic Copy Code
Dim properties() As Hil.DoubleProperty = {Hil.DoubleProperty.ProductSpecific + 5}
Dim values() As Double = { 3.14 }

board.SetDoubleProperty(properties, values)
Visual C++ Copy Code
array<Hil::DoubleProperty>^ properties = { Hil::DoubleProperty::ProductSpecific + (Hil::DoubleProperty) 5 };
array<double>^ values = { 3.14 };

board->SetDoubleProperty(properties, values);

Exceptions

ExceptionCondition
Quanser.Hardware..::.HilException If the property values cannot be set then an exception is thrown. This situtation typically arises when one of the properties is not supported by the board.

See Also