- Getting started
- Creating projects
- OPC UA
- Graphic objects
- Predefined graphic objects
- Sessions and locales
- Object and variable references
- Extending projects
- NetLogic
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