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.

How to Read from Device

More
25 Jul 2011 14:32 #430 by support
Replied by support on topic Re: How to Read from Device

W.,
one more line needs to be added:

easyDAClient1.UpdateRates.ReadAutomatic = System.Threading.Timeout.Infinite;

This tells the component that it should not set up an active group when you read something.

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

More
14 Jul 2011 16:02 #421 by support
From: W.
Sent: Tuesday, July 12, 2011 8:24 PM
To: Zbynek Zahradnik
Subject: How to Read from Device

Zbynek,

I am trying to read from the Server instead of setting up a subscription. I am using the code below but it still appears to be establishing a subscription instead of a read. I am using v5.4.102. Why is this not working? I must be missing something.


easyDAClient1.ClientMode.DataSource = OpcLabs.EasyOpc.DataAccess.DADataSource.Device;


OpcLabs.EasyOpc.ServerDescriptor server = new OpcLabs.EasyOpc.ServerDescriptor("SWToolbox.TOPServer.V5");

OpcLabs.EasyOpc.DataAccess.DAItemDescriptor[] items = new OpcLabs.EasyOpc.DataAccess.DAItemDescriptor[2];
items[0] = new OpcLabs.EasyOpc.DataAccess.DAItemDescriptor("Channel_1.Device_1.Tag_1");
items[1] = new OpcLabs.EasyOpc.DataAccess.DAItemDescriptor("Channel_1.Device_1.Tag_2");

easyDAClient1.ReadMultipleItems(server, items);

Thanks,

W.

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

Moderators: support
Time to create page: 0.040 seconds