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.

ReadMultipleItems inquiry.

More
22 Dec 2021 07:34 - 22 Dec 2021 07:35 #10492 by support
Replied by support on topic ReadMultipleItems inquiry.
Oh, thank you very much. I was now able to reproduce the problem. The item that causes the problem is:
  • SimulateEvents.ConditionState1.AttributeValues.15409166
(there may be more).

After investigation, the nature of the problem appears to be as you reported - but it turns out to be on the server side. The server is supposed to return the errors "one by one", and it normally does that - but not in this particular case; instead, it fails the whole "Read" call which contains multiple items, and therefore nothing useful can be returned for any item contained in the call.

This is clearly a server bug, and I will investigate and eventually fix it too. But there is nothing that should or can be fixed on the client side.

It will work well with other servers.

Best regards
Last edit: 22 Dec 2021 07:35 by support.
The following user(s) said Thank You: yong

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

More
22 Dec 2021 01:31 #10490 by yong
Replied by yong on topic ReadMultipleItems inquiry.
Hello
It is difficult to show all the source codes.

If you bring all the opc items of OPCLabs.KitServer.2, it will be as follows.(BrowseFromNode)

File Attachment:

File Name: opctag.xlsx
File Size:29 KB



Exception is thrown when the corresponding OPC Item is inserted into ReadMultipleItems.

(vtqResult = client.ReadMultipleItems(serverDescriptor, daItemDescriptors.ToArray()))

Best Regards,
Attachments:

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

More
21 Dec 2021 10:23 - 21 Dec 2021 10:24 #10488 by support
Replied by support on topic ReadMultipleItems inquiry.
Yes, if one item is somehow "wrong", only the result for that item should indicate a failure.

But you have made a logical shortcut somewhere. What makes you think that one item is wrong? There is nothing that implies that, in what you have written. It looks more like that you have something wrong in all of them.

I cannot reproduce the problem. Can you send a full code that shows the problem?

Regards
Last edit: 21 Dec 2021 10:24 by support.

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

More
21 Dec 2021 08:03 #10487 by yong
Replied by yong on topic ReadMultipleItems inquiry.
It is not possible to know which item is wrong...

But if the item is wrong, shouldn't an exception be raised only for the wrong item?

ResultIDException is thrown in all items like the image.

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

More
21 Dec 2021 07:36 #10486 by support
Replied by support on topic ReadMultipleItems inquiry.
Thank you for additional information.

But, how do you know that "one item is wrong", if you have taken all of them and treated in the same way?

Regards

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

More
21 Dec 2021 06:26 #10484 by yong
Replied by yong on topic ReadMultipleItems inquiry.
I didn't receive an email, so I thought I didn't reply.

1. Which QuickOPC version are you using please?
- I am using the latest version. (QuickOPC 5.62.456)

2. which of the items in your inputs is 'wrong", and in which way? ,How can I reproduce it?
- If there are item 'wrong' entered in ReadMultipleItems, all of them throw an exception.
-
- serverDescriptor : OPCLabs.KitServer.2, daItemDescriptors: all items(browsed all item)
-
- Occurs when all nodeElements are added to ReadMultipleItems.
Sorry for the late reply.
Attachments:

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

More
18 Dec 2021 17:19 #10481 by support
Replied by support on topic ReadMultipleItems inquiry.
Hello,
can you please respond? I would really like get to the cause of this issue.

Best regards

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

More
16 Dec 2021 11:09 #10479 by support
Replied by support on topic ReadMultipleItems inquiry.
Hello.
More to this: I understand what you are saying, but which of the items in your inputs is 'wrong", and in which way?

How can I reproduce it?

Thank you

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

More
16 Dec 2021 06:52 #10478 by support
Replied by support on topic ReadMultipleItems inquiry.
Which QuickOPC version are you using please?

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

More
16 Dec 2021 01:53 - 16 Dec 2021 04:25 #10477 by yong
Hello

OPC Client is being developed and tested(OPCLabs.KitServer.2). If there are tags incorrectly entered in ReadMultipleItems, all of them throw an exception.





Exception is not thrown for the ItemID that has a problem, but all exceptions.
Below is a working ItemId image.
Attachments:
Last edit: 16 Dec 2021 04:25 by yong.

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

Moderators: support
Time to create page: 0.075 seconds