Hi,
Currently I am using evl version of EasyDAClient to develop the client application in Window Form application C# .Net framework 4.5.
There are two OPC remote servers to connect from client.
It is working fine when I try to read itemvalue from one server.
But there is an issue("OPC Operation Failure Exception") when it is reading item value from another server.
That exception was gone away when I changed AllowSynchronousMethod to true. But still value of selected item is null.
Please do refer the code i am using to read item value.
string machineName = textBoxMachineName.Text.ToString();
string servername = listBox1.Text.ToString();
string itemID = textBoxItemID.Text.ToString();
EasyDAClient easy = new EasyDAClient();
try
{
DAVtq vtgresult = this.easyDAClient1.ReadItem(machineName, servername, itemID);
//string value= this.easyDAClient1.ReadItemValue(machineName, servername, itemID).ToString();
// if (vtgresult.Quality.IsGood() == true)
// {
if (vtgresult.HasValue() == true)
{
this.textBox1.Text = vtgresult.DisplayValue().ToString();
}
// this.textBox1.Text = this.easyDAClient1.ReadItemValue(machineName, servername, itemID).ToString();
// }
}
catch (OpcException ex)
{
throw new ApplicationException(ex.Message);
}
Could you please provide some info regarding this issue?
Tks in advance!