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.

WriteMultipleItemValues example (and bug fix)

More
02 Aug 2010 19:56 #46 by admin
From: E.
Sent: Monday, August 02, 2010 9:26 PM
To: Zbynek Zahradnik
Subject: RE: OPC Client

Thanks!!! IT WAS THE BUG THATCAUSED THE PROBLEM! Thanks however for the prompt reply and fix.

Regards
E.

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

More
02 Aug 2010 16:36 #45 by support
Here is an example in Visual Basic.NET. If you need C# or other language, please let me know.

Imports OpcLabs.EasyOpc
Imports OpcLabs.EasyOpc.DataAccess
Module Module1
Imports OpcLabs.EasyOpc
Imports OpcLabs.EasyOpc.DataAccess
Module Module1
Sub Main()
Dim client As New EasyDAClient()
Console.WriteLine("Writing multiple item values...")
Dim resultArray As OperationResult() = client.WriteMultipleItemValues( _
New DAItemValueArguments() { _
New DAItemValueArguments("", "OPCLabs.KitServer.2", "Simulation.Register_I2", 12345), _
New DAItemValueArguments("", "OPCLabs.KitServer.2", "Simulation.Register_R4", 234.56)})
Console.WriteLine("Press Enter to continue...")
Console.ReadLine()
End Sub
End Module


There is, however, a bug in the build that was currently posted on this Web (5.00.1081.1). The bug caused that an an empty or zero values were written with WriteMultipleItemValues and WriteMultipleItems. We have fixed this bug, and as of now, an updated build (5.00.1321.1) is posted on the Web. Please us the new one for proper behavior.
Regards,
Zbynek Zahradnik

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

More
02 Aug 2010 16:29 #44 by support
From: ...
Sent: Saturday, July 31, 2010 12:59 AM
To: Z.
Subject: OPC Client

Hi

I am testing you OPC .Net Client Toolbox but are struggeling to use the WriteMultipleItemValues function. Is it possible to send me an example.

Regards
<span style="font-size: 11pt; font-family: "Calibri","sans-serif"; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">E.

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

Moderators: support
Time to create page: 0.042 seconds