What's the best way to give a user the option of stopping a vi or rerunning it? I wrote something that works but I imagine it's not the best way to do it.

I have a VI that runs a stepper motor then stops. I wanted the operator to have the option of rerunning the VI or stopping it completely. To do this I added a while loop around the entire VI.I have an example VI showing how I accomplished this, but I'm sure there's a more efficient approach. Any suggestions?
Thank you.
Solved!
Go to Solution.
Attachments:
EX 1.vi ‏13 KB

There is almost never a good reason to use the Stop Sign Abort Execution function.
Your while loop is fine.  What you really want to do is make a state machine that has at least 2 states. 1.  Running the test.  2. Idle, waiting for the user to hit a run button again, or hitting an End program button.

Similar Messages

Maybe you are looking for

  • Warranties and returned printers

    I purchased an Officejet Pro 8500 wireless Aug 2009.  By April 2010 the printer began to leave a dark line on scans as well as printed jobs if using the feeder.  HP sent me a refurbished printer to replace that one and eventually it began to do the s

  • Thunderbolt not being seen on My Verizon account

    When I log onto my account, I see the Incredbile picture associated with my son's number; the BB Tour with my wife's number and next to my number, the phone is blank and is just called Primary Line.  My phone works fine but I did replace sim card abo

  • Late 2.5 Quad Core Processor unit removal issue

    I have a late G5 2.5 GHz Quad Core PPC and after following all the service notes for pulling the processor assembly out of the case, it is still stuck.  6 screws removed, 8 captive head screws loosened and it doesn't want to lift up...any ideas out t

  • Latest iPhoto won't display .NEF files that worked before.

    All I get when trying to view any .NEF picture in my library (tens of thousands of them) is a large exclamation point in a triangle. That's helpful. The pictures all worked in the previous version of iPhoto, but now all appear to be broken. I can't e

  • Why wont a cd i burned in itunes not play anywhere but on my mac?

    i burned a playlist of songs, mpegs, onto a brand new cd. all appeared succesful.  i clicked on the cd to open it, clicked on a song and it played fine.  ejected it from my mac and put it in my cd player.  nothing.  put it in my car's cd player.  not