Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

How to use minimumQuality in WaitForMultipleItemValues - by: mlebelle

$
0
0
I am using the easyDAClient object in a VB6 application.

The function easyDAClient.ReadMultipleItems(arguments) works as expected for reading multiple items from the OPC server.
However sometimes the OPC server/quickopc returns WaitingForInitialData LimitOK (32) and then there is no value returned.

I was reading about the function WaitForMultipleItemValues() and according to the documentation this function is the same as ReadMultipleItems() with some additional parameters. I have a question about these parameters.

1. The first parameter of WaitForMultipleItemValues() is ItemGroupArgumentsArray. I guess that I can use the same variable/parameeter that I am using in the exiting ReadMultipleItems. Is that correct?

2. The second parameter of WaitForMultipleItemValues() is MinimumQuality. Can you please show how this parameter looks like (the value) if I want to avoid "WaitingForInitialData LimitOK (32)" errors.

3. The third parameter is the timeout in milliseconds. Is that the time out per item or the time out for reading all items?

So I will call WaitForMultipleItemValues(arguments, ???, 5000)

Thanks in advance for your support

Viewing all articles
Browse latest Browse all 1794

Trending Articles