05-25-2023 02:32 PM
Hello, as per the attached VI project file below I have completed so far, I have been trying to add the options of...
- the speed of the automatic phase shift sweep.
- the way that the settings should be loaded when the VI is run. if there is no configuration file, the application should initialize one.
- the way to build an option to export/import the current settings to/from a file specified by the user.
Could anyone show the correct wiring examples of such required solutions (for both the front panel and block diagram), according to what I have completed so far, please?
Thank you very much in advance.
ZUMO.
05-25-2023 03:09 PM
A simple demo that I made in 15 mins.
You should use INI file as the configuration file type instead. See examples at <LabVIEW>\examples\File IO\Configuration (INI)
05-26-2023 05:52 AM - edited 05-26-2023 06:15 AM
you can use a .csv or a .ini as suggested, so a user can edit Parameters in a texteditor before starting your application
If you don't need or even want to actively avoid this texteditor option, you can
1# save the Output of Control Value:Get All Method to a binary file in order to write a configuration file.
2# use Control Value:Set Method to read that configuration file
use dataflow or a sequence structure to assure the read configuration happens before your main code starts processing.
write the configuration e.g. after your main code has finished
05-30-2023 01:50 AM - edited 05-30-2023 01:54 AM
moreover, you may take a look at
https://forums.ni.com/t5/Example-Code/Generating-Lissajous-Curves-Using-LabVIEW/ta-p/3526669