04-20-2012 02:03 PM
Hi,
So I have been struggling with this program I am making for the last few months but I am almost there. I have a program that creates multiple arrays and place them one after another in an xml file and each array has its own unique name. Now I would like to create a VI that takes this XML file and when the user inputs the specific array name they are looking for it goes into the xml file finds the entire array under that name and displays it in an output indictor to be viewed on the VI. Attached is a sample of my xml file and the VI that creates this xml file.
Thanks,
dlovell
Solved! Go to Solution.
04-21-2012 12:24 PM
Something like this should work for you.
04-21-2012 12:53 PM
Here is a slightly different version. The one above reads from a file. This is how you would read from an already loaded XML string.
04-21-2012 03:21 PM
@dlovell wrote:
Hi,
So I have been struggling with this program I am making for the last few months but I am almost there. I have a program that creates multiple arrays and place them one after another in an xml file and each array has its own unique name. Now I would like to create a VI that takes this XML file and when the user inputs the specific array name they are looking for it goes into the xml file finds the entire array under that name and displays it in an output indictor to be viewed on the VI. Attached is a sample of my xml file and the VI that creates this xml file.
Thanks,
dlovell
There is a VI in the LabVIEW examples that is very similar to the two VIs posted by Steve Chandler.
04-23-2012 11:03 AM
Hey Steve,
So I am trying to test your VI you created but I can't get it to work. Are you suppose to put the location of the xml file in the "XML String"? No matter what I put into the XML String portion I can't get past the error "Invoke Node in Find Array.vi"
Thanks,
dlovell
04-23-2012 11:55 AM
Hey Steve,
Never mind I figured it out... Thanks I can't wait to apply this to my program!!
dlovell
04-11-2013 02:58 PM - edited 04-11-2013 02:59 PM
hi,
I need the working VI, is it possible to attach the updated working VI and I am using labview 2010 version