08-18-2011 11:19 AM
Is it possible to do this? Or you need to press run because it acts like a compiler/start.
I was thinking to link a control on the front panel to the run button and it'll start the vi.
Thanks
08-18-2011 11:25 AM
You can set a VI to run when opened but that's about it.
Are you trying to get rid of the toolbar for UI reasons? You could set the VI to run on open, then wait with an event case or while loop for a front panel control to be pressed by the user before doing anything else.
08-18-2011 11:35 AM
Hi,
To run the VI you can do one thing you can select the VI properties -> Execution -> run when opened.
This will run your VI whenever you open your VI.
To link your VI with some button to run you have to write some script. This script will fire Control+R command so your VI will run.
Thanks and Regards
Himanshu Goyal
08-18-2011 12:53 PM
Did you try a search? This question has been asked MANY times before. Here's a recent discussion:
http://forums.ni.com/t5/LabVIEW/Adding-Run-Button-to-VI/m-p/1027332
Pay special attention to reply #5
08-18-2011 05:27 PM
@smercurio_fc wrote:
http://forums.ni.com/t5/LabVIEW/Adding-Run-Button-to-VI/m-p/1027332
Pay special attention to reply #5
Yep, that about sums it up.
08-19-2011 09:32 AM - edited 08-19-2011 09:35 AM
The X-control route looks quite complicated but I think it could become a standard control. Is there one the LAVA pool?
thanks,
Bob Young
08-19-2011 12:40 PM
@BurningH34t wrote:
Is it possible to do this? Or you need to press run because it acts like a compiler/start.
I was thinking to link a control on the front panel to the run button and it'll start the vi.
Thanks
You haven't said yet what your primary purpose is here. It doesn't make any sense to do that. But if you are just trying to prevent an action or process from occurring until a user event takes place, that's easy enough. Just use an event structure to respond to button presses on the fp. This will be much more efficient than running in a loop that does nothing, until an action occurs.