LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GUI

you should really read the tutorials they will help you figure the basics out
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 31 of 40
(1,540 Views)

try looking through the tutorials and examples that come with Labview, I know there is an example of events it should help you.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 32 of 40
(1,537 Views)
Thanks for your help...I will not bother you again..Sori:)
0 Kudos
Message 33 of 40
(1,518 Views)

Hello all once again.....

 

I have gone through the tutorials and I managed to get my stop button working i.e. I can now stop my simulation using  a button i specify without the use of labview's stop button. However, with the run button, I am still having problems. I have to click the run button of labview first and then only i can click my run button, for the simulation to work. But is it possible at all to start the simulation only using my run button and not having to use Labview's run button??

 

Thanks in advance 🙂

0 Kudos
Message 34 of 40
(1,493 Views)

You can configure the VI's properties to be Run When Opened.  It is under the Execution window of File/VI properties.

 

This can be an annoying behavior at times though.  For instance, when you are still working on something in the development environment, you generally don't want it to start running immediately.  And don't post such a VI to the forums if you are looking for help in troubleshooting a VI.  Save it with the Run When Opened unchecked before posting it.  Nothing annoys the forum members more than having a VI start running right away (and possibly locking up or crashing, which is a real possibility if you are asking for help anyway).  We want the ability to open it and look at the block diagram first.

 

When creating an executable for your user when you are done with the development/debug process, then you will want it to run when opened.

0 Kudos
Message 35 of 40
(1,489 Views)

Hey ravensFan,

 

But i dont want the vi to run when opened. The user has to enter some parameters first and then click my run button. That is when i want the vi to start running. Can this be done at all?

0 Kudos
Message 36 of 40
(1,481 Views)
If you don't want to have to hit the LabVIEW run arrow, then you do have to Run when Opened.  Your program will sit there doing nothing until you hit the Run button you added to your front panel, at which time the True case will execute where the real meat of your program is run.  Your user will be able to set whatever controls they want during this "do nothing" time.
Message 37 of 40
(1,473 Views)

Ok thanks... I have the same thing going now... So i just wanted to confirm..

 

Thanks for the help 🙂

0 Kudos
Message 38 of 40
(1,471 Views)

Hey all,

 

 I have another problem now. I have an event structure inside a while loop. Inside the event structure i have my code put in a case structure's true case. I have put a button inside the event structure that connects to the true/false input of the case structure. This is the start button that starts running my code. The issue is that because my code takes long to run, all my presses to the start button are ignored until the code finishes running. Could any of you give any ideas as to how i can tackle this? 

 

Thanks in advance 🙂

0 Kudos
Message 39 of 40
(1,457 Views)

In general, an no code in an event case should run longer than a user would tolerate as the program as being unresponsive.  You may also want to look at the checkbox on the event case that is probably checked called "Lock Front Panel until Event Completes"

0 Kudos
Message 40 of 40
(1,455 Views)