- Getting started
- Creating projects
- Graphic objects
- Predefined graphic objects
- Object and variable references
- Extending projects
- NetLogic
- Tutorials
- Dynamic links tutorial
- Graphic objects tutorial
- NetLogic tutorial
- OPC UA tutorial
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(UAValuevalue, doubletimeoutMilliseconds);
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 is30000(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);
Provide Feedback