このコンテンツは設定された言語で表示できません。

このコンテンツは表示可能な別の言語で表示されています。 お使いのブラウザに翻訳機能がある場合はご利用ください。

DataSocket Connections for OPC Items

Updated Nov 16, 2023

Reported In

Software

  • LabVIEW Base

Issue Details

I have multiple OPC items that I would like to read with DataSocket. Are new DataSocket connections required for each OPC item?

Solution

Yes, a new DataSocket connection is required for each individual OPC Item. You may look at the screenshot below for an example.

Additional Information

  • DataSocket only support one OPC item per connection.
  • Connecting in ReadAutoUpdate mode may increase performance when reading multiple items on the same OPC server, as the server will send all notifications of new data in one packet.
  • OPC data can also be read using Shared Variables.
  • For communication with large number of connections, the LabVIEW Datalogging & Supervisory Control (DSC) Module or NI OPC Servers may be a better fit.
  • You can also find shipping examples as a good starting point. Go to LabVIEW » Help » Find examples... and search for Monitor OPC Items with Datasocket.vi