Professional OPC
Development Tools

logos

OPCUA reading fromdevice

More
17 May 2018 10:34 #6342 by support
Replied by support on topic OPCUA reading fromdevice
In UAReadArguments, set ReadParameters to UA Read Parameters.FromDevice.

I can give more info but only in the evening or tomorrow, as I am currently traveling.

Regards

Please Log in or Create an account to join the conversation.

More
17 May 2018 09:48 #6341 by Gardoni
Hello.
We need urgently to modify a C# code to read data fromdevice and not fromcache.

We are using this code, where have we to add the FromDevice parameter? We cannot find any example inside documentation.

Tks,
Davide Gardoni
Idra

// Single item
easyUAclient = new EasyUAClient();
attributeData = easyUAclient.Read(opcServerName, itemName);
return attributeData.Value;

//Multiple items
easyUAclient = new EasyUAClient();
UAReadArguments[] args = new UAReadArguments[itemNames.Length];
for (int i = 0; i < itemNames.Length; i++)
{
args = new UAReadArguments(opcServerName, itemNames);
}

ValueResult[] value = easyUAclient.ReadMultipleValues(args);
return value;

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.163 seconds

      

 Recommend this on Google