LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to query multiple items in a single OPC read?

I am trying to read several data items at one time via OPC. Is this possible? If so, how? I have tried passing multiple URLs to specific items and a single URL header with multiple variable names. Both methods return an OPC error about invalid items. I am trying to do this to speed up OPC access times. Reading each item one-at-a-time is a little time consuming for our application.
0 Kudos
Message 1 of 2
(3,095 Views)
The only way to read multiple datapoints via OPC is to build an OPC item that contains multiple pieces of information. I checked this here, and I had no problem reading an array of data from an OPC Server with DataSocket.
I read the "opc:/Matrikon.OPC.Simulation/Random.ArrayOfReal8" data item from a Matrikon OPC Simulation Server that publishes an array data item. The OPC Demo server is available for free download at http://www.matrikon.com/opc/htdocs/simx.htm. You can read this as an array of doubles in LabVIEW.
For your application all you will need to read your data multiple items at a time is a server that can publish arrays.

Hope this helps.
0 Kudos
Message 2 of 2
(3,095 Views)