- Manuale introduttivo
- Utilizzo del software
- OPC UA
- Oggetti grafici e di layout
- Sessioni e impostazioni locali
- Sviluppo di soluzioni
- Sviluppo di progetti con C#
- NetLogic
- Metodi ed eventi in C#
- Riferimento API C#
- Esempi di applicazione
- Esercitazione dell'interfaccia utente
- Esercitazione sui collegamenti dinamici
- Esercitazione sui logger
- Esercitazione sugli allarmi
- Esercitazione sulle NetLogic
- Riferimento su oggetti e variabili
IUANode.GetVariable(browsePath)
Returns an
IUAVariable
C# object. The returned object corresponds to the first child variable of the node on which the method is invoked. The returned object name corresponds to the argument.IUAVariable GetVariable(stringbrowsePath);
Arguments
- browsePath(string)
- Can be either:
- TheBrowseNameof the object
- The path of the object in the information model, uniquely expressed as a sequence ofBrowseNamevalues separated by/
Returns
- IUAVariable
- A C# Object that matches the requested variable.
Examples
The following examples show a returned C# object that corresponds to the
Speed
variable of the Motor1
object:
var currentSpeed = Project.Current.GetObject("Motor1").GetVariable("Speed")
var currentSpeed = Project.Current.GetVariable("Motor1/Speed");
Fornire un feedback