08-19-2009 09:14 PM
08-19-2009 09:19 PM
try looking through the tutorials and examples that come with Labview, I know there is an example of events it should help you.
08-20-2009 12:37 AM
08-20-2009 06:45 PM
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 🙂
08-20-2009 06:55 PM
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.
08-20-2009 07:21 PM
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?
08-20-2009 07:32 PM
08-20-2009 07:38 PM
Ok thanks... I have the same thing going now... So i just wanted to confirm..
Thanks for the help 🙂
08-20-2009 11:21 PM
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 🙂
08-20-2009 11:27 PM
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"