LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Start

I have a application and I want to load a config - File at startup. After
that, the User should be able to change values. When he is finished, there
should be a Start-Button.

Is there a way to do this?

Thanks in advance

Marcel
0 Kudos
Message 1 of 3
(2,624 Views)
Marcel

I think you need to provide with more details what you want to do.
If I understoiod you well, you need a simple one startup loop with a START button finishing the loop.
Inside this loop the USER can make choices.

If this is not what you want, give more details, e.g. what config file, etc..

Pawel
0 Kudos
Message 2 of 3
(2,624 Views)
There are two configuration file examples that ship with LabView: Write Configuration Settings File.vi and Read Configuration Settings File.vi. You can base your config file operations on these files.
You could create controls for any config item you want the user to be able to change. Modify Read Configuration Settings File.vi to read the items of interest and write the current values to write locals for the controls.
Wire Error Out of Read Configuration Settings File.vi into a while loop. (This way the loop won't start until Read Config is done). Place all of the config controls in the while loop. In the while loop, wait for start. Wire the controls to Write Configuration Settings File.vi (modified for your config items) outside of the loop.
You may want to i
nclude a delay of 100 or 200 ms using wait (ms) inside your loop to free up the processor for other things while you're wait for start to be pressed.
To find the examples, from any LabView window, goto Help >> Find Examples >> Search and enter CONFIGURATION in the box labeled Type a keyword to find.
0 Kudos
Message 3 of 3
(2,624 Views)