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.

ClientMode.Datasource & DesiredvalueAge

More
18 Apr 2015 14:16 #3053 by support
Hi, here it is:
            var _ReadParam = new DAReadParameters(DADataSource.ByValueAge, m_ValueAge);
 
            // Reading a single item
            DAVtq vtq = client.ReadItem("myServer", "myItem", _ReadParam);
 
            // Reading multiple items
            DAVtqResult[] resultArray = client.ReadMultipleItems(new[]
            {
                new DAReadItemArguments("myServer1", "myItem1", _ReadParam),
                new DAReadItemArguments("myServer2", "myItem2", _ReadParam)
            });

Read parameters do not apply to writing (neither did the corresponding parameters apply to Write-s in previous versions).

Best regards
The following user(s) said Thank You: philgerm

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

More
18 Apr 2015 08:24 - 18 Apr 2015 14:19 #3052 by philgerm
Hi,

I translate a code from 5.1 to 5.23 version.

How I use my _ReadParam variable for reading simple item, multipleitems or writing operations ?
//!! 5.1 
// m_ClientOPC.ClientMode.DataSource = OpcLabs.EasyOpc.DataAccess.DADataSource.ByValueAge;
// m_ClientOPC.ClientMode.DesiredValueAge = m_ValueAge;
 
//!! 5.2 
 _ReadParam = new DAReadParameters(DADataSource.ByValueAge, m_ValueAge);
Thanks in advance.
Last edit: 18 Apr 2015 14:19 by support.

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

Moderators: support
Time to create page: 0.051 seconds