LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running at .exe and switching controls

Solved!
Go to solution

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. 

0 Kudos
Message 1 of 4
(2,860 Views)
Real professional login name you have there.Smiley Mad
0 Kudos
Message 2 of 4
(2,851 Views)

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...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(2,848 Views)
Solution
Accepted by topic author fartbagxp

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. 

0 Kudos
Message 4 of 4
(2,826 Views)