IUAVariable.RemoteWrite(value, timeoutMilliseconds)

Writes the value passed in the first argument in the variable on which it invokes. The second optional argument sets the timeout period.

void RemoteWrite(UAValue value, double timeoutMilliseconds);

Arguments

value (UAValue)
The value to write.
timeoutMilliseconds (double)
The timeout period, expressed in milliseconds, after which the API throws an exception.
Tip: If not specified, the default value of the argument is 30000 (30 seconds).

Example

In the following example, the 42 value is written in the Speed variable.
var currentSpeed = Project.Current.GetVariable("Model/Motor/Speed");
currentSpeed.RemoteWrite(42);