<< 点击显示目录 >> 主页 PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Variable Class > Variable Properties > Variable.DataValid Property |
Gets the state of the instances data.
[Visual Basic]
Public ReadOnly Property DataValid() As Boolean
Public Get
End Get
End Property
[C#]
public bool DataValid { public get; }
要访问实例的值,DataValid 必须为真。
Variable varArray = new Variable(cpuObj,"globArray");
varArray.Connect();
varArray.Active = true // Set active = true to get data from the plc
..
..
..
// Connection event received ...
// Checking DataValid state
if ( varArray.DataValid )
Int32 i = varArray.Value[3].ToInt32(null);
Variable Class | BR.AN.PviServices Namespace
Generated from assembly BR.AN.PviServices [8.1.0.4]