LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC - Can I read in a list of all available tag names?

Solved!
Go to solution

I am using the "DataSocket Select URL.vi" to get the URL for my tags.  These tag names will change as instruments change.  Is it possible to be able to select the OPC device URL and have Labview read into a string array a list of all available tag names on the device?  I know it's possible because the "DataSocket Select URL.vi" provides a list of available tag names, just not in a format I can handle in Labview.

 

Matt

Message 1 of 7
(5,556 Views)
Solution
Accepted by topic author Mattjk

I figured it out using an example on the NI site.

http://zone.ni.com/devzone/cda/epd/p/id/6341

 

But to simplify it.  Attached is a vi called "Get Tag List.vi".  Attached is an image of the distributed system manager.  If you use the "OPC_Client_Variables" as your process and the "OPC_Client" as your "I/O Server Name", this vi will return a list of URLs pointing to all available tags on the selected OPC server.  What a useful tool.

 

Mattyk

Download All
Message 2 of 7
(5,533 Views)

Hi,

 

Can u export this VI as LV2009?

 

thanks in advance

 

B Bakels

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 3 of 7
(5,446 Views)

Hopefully this works.

0 Kudos
Message 4 of 7
(5,442 Views)

Thanks

 

B Bakels

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 5 of 7
(5,434 Views)

I know this is an old thread but to confirm, the Get Tag List.vi requires the DSC? I am looking for a method to list all of the Tag URLs in a Tag group without using the DSC. 

0 Kudos
Message 6 of 7
(4,055 Views)

I believe the VI you are referring to now is Get Published Tag Names.vi and yes, it comes with the DSC Module.  However, depending on what type of server you are working with, you may be able to use a different protocol like TCP/IP.

 

Good luck,

 

Bear

Regards,

Ben Johnson
ʕง•ᴥ•ʔง
Message 7 of 7
(4,046 Views)