Additional Information | [Test(Description = "Read 17.01, !R4")]
public void Test15_ReadSPA1RealR8()
{
Assert.IsNotNull(this._opcServer);
Opc.Da.Item[] items = new Item[1];
items[0] = new Opc.Da.Item();
items[0].ClientHandle = 1234;
items[0].Active = true;
items[0].ItemName = "Root,__TestData";
items[0].ReqType = typeof (float);
items[0].ItemPath = "";
Opc.Da.ItemValueResult[] values = this._opcServer.Read(items);
Assert.IsNotNull(values);
Assert.IsTrue(values.Length == 1);
Assert.IsTrue(values[0].Quality == Opc.Da.Quality.Good);
Assert.AreEqual(values[0].Value, 17.01);
}
|
---|