03-12-2008 02:41 AM
03-18-2008 12:25 PM
03-18-2008 02:28 PM
03-19-2008 01:14 PM
Hi Mario,
I have attached example code (LabVIEW 8.5), along with a screenshot of the code, demonstrating writing a DAQmx task name to a file, and then reading the .xml file back in LabVIEW. The reason why you are not seeing anything on the output is because we need to use an ‘unflatten from XML.vi’. If you build the example attached and do not use the unflatten, than you will get the output from your last post. If you would like to see further examples regarding XML, there are some in the LabVIEW Example Finder (Help >> Find Examples >>click on the ‘Search’ tab >> Type in ‘XML’ in the search.
03-20-2008 03:03 AM
Hi David
Thanks for the suggestion. Turns out I had already tried what you suggest without success. I am attaching an llb with a simplified example of my problem. If I only save either of the 2 cluster it works but if I save both it doesnt. In my application I actually have about 8 total clusters that I save to the xml file ( I inherited this ). To try your example I used 1 cluster at a time and both worked but when I combine both then it fails. Each task is obviously name differently. Next I will keep 1 cluster and add 1 element at a time on the 2nd cluster to see where it fails.
Mario
03-20-2008 12:27 PM
03-21-2008 10:17 AM
Hi Mario,
I was able to reproduce this issue you found, and have filed CAR # 98750 to R&D for further investigation. Thanks for the feedback!
A workaround is using the ‘Flatten to String.vi’ before ‘Flatten to XML.vi’ when writing to the file, and then reversing this process when reading. I have attached a VI to write and read using this technique, along with screenshots in case you do not have LabVIEW 8.5.
03-21-2008 10:17 AM
03-21-2008 01:13 PM
Hi David
Thanks for the workaround. Always good to get confirmation that a percieved problem is real and caused by my actions.
Mario
03-21-2008 01:23 PM