Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

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.044 seconds