Professional OPC
Development Tools

logos

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

      

 Recommend this on Google