LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC: what is the path to follow in LabVIEW 8.20?

Hello:
I started with OPC in Labview 6. The only two functions that I need is "read  multiple tags" and "write tag". The tags are either located on the same PC or on a different one. I use Labview as an OPC client. The number of tags that i need to acquire is in the range of 2000-5000, once per minute. In Labview 6 and 7, all experts in the discussion forum and at NI said that above 100 tags, it was impossible to use Datasocket (performance issue when too many tags) and that the preferred path had to be DSC. So I started using DSC. Now that I migrated towards LabVIEW 8.20 the people at NI say that the best option is to use.... Datasockets! The read/write tags vi having  disappeared the suggest me to make my own "read multiple tags.vi" and "write tag.vi" by encapsulating a "DS read/ write" in a for loop. As an entry to the loop, I would just wire the ref number that the connection ids that the Datasocket Open.vi supplies.
So my first question: why is this old Datasocket mechanism again the path to follow in Labview 8.20?
 
By curiosity I checked in Labview 8.20 what was embodied in the "read multiple tags.vi" that were shipped in the Labview DSC 7.1. And found that the very last layer of the Vi used... Datasocket read in a for loop.
So my second question: why was the Datasocket mechanism so poor in Labview 6 and 7 (for more than 100 tags) and now is the preferred way to go?
 
I cannot use the shared variable mechanism in my case because the entry of my application is a list of tags (2000-5000) to read and I just want an automated way to read these tags values in one take.

As I need to install the compiled application on dozens of PC I would prefer not to be forced to buy the DSC licenses on each runtime machine hence Datasocket that does not require the DSC license might be a good choice?

Thanks for all ideas and comments,
Christophe
0 Kudos
Message 1 of 3
(4,643 Views)

Hi Christophe and dear others,

 I am having very similar problem as described previously by Christophe, regarding OPC with Labview. So far I used dataSocket to read and write tags on a commercial opc server running on localhost. I have to monitor about 50 channels each have a dosen of OPC item/command.  Using labview 7.1 it is very slow. With DSC I could not get it running yet and unaple to find any useful example how to read a valid opc item value using DSC. I am also considering an upgrade to labview 8.2 especially if it would support better the OPC.

I found that in labview 8.2 Tutorial/Help still the same old examples are given as in Labview 7.1 Browse to OPC.vi and some for read and write, all using data DataSockets.

Thanks for any comment/remark/suggestion/help.

/cheers,

BlueJeans

0 Kudos
Message 2 of 3
(4,397 Views)

I have an example of a DSC application in this thread. This is in DSC 7.0 format.

http://forums.ni.com/ni/board/message?board.id=170&message.id=234478#M234478

Here is the scf file. It might have some stuff added to it since the llb file was created.

0 Kudos
Message 3 of 3
(4,381 Views)