- Posts: 21
- Thank you received: 0
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.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- General Issues, Building
- Use of EasyDAClient throws VS 2017 exception
Use of EasyDAClient throws VS 2017 exception
Please Log in or Create an account to join the conversation.
Does the code that is supposed to fill in the textbox actually run? Can you put a breakpoint there?
It might seem silly, but I am asking this because the after changing to ReadItem, the .ToString() actually never returns an empty string. The ReadItem return a DAVtq object (value/timestamp/quality) taht always has "something" in it.
Or, the ReadItem can throw an exception. Isn't it the case, and the exception is somehow swollen? Again, stepping through the code should show whether it has made it successfully past the line with ReadItem or not.
Regards
Please Log in or Create an account to join the conversation.
I used the same 3 parameters for easyDAClient1.ReadItem() as I did for easyDAClient1.ReadItemValue(), hope this is correct.
Still had an empty textbox when the app ran.
Please Log in or Create an account to join the conversation.
2) What result do you get in Connectivity Explorer when you view the actual item, and not the "Item Value" property (see my previous post)
3) In order to rule out any errors that are hidden, can you replace ReadItemValue with just ReadItem in your code, temporarily?
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So what you are showing in the Connectivity Explorer is different from what the code snippet does.
In order to do the same as the code in the Connectivity Explorer, you need to click on the "GVL" node in the left pane (the tree), and the select the "MyString" from the list in the right pane.
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
This code still dosen't work:
textBox1.Text = easyDAClient1.ReadItemValue("192.168.2.82", "CoDeSysOPCDA", "PAC.Application.GVL.MyString").ToString();
Please Log in or Create an account to join the conversation.
object value = easyDAClient.ReadItemValue("192.168.10.20", "someProgId", "MyVar")
The third argument is known as ItemID in OPC world. Be careful as it is usually qualified in some way (the syntax is server dependent). So while it is possible the it is simply "MyVar", it is usually longer, e.g. "Device1.Block1.MyVar". Check with the server documentation, or use e.g. the COnnectivity Explorer tool that comes with QuickOPC to connect to the server and browse for the items; it will show the full Item IDs in the info pane below the node tree.
If your client is remote to the server, you are likely to encounter DCOM configuration issues. That's a huge area that cannot be described in one paragraph.
Best regards
Please Log in or Create an account to join the conversation.
Can you please show me an example of how I use easyDAClient to reference my server on a PAC controller. Lets assume the controller is at 192.168.10.20 and the variable is MyVar.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- General Issues, Building
- Use of EasyDAClient throws VS 2017 exception