How can I stop and restart a .vi with a single front panel button?

Hey guys, a newbie here.
I have a .vi with a stacked sequence. The first few frames are hardware initialization and settings (LIN master node) and the data the hardware should transmit (frame response table). In the next frame there's a loop in which the hardware sends and recieves data (LIN monitor). If I want to change the initialization, settings or data values, I have to stop the .vi and restart it. I was wondering if there is a simple way of doing this with a single click (a button on the front panel).
An alternative would be to put another loop outiside the whole stacked sequence and then run it a single time with a push of a button (the inner loop should let the outer one restart), is that possible?
I hope I made any sense. Thanks for any suggestions.
Tomaz
Solved!
Go to Solution.

Ideally, redoing the code with a state machine would be the best way to go, if only so that you can add this powerful tool to your toolbox. That being said, wrapping your existing code in a while loop, with its own stop button to stop the program, will work if executing the entire sequence is ok. Where you might run into problems with this is if there is a step in the sequence that shouldn't be executed again, then it would require wrapping that sequence frame's code in a case statement that executes only the first time through. If you have the time, learning how to use a state machine would be a real benefit, really taking your LabVIEW knowledge to the next step, if you pardon the pun.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • How can I stop and restart the ApplePhotoStreams.Exe process on my Windows 7 computer?

    I sometimes notice my CPU utilization skyrockets and my computer fan switches to high. This happens sporadically. The process causing this is ApplePhotoStreams.Exe. It appears the process goes into some infinite loop trying to update or sync pictures. Applications on my PC slow down and the fan stays on high (which is really loud) until I cancel the ApplePhotoStreams.exe process. I can easily cancel the process using Task Manager, but then any photos I take with my iPhone do not replicate over onto my PC unless I reboot my computer.
    I'm not sure if anyone can easily tell me why ApplePhotoStreams.exe is doing this in the first place, but I would more like to know how to restart the ApplePhotoStreams.exe process after I cancel it without having to reboot my PC.

    you can download a new installer and serial number from Adobe at Adobe - CS2 Downloads

  • How can I stop and delete a download?

    How can I stop and delete a download?
    Bought a TV episode - it came with both the HD and standard version. Only want the standard. Can't get the HD version to clear from my available downloads. Help!??!?

    You cannot.
    let it download, then delete it.

  • HT3702 How can I stop and remove my credit card from my iPad ,my children keep buying games and I want to stop it......please help me to remove any payment from now on.

    How can I stop and remove my credit card from my iPad ,my children keep buying games and I want to stop it......please help me to remove any payment from now on.

    iOS: Understanding Restrictions
              http://support.apple.com/kb/HT4213

  • HT201250 The initial backup is taking 2 days.  Can I stop and restart without any issues?

    Just got an iomega external hard disk backup and the initial backup is said to take two days.  Can I stop and restart without any issues?

    On a big backup, the initial estimate is often wrong and gets better after a little while. But, yeah, there is a "Stop backing up" command in the Time Machine menu, right?  That is safe as far as I know.
    charlie

  • TS3999 how can I stop syncing my outlook calendar with icloud and not loose the existing calandar data in outlook?  the calendar data which downloads to outlook, was also wiped off the gmail calendar after the icloud sync , how can I restore the data to g

    How can I stop syncing my outlook calendar with iCloud and not lose the existing calendar data in outlook?  The calendar data which downloads to Outlook was also wiped off the Gmail calendar after the iCloud sync, how can I restore the data to Gmail?

    same issue, looks like nobody answered you from last JULY....

  • How can my wife and I share cloud with 2 different login's

    How can my wife and I share cloud with 2 different login's

    If you each have separate iCloud accounts with different IDs, you can add the other person's account to your device(s) by going to Settings>Mail,Contacts,Calendars>Add Account>iCloud and signing in with their ID.  These "secondary accounts" will sync mail, contacts, calendars, reminders and notes.

  • How can I download and view a pdf with iphone?

    How can I download and view a pdf with iphone?

    If the PDF is an email attachment, you can view it by tapping on the attachment icon while you are viewing the email message. Another option is to set up a dropbox account and then use a computer to drop the PDF into your account. Install the iOS dropbox app and you can view PDFs there that way.

  • How can I print and email a report with a logo?

    How can I print and email a report with a logo?
    Is this possible??

    hi ravikant!
    im talking about reports, not forms.
    i bet se78 is for forms and oaer is for report.
    because my logo is displayed on screen, using html-top-of-page.
    but at the time of printing and email, internally, alv grid is converted into alv list, and alv list doesn't support having a logo.
    That's my know-how of the situation.
    Do you have a way with it???
    Please advice.
    Thanks a lot!

  • HT201365 How can the iMessages and FaceTime be activated with this new ISO 7 update? When I enter my Apple ID & password it won't do anything. Says waiting for activation!! Help!

    How can the iMessages and FaceTime be activated with this new ISO 7 update? When I enter my Apple ID & password it won't do anything. Says waiting for activation!! Help!

    Hi there,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    -Griff W.

  • How can I get a reference to all controls on a front panel of one type )for example of the type Text Ring?

    I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?

    > How can I get a reference to all controls on a front panel of one type
    > )for example of the type Text Ring?
    >
    > I'd like to set the strings[] property of all the Text Ring controls
    > on a front panel at once without creating a property node for every
    > text ring. How can i do that?
    This is likely more complicated than making property nodes for each
    ring, but you can do it. Make a subVI that takes in a panel reference,
    reads the array of control references, loops through them looking for
    rings, and modifying the Strings[] property on each ring.
    The part of this that will probably be the least obvious, when you
    have an array of control references there are two ways to find out
    if an element is a ring. You can read the classID and compare it
    to the cla
    ssID of a true ring control. An alternative is to cast
    the control reference to a ring control using a Cast to more specific
    node and wire the error out to a case structure. The error case is
    where the objects that aren't rings will go. The success case case
    where you will have a valid ring refnum that you can use to modify
    the strings.
    Greg McKaskle

  • How to start, stop and restart task

    Hello Everyone,
    Need advice on what is the correct way to start, stop and restart a Java task?
    I have tried with Executors.newCachedThreadPool() or fixedThreadPool() however I was only able to submit the task once. My program crashed when i tried to resubmit the task again after a shutdownnow command()

    Tasks are designed to be run once. If you want restart functionality, use a service:
    http://docs.oracle.com/javafx/2/api/javafx/concurrent/Service.html
    The sample service I posted in the following thread demonstrates how to do this:
    Multithreading
    Use of Executors is not necessary as a Service encapsulates the execution thread management (though you can set your own executor on the service if you really needed it). All you need to do is make use of the service start, cancel, restart and reset methods as required. If you do use the cancel method, then you need to make sure that your service is properly interrupt aware for the cancel to function as you expect.

  • HT1296 How can I stop and delete facebook names and phone numbers from my iphone

    How can I stop facebook names and phone numbers from being downloaded to my iphone and how can I delete the ones that are already there?

    A better way might be
    Settings > Facebook > Contacts > turn off.
    There are other Facebook settings you might want to leave on. But I also prefer to turn off Calendar there as well to keep every Facebook friends birthday from clogging up my calendar app.

  • How can I stop and remove a downloading guitar lesson?

    I started to download a free GB guitar lesson but then noticed the download would be 300MB which is much too big for my capped broadband.
    I paused it but every time GB opens it asks whether I want to continue downloading.
    I don't and I am worried it may accidentally start downloading.
    So how can I stop it and remove it for good so it will never resume downloading?

    I think I may have managed it.
    I have deleted the GB preferences in Home/Library/Preferences/com.apple.garageband.plist.
    When I opened GB I got the "Welcome" screen and there was no sign of a message asking me to download.
    If anyone can confirm that this has actually permanently stopped that download I would be grateful.

  • How can I reset and clear my iphone with no wifi

    How can I reset and clear m iphone without any wifi

    Settings > General > Reset > Erase All Content & Settings

Maybe you are looking for

  • Problem Flash Builder and Blazeds

    Hi I'm trying to create a project in flash builder 4. I created it and set up this site as http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/. I am still in doubt of how to do that with Blazeds connect with my J2EE application.  When I c

  • ITunes IS ERASING MY PURCHASED MUSIC

    Every month or so I discover an album or song missing. I haven't backed up my music in a while, and when I did an update on my iPod, the song was missing too. How do i get back my old muic? Do I have to rebuy everything I lost?   Windows XP  

  • Report for Void Checks

    All FI Gurus, I would like to know if there is a Report for Void Checks with reason codes.

  • Accounting clerk in Correspondence (Customer account statement)

    Hi, A user wants me to change the name of the person which is printed on the account statement (via transaction FB12). But I am not allowed to change the accounting clerk. I don't think that is possible. I think that the name on the account statement

  • Consolidation of multiple trees not working when scheduled thru taskflow

    Hi , We are having a problem when we schedule consolidations for multiple entities using taskflow. Task audit is showing the successful completion of all the entities but when we open up a dataform it is showing ok only for the last entity in the lis