LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument parameters save to file

Dear Colleagues,


I am developing a sequencer software that controls instruments. Users can add "commands" from a list, arrange them sequentially, and configure their parameters. These parameters are in clusters, and once a row is completed, it is saved to a file using the "Flatten to XML" block.


My issue is that when I add new parameter options to the user interface, the newer version of the software is unable to open configuration files created with older versions.

 

2025-11-11_09h06_10.png

My goal is to populate the new cluster with data from the old cluster, and assign default values to any new parameters.

0 Kudos
Message 1 of 3
(125 Views)

As possible solution you can use JSON instead or JKI-EasyXML Toolkit

snippet.png

or

snippet2.png

Message 2 of 3
(106 Views)

Andrey's answer is excellent, as always. One other variant is to have a Version-tag in the file so you know which variant of the cluster you need to use, or simply loop through versions from the newest to the oldest to see which works.

 

Or you can try my "General Cluster to ini-file" that i attach. I just changed it to only give a warning if a tag is missing.

(saved in LV2019)

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 3
(81 Views)