How to stop and restart a .vi with a button front?

Hey guys, a newbie here.

I have a .vi with a stacked sequence. First frames are few parameters (LIN master node) and initialization of hardware and hardware data should pass on (the frame response table). In the next section, there is a loop in which the data of sends and receives material (LIN monitor). If I want to change the initialization, settings, or data values, I need to stop the .vi and restart it. I was wondering if there is a simple way to do this with a single click (a button on the front panel).

An alternative would be to put another loop outiside all stacked sequence, then run it once with a push of a button (the inner loop should leave the reboot on the outside), is it possible?

I hope I made any sense. Thanks for your suggestions.

Tomaz

Ideally, redo the code with a state machine would be the best way to go, if this is so you can add this powerful tool to your Toolbox. That being said, wrapping your existing code in a while work loop, with its own stop button to stop the program, if the execution of the entire sequence is ok. Where you might encounter problems with this, is if there is a step in the sequence that should not be run again, there should be the encapsulation of code from the image of this sequence in a case statement that only runs the first time through. If you have the time, learn how to use a state machine would be a real advantage, really take your LabVIEW knowledge to the next step, if you pardon the pun.

Tags: NI Software

Similar Questions

  • How to stop and restart a measurement with specific criteria?

    Hey guys,.

    I burn my brain trying to figure this problem on my program.

    For my research project, I use an O2 sensor which is coupled to a Labjack U12 card and that's why I make a value of 4 mg/L, based on the switch to an electric socket (connected to the analog output) that is connected to the ventilation system. So when I 3.8 mg/L lights aeration and 4,2 turns off.

    But I want to execute this measure for some time (maybe 10 minutes) and then stop the signal at the analogue output. After awhile the O2 measure will be reduced to values of 0 mg/L, but I want that when it reaches a specific value (perhaps 0.5 mg/L), is always idle for some time (maybe 2 min) and then again activates the signal at the analogue output (reboot cycle).

    Is it possible to was this concept using Dasylab? I would be very grateful if you could help me with this!

    I enclose 2 photos, the real configuration of my block Dasylab and the other is the extent expected after the new configuration.

    Hugs and Outlook for the suggestions.

    Celso

    Is the curve in the diagram of the output of the "Labjack: AI"-module?

    You can then use the following series of blocks:

    Direct the signal of the Labjack-block in a block-combitrigger: Start-event is when the signal is less than 0.5, Stop-event is when the value exceeds 0.5 (do NOT use events "is less to ' / ' exceeds '!).

    Connect the trigger block to a block Counter, which counts both the signal received (from the trigger-block) is TTL-high.

    Use another trigger-block just after the block Counter: beginning-event is when the signal exceeds {insert time in seconds}, Stop-event is "live".

    Now connect a block action, which controls the ventilation switch corresponding (light: curve rises, turn off: curve drops - is this correct?), the action should be triggered, if the signal of the previous block put on a rising.

    How to control the measurement time of 10 min with meter,-relaxation, switch-action-modules and is left as work at home.

  • How to start, stop and restart the task

    Hi all
    Need advice on what is the right way to start, stop, and restart a Java task?

    I tried with Executors.newCachedThreadPool () or fixedThreadPool(), however I could not present the task once. My program crashed when I tried again the task again after a shutdownnow command()

    Tasks are designed to be run once. If you want to restart features, use a service:
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/concurrent/service.html

    Service I posted in the following thread shows how to proceed:
    Multithreading

    Use of executors is unnecessary because a Service encapsulates the management of execution threads (although you can set your own liquidator on the service if you really need). Everything you need to do is use the start of the service, cancel, restart, and reset if necessary. If you do not use the cancel method, then you must ensure that your service is properly interrupt the current to cancel it for function, as you expect.

  • Frequently, my computer stops and restarts all am surfing the net? What should I do?

    Frequently, my computer stops and restarts all am surfing the net.  What can I do?

    Hello

    1. what type of internet connection do you use? What is a wired or wireless?

    2. you receive messages or error codes?

    2. did you of recent changes on the system?

    Step 1:

    You can check the following items and check if the problem occurs in safe mode with network.

    Start your computer in safe mode

    Startup options (including safe mode)

    Step 2:

    If you do not experience the problem in safe mode with networking, you can perform a clean boot and check.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    After the troubleshooting steps, please refer to clean the boot link to put the computer to normal startup mode.

  • window will stop in less than a minute, stops and restarts everytime I use the computer

    message-windows will be stop in less than a minute. appears, and then the computer stops and restarts. It's windows vista and it's this evertime I use the computer

    Hello

    ·        This happens randomly, or when you open any application on the system?

    ·        Since when are you facing this problem?

    ·        Remember to make changes to the system?

    Check the event viewer for the newspapers and let us know. Follow the steps mentioned in the link below.

    Open event viewer

    http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Method 1:

    Step 1:

    I suggest you to check in safemode, if the problem persists. Follow the steps mentioned below.

    a. restart the computer and keep tapping F8 until you reach the start menu.

    b. Select safe mode and press ENTER.

    Step 2:

    I suggest you do a clean boot and see if the problem still occurs.

    To perform a clean boot follow the steps mentioned in the link given below.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Follow step 7 to start the computer in normal startup.

    Method 2:

    It may be there is a scheduled task on your system. Check in Task Scheduler and if there is no scheduled tasks then, remove and check if the problem persists.

    Automate tasks with Task Scheduler

    http://Windows.Microsoft.com/en-us/Windows-Vista/automate-tasks-with-Task-Scheduler-from-Windows-Vista-inside-out

    Schedule a task

    http://Windows.Microsoft.com/en-us/Windows-Vista/schedule-a-task

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Explorer stops and restarts.

    Windows Explorer stops and restarts when I right-click on a file or a folder, or when I try to delete a file or folder. A window will appear: "Windows Explorer has stopped working. Windows is checking for a solution to the problem... ». Then another window will appear: "Windows Explorer restarts. This does not happen with all files and folders, but many. I can use a third-party program (sheets) to delete files and folders, but not to explore. I have recently installed Windows Live Mail, Photo Gallery and I replaced Norton Security with McAfee, but I don't know if the problem started after or before those. Says Windows solutions I check for updates but I have automatic updates turned on and I have all the updates.

    Hello

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    Did you use the McAfee removal tool to ensure that it has been uninstalled completely? If this isn't the case, it uses now.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    http://service.McAfee.com/FAQDocument.aspx?ID=TS100507

    Norton is also known to cause strange problems with explore and Internet Explorer.

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

  • Explorer Windows stops responding constantly and stops and restarts

    I have windows 7 and Explorer is constantly stops responding and then looking for solutions then stops and restarts. I don't know when exactly it started to do this but is real annoying and reached a point almost unusable.

    The event viewer will be your starting point. You will need to check your Event Viewer logs to see this error message is recorded exactly against incidents explore crashing. To find out what information is recorded in the event viewer and how to open it, you can read this article:

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Once you find errors in the event viewer, you can double-click it to see details on the error. There will be only a failed Module associated with the error, and which could give us some more.

    I saw this problem caused by Norton Antivirus. If you have running on your computer, you can disable it from the Norton Control Panel and check.

    You can also put the computer to clean the start State and see if any of the non - Windows Services running on the computer is at the origin of the problem. If the problem does not occur in the boot, you can activate these non-windows services one by one and see which one is the culprit. Here's how to Windows 7 computer in a clean boot state:

    http://support.Microsoft.com/kb/929135

    Hope this info helps.

  • After 5-10 minutes my Satellite L650 makes a stop and restarts

    I have a strange problem with my new laptop Satellite L650.
    Initial bootstrap is ok, and I can start to work. Then, suddenly, after 5-10 minutes the laptop makes a stop and restarts!
    The second start is fine and I can work normally for hours.
    Everyone has the same problem?
    What should I do?
    I have the most current BIOS installed, sw suggested by the Board of Directors of Toshiba report but nothing has changed.
    Michele

    Hello Michele

    An error message appears before shutdown of the laptop?
    Is a certain application in use when this happens?

    Since when you noticed this behavior?

  • Hi, I have a toshiba tecra 5000 I downloaded updates when they try the third phase of the update download the computer stops and restarts.

    I'm a newbie with this stuff so bear with me.  I updated charges, when they get to the third stage of the download the computer stops and restarts. I tried all types of restart, the system is unable to connect. now the hard drive light on the face of the computer won't lite, the laptop won't even consider itself restart any ideas

    Hello

    1. the updates you downloaded?
    2 a successful installation of updates?
     
    Follow these methods and check
     
    Method 1:  If you are still not able to start the desktop computer, you can rename pending.xml and check.
    Renaming or removing the pending.xml file booting from the Windows Vista disc.
    a. Insert the installation disc.
    b. restart your computer.
    c.Press any key to load the disc.
    Note: If your computer is not configured to start from a CD or a DVD, see the documentation provided with your computer. You may need to change your computer's BIOS settings.
    d. choose your language settings, and then click Next.
    e. in the System Recovery Options menu, click command prompt
    f. at a command prompt, type the following command below and press ENTER
    CD C:\windows\winsxs
    g. now, type ren pending.xml pending.old , and then press ENTER.
    Restart the computer and check.
     
     
    Method 2:  Once you are able to boot to the desktop, follow this method.
    An update is not installed successfully when you try to install the update in Windows Vista and Windows 7:
    http://support.Microsoft.com/kb/949358
     
     
     
    Thank you
  • Get the message when running Norton - OS file system error (C :), advised stopping and restarting,)

    Original title: what is system problem Partition OS operating system error (C :) file)

    get the message when Norton - OS file system error (C :), recommended stop and restart running, did not help)

    Hi catherinegood,

    1. When did you start to question?

    2. you remember to make changes to the computer before this problem? Hope this information is useful.

    This is error occurs when Norton scan, then you can check with Norton and check:

    Check the link for the support of Norton:

    http://securityresponse.Symantec.com/Norton/support/contact/contact.jsp

    http://www.Symantec.com/support/index.jsp

    If you try to run a scan, you can check out the following link and try to download the Microsoft Safety Scanner and analysis complete on your computer and check.

    Note: When you perform the analysis, there are risks of data loss you can take a backup of important data before performing analysis.

    Check out the link:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Hope this information is useful.

  • What is the difference between the stop and restart?

    What is the difference between the stop and restart?  I feel that stopping closed all processes, completely erases RAM memory and clears the cache of the processor.  I need to know if 1) this is a correct assumption and 2) which is better for daily maintenance of the system.  Thank you in advance.

    Hello Jeremy_1976,

    Your support when the judgment is correct. Basically, it stops the process and completely turns off your computer. Reboot, however, temporarily your PC stops, then turn it on again. This happens usually when Windows updates are installed. After installation, the system is restarted (rebooted) so that any update has been successfully installed and works as it should. You can be a little mixed upward the reboot and the hibernation. Reboot is, as I have indicated previously, basically a reboot of your machine. Ultimately, your PC is on again after a reboot. However, hibernation, stores all data currently in memory in a special file, then the PC turns off. When you then turn on your PC, that is, coming out of hibernation, hibernation files is used to restore the status of the PC than when you initially put into hibernation. In other words all the programs you had open before will automatically open and be ready to use hibernation.

    Hibernation or sleep for that matter is for short-term use. It is normal in Hibernate, or sleep if you want to be away from your PC for half an hour or so. If you leave more than I suggest you stop completely.

    A point to remember about hibernation is that, if you use put into hibernation, you can't, once you get out after hibernation, install programs or updates. You have to stop and restart normally to do.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • in windows 7 windows live mail can stop and restart when I try to convey whatever it is

    Windows live mail can stop and restart when I try to convey whatever it is

    Hi 428Tom

    For support with Windows Live Mail, please address your question to the forum Live Support from the link below. Thank you.

    http://windowslivehelp.com/

  • Explorer.exe stops and restarts constantly - I have a solution but its only temporary.

    Had no problems with Windows 7 for a year. Then recently explorer.exe stops and restarts repeatedly, over and over again each 5-10secs. Our Event Viewer error is a .dll module in User\User blame name\Apps\Local\, called eciwavatebiwe.dll. I find this .dll and when I rename the judgment falls down, but instead I raise an alert at startup that windows does not find this file (I click just the red x).

    I used virus and sfc/scannow ladies, but no error reported.

    The file in question announced swapper Windows NT caps lock ctrl but Googling is not this .dll anywhere.

    Any ideas what going on?

    Chris

    eciwavatebiwe.dll is a virus what I see. Remove it and start regedit.exe and findeciwavatebiwe.dll and delete everything you find.

    Also scan your system with your scanner, AntiVirus and Malwarebytes' Anti-Malware (http://www.malwarebytes.org/mbam.php).

    André

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • Try to install 9 Captivate. Mac has been extremely slow, so I had to stop and restart early in the installation process. When I try to open the installation program again, it reads "Setup Failed To Initialize. Please download Adobe Support Advisor to dete

    Try to install 9 Captivate. Mac has been extremely slow, so I had to stop and restart early in the installation process. When I try to open the installation program again, it reads "Setup Failed To Initialize. Please download Adobe Support Advisor to detect the problem. "But there is no longer the support Counsellor. How to solve this?

    Go to Adobe Captivate

  • system stops and restarts as soon as I click on adobe icon pro first

    My system stops and restarts as soon as I click the icon of Adobe Premiere pro. I also spent off some of the Visual effects in the Performance information and tools in Control Panel. Although I already understood how to stop my system to reboot automatically, but still my system freezes when I click on the icon.

    Care of my system are-

    Intel core i7 4770

    8 GB ram

    Windows7 ultimate 64-bit

    ZOTAC Nvidia Geforce Gtx 650

    Well, thank you very much for your help, but he has already begun to work idk how...

Maybe you are looking for