LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading tags programatically

i have created a tag file namely "mixtags.scf" . Tags in this file are selected from two
OPC servers.with the help of HMI Wizard i have created a VI in which I am reading the
tags from both OPC Servers.
Now I want such programming as:
To read tags of one OPC Server , and if some error occurs then I get reading Tags
of other OPC server.
NOTE: Also "Switching Tag Configuration Files.vi" example is available in Labview, but
here when i change from one tag configuration file to other , Tag Engine get restarted,
But I do not want to restart Tag Engine.
please any help in this regard will be highly appretiated.
Regards.
0 Kudos
Message 1 of 2
(2,118 Views)
When you define the tags, they can be assigned to groups. Put the tags for the first opc server into one group and assign the second set of tags to another group. There is a vi that will return all of the tagnames inside a group(Get Tag List.vi). Feed this array of tagnames into the Read Multiple Tags.vi Then when you want to read tags from another group, just change the group name being input into the Get Tag List.vi. There is also a vi that will return a tagname array of all groups
0 Kudos
Message 2 of 2
(2,105 Views)