11-19-2014 10:34 PM
I have read many answers about how silly it is to add a RUN button on the front panel instead of having to click on the RUN arrow or using CTRL-R.
However, I have devised a pretty simple vi for use in a production line. It relies on an operator with very little knowledge of anything to place a product and click the arrow to obtain test results. Some times its an old lady and they have trouble finding the run arrow on the top.
Is it possible to "wrap" the block diagram with something tied to a RUN button on the front panel?
Appreciate any help since I am very new to labview and took me forever to create this simple vi.
Thanks!
11-19-2014 10:44 PM
You want code to run... before it runs?
That's essentially what you're asking for when you ask for a run button. You'd need the program to be running for any changes to the run button to have an effect.
Instead, why don't you look at application builder? They can run the exe and the code will start executing immediately. You can have a big flashy button that starts whatever acquisition you're intending. When you do this, you're not asking for code to do the impossible.
11-19-2014 11:42 PM
I dont know your application but whenever you create exe and open any vi it will be running.
What you can do is in background when user will click start then you can start displaying output to front panel. This is illusion that when they click then only it starts but in acutal when they click start then in background in even str it will trigger and start displaying
11-20-2014 01:13 AM - edited 11-20-2014 02:04 AM
A deployed program should always run. Just do a simple state machine with an idle state and a state that does the important stuff. Once the task is done it will go back to the idle state. Look at the design templates that ship with LabVIEW for some ideas. Ask back here if you run into problems.
A LabVIEW run button OR a front panel equivalent is NOT something a enduser should ever need to use in a production line, because it a tool for the development environment. When was the last time you had to start and stop any other program, such as MS word or IEexplorer? Your request is just plain silly.
Still, what you are asking is possible with a little trickery.
11-21-2014 03:44 AM - edited 11-21-2014 03:45 AM
@altenbach i wanted to say xcontrols too 😞
you already have so many posts 😉
anyways, hope you get an answered or kudos
@all and noone commented on how all-caps is bad form?