LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XML

Hi all :
 

I want to build application to save variable "string" in XML file ,,  I want to update every day this file with new value .. so I want to add the new value under the old one etc….

 

How can I do that in labview

 

thanks

 

0 Kudos
Message 1 of 5
(3,107 Views)

Define the data type as array of string for the "Flatten to XML" and "Unflatten from XML" primitives.

Read in the file and unflatten the XML string. Then add the new string to the end of the array. Now call "Flatten to XML" and write the file.

Be aware that the XML file has a structure which is given by LV.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 5
(3,104 Views)

Hi :

thanks for you quick answer ..

 

can you help me with this issue

thanks

wisam

0 Kudos
Message 3 of 5
(3,096 Views)
Which LV Version do you use? The XML functions are on different palettes in differnt versions.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 4 of 5
(3,072 Views)
There are also examples that ship with LabVIEW that show you how to write to XML. Open the Example Finder (Help -> Find Examples) and search for "XML".
0 Kudos
Message 5 of 5
(3,070 Views)