10-18-2009 02:25 PM
I've been building executables out of the power measurement vi that I'm making and it seems like the executable runs right away after I click on it.
I was hoping to allow the user to have the control of running it since they need to setup all the controls in the front panel.
Is it possible to allow the user to setup first (enter in all necessary values) and give them the option to run it when they want inside an executable?
Another question I have is to the ability to switch visible control in the front panel based on what the user selects.
I have looked up examples for this but it seems like it all pertains to run-time.
For example, if the user enters in "A" in a particular control, x number of numerical controls would pop up.
if the user enters in "B" in a particular control, y number of string control and m number of numerical controls would pop up.
etc... etc...
I noticed the visible flag in the property node that allows you to make things appear and disappear but I don't seem to have any easy way to achieve this for a large amount of controls.
Thank you.
Solved! Go to Solution.
10-18-2009 03:18 PM
10-18-2009 03:28 PM
Hi,
apart from professional username: you want an executable that doesn't run? So when you start Word/Firefox/whatever you first have to click a "run" arrow" before starting to work? And you want to have an UI that works different than any other UI your users have used before?
"I don't seem to have any easy way"
The easy way is called "FOR loop" and allows an arbitrary number of controls to be switched to(in)visible...
10-18-2009 10:46 PM
Hmm... my understanding of labview is still a bit shallow.
I did find example code on how this works.
http://decibel.ni.com/content/docs/DOC-5561
Thanks for the comments.