Stopping the execution in between

Hi,
I am using a Event structure to Start and Stop the test. In the Start event i will be having a stacked sequence which consists of many sequences. In the Stop Event I will be stopping the execution. If I press Start button the sequence under this event will start running. I want to Stop the execution or skip the next set of sequences in between the sequence. During this I lose the control over the GUI and I cannot do anything until the sequence under the Start event is completed. I can stop the execution by pressing the abort button but i want do it programmatically.
Regards,
Rajashekar

Here you go...your code with state machine implementation. If you implement it this way, you can definitely take care of the case that you have mentioned.
Example in LV 8.6.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
Sample_State_Machine.zip ‏14 KB

Similar Messages

  • How do I stop the EMAIL sync between my desktop  and my laptop?

    How do I stop the email sync between my desktop computer and my laptop? Right now, the laptop is set to automatically load my email when I click on mail. I use my desktop daily; laptop only when traveling. The laptop is somehow set to receive ALL messages, so I get messages that are several weeks/months old. I want to be able to manually sync and NOT have all of the hundreds of old, already viewed messages sent to my laptop. However, I DO want my desktop to receive all of my old messages so that I can have them when I return from traveling. Thanks.

    Actually, your mail isn't 'synchronizing' in the conventional sense at all. And, you are effectively trying to make it do so manually at the present time. As you have discovered, this simply does not work.
    The only way that you can effectively address your requirements is to use IMAP—rather than POP3—technology. Using IMAP will allow you to readily control what is stored on the server, and will provide a view into that data store when you use your portable computer.
    While is is possible to use POP3 and set one computer to delete mail from the server and the other not to, this is potentially fraught with problems, and will not fully address your concerns.
    An IMAP option is available from such providers as Apple with .Mac, AOL with AOL Mail and AIM Mail, and Google with GMail. You can convert an existing POP3 account with such a provider to IMAP with little difficulty, or initiate a new IMAP account with such a provider and forward mail to it from providers who do not offer such an option.

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • Stop the execution of main for 2 more seconds

    hi,
    I would like to stop the execution of the main program for few seconds and resume again.
    i tried
    try
                        this.wait(90000000);
                   catch(Exception e)
    but did not work
    could some give any other suggestions
    thanks
    jag

    Also, it's better to catch the specific Exception that the Thread.sleep method throws.
    (InterruptedException)
    And it's usually good to output any exception messages, so you can see what's going on.
    Instead of empty catch brackets, it's better to write e.printStackTrace();
    (where e is the name of your caught Exception...)
    cheers!
    lutha

  • Stop the execution for Some seconds

    I want to stop the execution for some second , Basically
    i want some funtion which will wait for specified period .
    it should work like Inkey() in foxpro .
    I have tried timer , pause but that does not solve the problem
    Thank you
    Regards
    Farukh

    find the library d2kwutil.pll (probably in c:\orawin95\tools\devdem60\demo\forms) and copy it and d2kwut32.dll to your application directory. Attach the pll to your form; now you can "interface" with windows. So for pausing you application use this in you form:
    win_api_utility.sleep(1000);
    the parameter takes milliseconds. so in the example it's 1000 milliseconds or 1 second.
    good luck!
    Tim

  • How to stop the execution of a program

    greets folks
    i want to know if its possible to stop or let in stand by the execution (run) of a program while HttpService responds the request??

    No. All remote requests in Flex are asynchronous.It's part of how Flash Player works and you can't change that. You need to react to the event when the call completes. What are you trying to achieve?

  • How Can we stop the execution of java program which contain infinite loop

    Dear All,
    I create one .bat file which which execute the simple java program
    I write one java program which execute above .bat file using instance of Runtime Class of java
    It's work fine if java program which is executed by .bat file is simple(Which has normal termination)
    But if that program contain inifinte loop then that file will goes on executing untill I close it manually
    So i want a solution in java which close that bat file (command window ) which is in running condtion
    If there any solution please replay me
    I try to close that .bat file using destroy() ,stop() method of Process and Runtime , Thread Class
    but it did not give me correct output
    .bat file still running !!!!!!!!!
    Thanks in advance

    Why not use javaw.exe to make the app run so you don't need the dos window (which is presumably what you are actually talking about when you say bat file).

  • Stop the execution of MIGO BADI on click of a button

    Dear Experts,
    My client have a strange requirement in MIGO  BADI i.e. MB_DOCUMENT_BADI.
    He wants me to show a popup with some information and which has 3 buttons on it in the above BADI implementation.
    These 3 buttons are YES, NO & VIEW PDF.
    When the user clicks on YES, the processing of the exit will continue with some user defined logic and the document will get posted.
    And when the user clicks on NO,  the processing of the exit will continue with some other user defined logic and the document will get posted.
    But the problem comes when the user clicks on VIEW PDF button, he wants to open a new window having a pdf file in it but still have the program control on the popup only.
    To be more clear when he clicks on the VIEW PDF button, i should open a new session and show the PDF file but my popup should still be active and my user exit processing should be on hold until he selects YES or NO buttons and my document should not be posted.
    I have written the code to open the PDF file, but when the user clicks on the VIEW PDF button the program control does not stops and the document gets posted into the system.
    Can anyone help me out with this?
    Thanks,
    Praveen Bitling

    Dear Praveen,
    Kindly execute your logic for yes or no in if condition by checking sy-ucomm.
    Regards,
    Pushkar

  • Is there a way to stop the text shifting between mac and pc?

    I can't believe there is still no fix to the vertical text shift issue when transferring fla's between Mac and PC's. Create an fla on a Mac put some text in it, save the file and open it on a PC and see how the text has dropped.
    Adobe please tell me I'm missing something here or at least acknowledge the problem and explain the cause.
    This problem has plagued flash for as long as I can remember. None of the other applications (Photoshop, Illustrator etc) have this problem. It wastes huge amounts of time and causes massive quality control issues especially when outsourcing work.
    We're using CS3 now and the problem is as bad as ever. It happens with all text fields and all font types.
    Please help.

    Don't get your hopes up that anyone from Adobe will see your posting.  These are user to user forums and appearances by anyone from Adobe are rare.
    suggestions to Adobe - Wishlist
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Hello i was wondering if theres anyway to stop the music splitting between two earphones this is often found when playing the beatles and i find it quite annoying... Thankyou :D

    I listen to the beatles often but this music split between earphones is quite annoying

    They sell mono headphones.  Here is a review:
    http://reviews.cnet.com/headphones/?filter=500267_3812960

  • Stop the task activity flow programmatically

    Hi all,
    I'm using ADF Faces 11gR1
    I've made a method that i call every time an exception is raised in managed beans. This is a way to show all the runtime exceptions in a dialog without redirect to a default error page. I'm using FacesMessages to show the dialog errors.
    But I've a problem/question. If I press a button with ActionListener and Action, and an exception is raised in the method executed by the ActionListener, how can i do to stop the execution of the Action??? It is because the popup informing that an error has been produced, is raised me in the next page, called by the Action.
    Here is the code:
    1. Press a button that executes this method raising a NullPointerException:
    *public void doNullPoiner3(ActionEvent actionEvent) {*
    try{
    System.out.println("put a message with id");
    String s = null;
    System.out.println(s.substring(0));
    }catch(Throwable th){
    CustomExceptionHandler.reportTechnicalException(th,"it1");
    2. The code for reportTechnicalException()
    *public static void reportTechnicalException(Throwable th, String idField) {*
    //retry the customized messages(summary and detail)
    //Show the error
    addFacesErrorMessage(summary,detail,idField,FacesMessage.SEVERITY_ERROR);
    *private static void addFacesErrorMessage(String summary, String msg, String stId, javax.faces.application.FacesMessage.Severity severity) {*
    FacesContext ctx = getFacesContext();
    FacesMessage fm = new FacesMessage(severity, summary, msg);
    String stViewComponentId = (stId!=null && findComponent(stId))?stId:null;
    ctx.addMessage(stViewComponentId, fm);
    Please, can you help me?? i only want to stop the execution of the task flow if it exists.
    Thank you in advance,
    XAVI.

    Hi,
    Have the action listener throw an AbortProcessingException. It's a reserved JSF exception that stop the event propagation without killing the request.
    ~ Simon

  • Need to stop servlet execution until another thread completes its execution

    Hi all,
    i created servlet & in the doPost method i run a thread,after the thread end its execution, the servelt takes a result from this thread & do something in it.
    my problem is that , i need to make the servlet stop the execution until this thread ends, & then the servlet continue in executing the remaining code.
    welcome to any help.

    This appears to be a threads related problem. Try Thread.join - http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#join()

  • CodedUI : How to stop the TestMethod from iterating in a csv file?

    Hello All,
    I have a [TestMethod] which use a csv file. Now this csv file have some 20 rows in that. For one [TestMethod] I need to select one row from that csv, I am able to extract that row. No problem so far. 
    Once my [TestMethod] finished execution with this particular row I need to stop that. It should not take the next row from csv and execute the [TestMethod] with new set of values.
    What should I do to stop the execution after that single iteration?
    Thanks a tonne in advance.
    Thanks and Regards, Sajeev.

    Hi Sajeev,
    You may not be surprised to hear that this question (or something similar) comes up a lot.
    There are a number of basic solutions out there using if statements or loops with only one iteration (this one for example:
    https://social.msdn.microsoft.com/Forums/en-US/7571dbe5-495b-4e47-b012-1c09fbb40a4b/coded-ui-data-driven-test-limiting-the-number-of-iterations?forum=vsautotest)
    You can also ad named ranges to your CSV file and refer to these in your data source configuration instead of the sheet (this post has a lot of detail https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/79c9f86a-a223-4ab6-84af-a7c4baed4951/taking-data-from-single-excel-sheet-for-multiple-test-methods?forum=vstest)
    The drawback of the first type of solution is that all of the "empty" executions for the other iterations will still have results recorded, which makes analysis more difficult. The drawbacks of the second solution are that it is more complicated
    to implement and takes as much work as just creating a new sheet with the single row added (which might be the best option).
    Regardless, I recommend giving both solutions a go if you have time, purely from the point of view of having your own opinion of them.
    Hope this helps,

  • How to stop an execution from a method and thread?

    1,
    public void method(){
    if( something is true)
    //I want to stop this method
    //or if something is false, go on
    blablablablabla
    }Does any one know how to solve the above??
    2,
    Thread t = new Thread(){
    public void run(){
    if( something is true)
    //I want to stop and kill this Thread
    //or if something is false, go on
    blablablablabla
    }Again, how do I solve the above??
    I know this is very simple, but I just hit a wall when I encounter this on making a program for my project.
    please help
    thanks alot

    warnerja, for the method, I have tried "return" but
    it does not work... will it work on the run method of
    thread object??
    Secondly, doesn't "break" keyword only stops the
    execution of a loop/condition, but not the method's
    scope??yes. break breaks the loop. I thought your method doesnt have any other code except the condition.
    use return with thread.

  • Possibility to abort the execution from within the PreUUT and MainSequence

    Hello,
    This is probably a TS newbie question that most of you can answer right away!
    I'm using the sequential model to develop my test. I cannot figure out how to do terminate the execution from within the PreUUTLoop or MainSequence callback.
    In the PreUUT you can manipulate the parameter ContinueTesting to indicate to the process model that you want to stop testing.
    For the PreUUTLoop and MainSequence callback this parameter is not available.
    I could modify the process model itself to also supply me this parameter for the PreUUTLoop and the MainSequence. (and check for it on return from these callbacks)
    But, I was wondering, is there another (maybe even better) way to do this?
    Thanks for the help!
    noxus.

    Thanks, that's what I was looking for.
    One extra question:
    - From the PreUUTLoop callback it is working fine. (immediately stops the execution)
    - From the MainSequence callback I still get the popup message "Next UUT" or "Terminate". Can I avoid this popup message and just Terminate the execution? (preferably without modifying the process model)
    or, another alternative is that I disable the "Test UUT" entry point and only allow the user to select "Single Pass". Is that possible? Is it possible to disable the "Test UUT" entry point for the sequential process model?
    Message Edited by noxus on 02-22-2007 04:17 AM

Maybe you are looking for

  • Screen says "Unable to listen to music; low battery" & won't charge?

    My niece just called me with a problem I could not find a solution to doing a search. She said she was listening to a song when her Nano stopped playing. When she looked at the screen, it said "You Can't play music, your battery is dead". It appeared

  • JAAS in Java StoredProcedures: How to set up LoginModule

    Hi, has anyone tried to use JAAS in a Java StoredProcedure on Oracle9i? I couldn't find out how to set up the JVM to find the login configuration. Here the error I get, whenn I run the StoredProcedure: ORA-29532: Java call terminated by uncaught Java

  • Exported files are uncorrected?

    I have imported and color balance a file of images. Now I want to export these corrected images to a file for a client. When I go thru the export steps and review the images in the new file the are the uncorrected version? Any clues? Thanks E

  • UnknownHost exception in the server console

              hi,           thanks in advance.           am in working with wls6.1 when am trying to execute HelloWorldServlet with examples           server am getting exception on the console it's displaying           java.net.UnknownHostException www.

  • I'll be more clear

    I see in the forums where many people have had this problem. I just dont know the solution. The pictures that show up through desktop manager have transferred over to my mac, but I can't get the ones on device memory (memory/home/user/pictures). (I w