Start Stop and Run button.

hello,
I have one question, I want one button which can be run/start/stop button. I can't compile the program with "Run when open", because I need the user enter a string and a configuration, however after the user enter a configuration, I want that a START button, and when the user want press the same button to STOP all the program. All without pressing the "Run button (white arrow)". So the sequence it will be:
1- open the ".exe"
2- configure the variables such as: file name, file path, comments.....
3- press START button, and the system will start acquisition.
4- press STOP button and the program stopped and save all the data in a file.
It is that possible? Could anyone help me with it? Or send me and example?
Best regards,
Anna.  

Hi,
You can do something like this.
Compile it with "Run when open".
Best regards
Matej
CLAD using LV 8.2, 2010 and 2012
R&D Laboratories
Domel d.o.o.
www.domel.com
Attachments:
StartStopAndRun.vi ‏13 KB

Similar Messages

  • How to make a button to stop and run a for loop?

    How to make a button to stop and run a for loop?  and if it is stopped it shall start from where i t stopped.

    Your VI has some very fundamental flaws.
    The start/stop button is outside the FOR loop, thus it will NOT get read during execution of the FOR loop, but only before the FOR loop starts. Think dataflow!
    Thus the terminal of the start/stop button belongs inside the FOR loop.
    Your FOR loop iterates 20x, which probably takes about a nanosecond. You will NOT be fast enough to reliably press the start/stop button during a specific iteration of the FOR loop.
    Your code does not "stop and run" a FOR loop (sic). The loop always spins, but executes an empty case when "Stopped". I guess that's what you actually want?
    Once you solve (2), the x indicator will contain a random value whenever you "stop".
    As soon as the 20 iterations complete, the outer while loop spin an things start over, another nanosecond later.
    Place e.g. a 500ms wait inside the FOR loop to solve this.
    Don't place terminals of indicators on top of formula nodes.
    Your formula does not produce any output, so really has no purpose.
    Use a real "stop" button to terminate the while loop (mechanical action: latch when released). Right now you are using a plain switch, which does not reset to false before the next run. This means that you need to manually reset it before running the program again.
    It is oftern useful to operate the VI in execution highlighting mode. You will immediately see that your button does not get read during execution of the FOR loop. Try it!
    LabVIEW Champion . Do more with less code and in less time .

  • Start, stop and restart while loops

    Hi, my qustion is i have 2 example a and example b. Example b lets u start counting up in seconds when u want to. as long as the toggle switchs are in correct position. it also lets u start, stop and restart if need be. i want to be able to that with example a, but for some reason the while loop always sets of running independent of what position the the toggle switch. Any help greatly appreciated.
    Thanks Stuart
    Attachments:
    examplealib.llb ‏202 KB
    exampleb.vi ‏25 KB

    An example as the attachment.
    Attachments:
    switch.vi ‏23 KB

  • Correct way to stop and run again a FPGA reference

    Hi guys !
    I have some issues when I try to stop and run again an FPGA vi, I explain.
    I have two DMA FIFO, one to send data to the FPGA from the CPU, and another from the CPU to the FPGA. When it receives data, the FPGA processes them and sends them back to the CPU and according to the result the CPU makes something. For instance it can be switch on LEDs or rotate a DC motor.
    But to do this kind of actions, I have to use an "FPGA Personality", LEDs and I/O Pins seem to be managed by the FPGA core. So I've to close my FPGA vi reference in charge of receive data from the CPU, make my LEDs switching on and then after rerun again my FPGA VI again, If I don't do that LEDs blinking or motor rotation stay without effect... But close and start again the FPGA VI creates problems during the execution, especially for previous waiting of reading on the DMA FIFO... I've tried to catch errors on the FIFO to start again the FPGA VI with a right timing but nothing... I'm lost and I think that I'm missing something, a concept or something else.
    I can't share my code because I'm working for a company but I would like to know if you have VI with this type of structure : an FPGA reference which have to be halted to allow hardware interaction with the default FPGA personality and then run again, everything with a good synchronisation...
    I hope I'm clear, but if it's not the case, I can reword if necessary.
    Thank you for the help !
    Afghow.
    Solved!
    Go to Solution.

    Afghow wrote:
    I think the end user doesn't have to know that when he wants to make LEDs blinking he has to call a FPGA bitfile. I mean running an FPGA VI and want to make LEDs blink from the CPU VI at the same time should be transparent for the user and this without keep in mind horrors like bitfile switching for instance.
    He doesn't have to load a different FPGA bitfile.  Everything you need that FPGA to do should be in the bitfile.  Keep in mind that we are talking about HARDWARE when we talk about FPGA.  Each time you change bitfiles, the hardware has to be reconfigured.  That takes time and is pointless for the situation you are talking about.  Build your FPGA code to do everything you need it to and you will be fine.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 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.

  • My refresh button will not appear in 4.0, all I can get is a stop and home button, the refresh shows up in customize toolbar and I can put it up there, but as soon as I close it it dissapears, how do I get my beloved refresh button to show up?

    At first I had the stop/refresh buttons merged, which I hated so I tried putting spaces and things between them to stop their unholy union, but instead it has now made my refresh button dissapear in anger for not being allowed to see that dirty stop button! I cannot make it come back! Even if I put it on the toolbar in customize and it shows up, the moment I close it it has gone again.

    Firefox 4 uses a combined Stop/Reload/Go button that is positioned at the right end of the location bar.<br />
    During the page load process it shows as a Stop button and after the loading has finished the button is changed to a Reload button.<br />
    If you type in the location bar then that button becomes a Go button.<br />
    You can middle-click that Reload button to duplicate the current tab to a new tab.
    To move the Stop and Reload buttons to their position to the left of the location bar you can use these steps:
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Drag the Reload and Stop buttons to their previous position to the left of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.
    See also:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Shell script to start, stop and restart a JAR

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
      public Client(String name){
      public void stopClient(){
      public static void main(String[] args){
         new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Can I put abort execution button and Run button in GUI ?

    Dear All ,
    Can I put "abort execution button" and "Run button" in GUI with bigger buttons ?
    Thanks.....

    Hi wMw.
                 Aborting normally works fine for very small applications or architectures but not for anything after that. Aborting a VI can leave things in states that you don't want to be in or references open. Sometimes you do need to Abort the code though (other programming environments use Abort buttons) so I don't think we can get rid of it entirely.But try to avoid it maximum.
    EDIT:why you are trying to do such a strange thing??
    Thanks as kudos only

  • Stop and play buttons...

    How would I go about adding stop and play buttons to a slideshow?
    stop1.addEventListener(MouseEvent.CLICK, stop1);
    play1.addEventListener(MouseEvent.CLICK, play1);
    function stop1(event:MouseEvent){
    if(this.currentFrame == 1)
    { gotoAndStop(this.totalFrames);
    function play1(event:MouseEvent){
    if(this.currentFrame == 1)
    { gotoAndStop(this.totalFrames);

    well idk if the code is even right i need help?  The way the slide show is working is i have it on the timeline....  With this code it doesnt play automatically and when i push play it goes through them in like 2 seconds and you can't see anything?
    stop1.addEventListener(MouseEvent.CLICK, stopSlide);
    play1.addEventListener(MouseEvent.CLICK, playSlide);
    function stopSlide(event:MouseEvent):void {
    stop();
    function playSlide(event:MouseEvent):void {
    play();

  • Stop and reload buttons

    When are we going to get stop and reload buttons in Safari?

    Hi,
    The reload / refresh button is in the Safari address bar already on the right.
    I see that going back as far as Safari 4.1.3 that is.
    Carolyn

  • Stop and refresh buttons

    Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.

    You can try to press the ESC key to stop loading the page if you see the Stop button instead of the Reload button. You can also reload the page via F5 or Ctrl + F5 (cache bypass).
    Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
    To restore the Firefox 3 appearance you can use these steps:
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Move the Reload and Stop buttons to their previous position at the left side of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.

  • DVD Start/Stop and Subclips

    Question: In my browser I have double clicked a clip, it opens in the viewer, I then go to >View>DVD start/stop and the markers are inserted. Once I go back to the browser and highlight the markers and go to Modify>make subclips, FCP will only convert about 27 or 28 of the markers to subclips, when there is actually over 100 markers. Is there a maxium limit on the number of markers that can be converted or that will appear in the browser list? Hope I am clear.
    G5-1.8GHz-2GB DDR SDRAM- 250 ATA HD just upgraded to FCP 5.1
    Thanks,
    Mary
    Power Mac G5   Mac OS X (10.4.8)  

    I've done it both ways, not sure which is easier.
    HDV capture creates individual clips (individual media files) based on the detected start/stop and uses a name you specify at the initiation of the capture appending a sequence number to the end of the name for each new clip. S/S detect always uses the name "Segment". Like the Segment clips, HDV clips are in natural order, as you say. I'm guessing that the file system is smart enough to consider the entire number at the end of a name, but sorts character by charcter if the number is in the middle of the name.
    Just seems a little short sighted to use different naming conventions for essentially the same function, especially when it causes the files to be out of order.

  • Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.

    Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.

    You can try to press the ESC key to stop loading the page if you see the Stop button instead of the Reload button. You can also reload the page via F5 or Ctrl + F5 (cache bypass).
    Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
    To restore the Firefox 3 appearance you can use these steps:
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Move the Reload and Stop buttons to their previous position at the left side of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.

  • How start, stop and access BAM?

    Hi,
    I have installed BAM and now I do not know how to start and stop the application. Also I am not able to access to the home page.
    I installed BAM by double clicking the setup.exe file. After following all the installation steps, a new folder has been created in my C drive (C:\OracleBAM). Inside that folder, there is another one called ClientForBAM. Should I have other folder besides the client? Inside the ClientForBAM there are lots of folders.
    In the Windows Start menu I have a new group called Oracle_ClientForBAM32100. From there, I can access to:
    - Configuration and Migration Tools
    - Desarrollo de Aplicaciones (sql plus)
    - Herramientas de Configuracion y de Migracion (Net manager)
    - Herramientas de Gestion Integradas (Wallet Manager)
    - Oracle Instalation Products
    So, there is no menu option to start, stop or access to BAM. I've read documentation about this and saw that the home url was: http://simge-eai-dev:8081/oraclebam (my host is simge-eai-dev, and my port 8081) But when I type that url in my browser I get the following error:
    Error HTTP 404 - No se encontró el archivo o directorio. (file or directory not found)
    Servicios de Internet Information Server (IIS)
    I looked at the logs and I found this in the sqlnet.log
    Fatal NI connect error 12514, connecting to:
    DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=simge-eai-dev)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=SIMGE)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\nmupm.exe)(HOST=SIMGE-EAI-DEV)(USER=SYSTEM))))
    This in the operf10.log
    2/18/2008 15:2:27 UPI_CONNECT failure: error 28000 Hostname SOASUITE Username SYSTEM =(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle10)(ARGV0=oracle10orcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)))
    Can anybody help me with this? How can I know if the BAM is running or not?
    Thanks in advance,
    Zaloa

    Finally I found out what was happening.
    Only the client was installed because in order to install the whole thing, it is necessary to execute the setup file twice.
    The first time, the client is installed and the second time, the server.
    Regards,
    Zaloa

Maybe you are looking for

  • Can i install windows 8.1 as a virtual machine without an existing windows os

    can i install windows 8.1 as a virtual machine without an existing windows os? I only have the download of 8.1, no cd.

  • Repeating structure through the receiver file adapter

    I wanted to ask wheter it is possible to create repeating structure through the SAP xi receiver file adapter. What I'm trying to accomplish is this: Item1 Item2 Item1 Item2 (variable number of times). I can accomplish the following: Item1 Item1 Item2

  • Stock to be moved to Available stock

    Hi Experts, New to WM.... Please help. During GR process user has done wrong postings and due to that stock lies as below 982 post Change Area          stock for Put Away (0 pcs)             Pick Qty (50 pcs) Bin 01-06                               s

  • Mass Closure of PO through an ABAP development

    Hi , I have a requirement of a mass closure of Purchase Orders supplied through an upload file , by marking the 'Delivery Complete Indicator ' for all line items in each PO . Is there any BAPI or Function Module for the same ? BAPI_PO_CHANGE does not

  • Adobe Reader version 8 and Apple PDF files

    Since installing the Adobe Reader version 8.0, I cannot view any PDF files within Safari from the Apple document web pages (I have not yet tried other sources). All I get is the spinning beach ball, and have to Force Quit Safari, which is described a