LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change vlaue in XML file

Solved!
Go to solution

Hi 

Recently i need to manualy change the parameter in th XML file(located in the Crio),before there was a database i can download  the parameter file directily into Crio but now the database crashed now i have to manualy modify the parameter vlaue in the XML file.

So i want to make some code to do this modify job,changing at the pc then send the changes,how to do this just change some certain parameter item use labview code,please give some advice or some sample code.

 

0 Kudos
Message 1 of 7
(2,659 Views)

If you need to do this once, do you really need special program for this?

0 Kudos
Message 2 of 7
(2,644 Views)

Yes i need this,so far i do not know how to programm this,i can read out  every parameter  in this file,but problem is how to write it back.

0 Kudos
Message 3 of 7
(2,640 Views)

Open file in text editor (Notepad/Notepad++), change 0<->1, save file and replace it in cRIO (use file browser).

0 Kudos
Message 4 of 7
(2,635 Views)

Yes this can works,but is that possible use labview code to do this?

0 Kudos
Message 5 of 7
(2,627 Views)
Solution
Accepted by topic author 314159ym

Hi pi number,

 

yes, you can do this in LabVIEW too: read the XML file as text file, replace the chars as needed, then save the file again. As you would do with a text editor...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,617 Views)

OK,THANKS

0 Kudos
Message 7 of 7
(2,587 Views)