Read or write field variables

Use C# APIs to read or write single variables or sets of variables.
The APIs are supplied by the
IUAVariable
,
InformationModel
and
IUANode
classes.
You can read or write multiple variables when:
  • Reading or writing an entire set of variables before proceeding with other operations. This approach is useful when writing recipes.
  • Limiting the number of communications with the field to enhance performance.
TIP: The methods that read or write field variables generate an exception when an error in execution occurs. You can capture and manage the exceptions by using the
try
and
catch
instructions.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.