<< 点击显示目录 >> 主页 PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Variable Class > Variable Methods > ReadValue Method > Variable.ReadValue() Method |
Reads the actual value of processvariable.
[Visual Basic]
Public Overloads Sub ReadValue()
[C#]
public void ReadValue();
The event ValueRead notifies, that the value was successful read.
Variable var = new Variable(cpuObj,"global_INT");
var.Connect();
var.Connected += new PviEventHandler(Var_Connected);
...
...
private void Var_Connected(object sender, PviEventArgs e)
{
Variable tmpVar = (Variable)sender;
tmpVar.ReadValue();
tmpVar.ValueRead += new PviEventHandler(Var_ValueReadX);
}
...
...
private void Var_ValueRead(object sender, PviEventArgs e)
{
Variable tmpVar = (Variable)sender;
this.lbValue.Text = tmpVar.Value.ToString();
}
Variable Class | BR.AN.PviServices Namespace | Variable.ReadValue Overload List
Generated from assembly BR.AN.PviServices [8.1.0.4]