How to terminate TestStand Applicatio​n after a LabView error.

We've just started launching TestStand from a command line, and when it (TS) stops sequence execution due to a LabView error, the command window doesn't know its status. So, I have a two part question:
1) Is there a way to COMPLETELY STOP the TestStand application when a LabView error is encountered? (I have been able to get the error popup to stop, but TestStand is still active and the command line is still sitting there thinking everything is fine).
2) Assuming that there is a solution to #1, is there also a way to get LV or TS to report the error to an external command prompt or batch file?
 Thanks,
   - Paul Iovanna
Solved!
Go to Solution.

Hi Manooch,
We've managed to get the TestStand sequence to stop when we want it to (by using the /quit option in the command line), but now we can't seem to get Reports to generate.
Specifically what we are doing is including a particular test sequence in a fully automated Build/Test/Report system. After an automated build of our product completes, we have tools and command files that load all appropriate code into the various components of our system, and then we lauch a TestStand sequence that exercises much of the newly imaged system. Since we are running from the command line - and that command line is being monitored by other processes within our Build/Test/Report system, we need to have TestStand stop AND exit, or else the command line just hangs.
So, we really need two things to happen:
1) Get TestStand to stop execution AND exit - and we seem to have this working.
2) Report the results from the test sequence:
   - We have no problem doing this when the Sequnce Editor is launched directly, and the sequence is started from its GUI.
   - However, when we use the command line to launch the sequence via your "TestExec.exe" - there's no report! All of the Report Options settings are the same as for the Sequnce Editor GUI.
So, at a minimum, we need to get the usual report to be generated and saved when we launch from the command line - and the preferred option would be to have any error codes from TestStand (or LabView, since the test sequence uses only LV steps) reported directly to the stdout, in this case the command line.
Hopefully that explains our setup and requirements a little better - and thanks in advance for the assistance.
FYI - TestStand version 4.1.1 running on Windows XP.

Similar Messages

  • How to Run teststand sequence file using the LabVIEW

    Hi
    I want the execute the Teststand Sequence file using the LabVIEW .Net containers.I didnt find out the Execution Parameter in the .Net Container.Do you any suggestion regarding this question.Please let me know.
    Jayavel

    TestStand comes with loads of Operator Interface examples some simple, some full fledged. You can find it in teststand public folder win7 path here:C:\Users\Public\Documents\National Instruments\TestStand 2010 SP1\UserInterfaces
    You can take these examples or use ideas from here, also read the teststand reference manual. It has a section about Operator Interfaces.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How do I save a file after getting an error in CS5?

    I was working on Adobe Photoshop CS5 on my 64bit Windows 7 when I got the following message:
    Adobe Photoshop CS5 has stopped working
    A problem caused the program to stop working correctly. Windows will close the program and notify you if the solution is available.
    How do a save the file before the program needs to close?
    Can I just close the Windows pop-up displaying the error, or will that also close the program?
    I have not saved the file in a while and I don't want to lose all the work I have done.
    Please help!

    By the time you see that error message, it is already too late.  Photoshop has already crashed.
    That's why the Auto Save feature in CS6 is so attractive,

  • How to change data after getting an error in me51n,std purchase requisition

    how to make input field editable after getting an error message in ME51N,std purchase requisition
    Edited by: SQLFOLLOWER on Nov 18, 2009 1:00 PM

    Try this
    In user_command form...
    LOOP AT IT_DATA.
    IF  CHECKBOX __MARK EQ 'X'.
    write logic wht u want....
    ENDIF.
    ENDLOOP.

  • How can I terminate TestStand without requiring user input?

    I want to completely terminate TestStand and any running sequences. Engine.ShutDown seems to have a delay waiting for user input. Is there a function call that disregards this delay and immediately either kills all sequences or unloads them and kills TestStand?
    I am trying to do this in C++.

    To BMas05 -
    Yes if you set,
    Setting: "Exiting"
    Condition: "When Executing"
    Time Limit: "2"
    Action: "Terminate Execution"
    On shutdown, if an execution is running for more than 2 seconds after shutdown is initiated, TestStand will attempt to terminate the execution.
    Now if you wanted to escalate terminations that take too long you could additionally set,
    Setting: "Exiting"
    Condition: "When Terminating"
    Time Limit: "4"
    Action: "Abort Execution"
    So now on shutdown, if an execution is terminating for more than 4 seconds after termination is initiated on shutdown, TestStand will attempt to abort the execution.
    Now if you wanted to escalate aborting executions
    that take too long you could additionally set,
    Setting: "Exiting"
    Condition: "When Aborting"
    Time Limit: "6"
    Action: "Kill the Execution's Thread's"
    So now on shutdown, if an execution is aborting(typically unresponsive) for more than 6 seconds after abort is initiated, TestStand will attempt to kill the unresponsive thread.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • How to terminate a java thread from c++ code?

    Hi,
    I made a screensaver which loads a jvm, forks a thread running a java class, wait until user's action(i.e. mouse move/click keyboard input), then terminate the java thread.
    However, I met a problem, How to terminate a running java thread from c++ code?
    Here is my code, but it does not work: (even after the terminate is called, jvm throws an error)
    JNIEnv* env;
    JavaVM* jvm;
    HANDLE hThread; //handle for the startThread
    unsigned __stdcall startThread(void *arg)
         jclass cls;
         jmethodID mainId;
         jint          res;
         int threadNum = (int)arg;
         res = jvm->AttachCurrentThread((void**)&env, NULL);
    cls = env->FindClass( MAIN_CLASS);
         mainId = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
         // setup the parameters to pass to main()
         jstring str;
         jobjectArray args;
         int i=0;
         args = env->NewObjectArray(1, env->FindClass("java/lang/String"), 0); //only one input parameters
         str = env->NewStringUTF("localhost");
         env->SetObjectArrayElement(args, 0, str);
         env->CallStaticVoidMethod(cls, mainId, args); // call main()      
         if (env->ExceptionOccurred()) {
                   env->ExceptionDescribe();
         return TRUE;
    Here is the main method:
    First create the jvm and load the thread. then tries to terminate the thread, but failed here
    switch (msg)
    { case WM_CREATE:
              JavaVMOption options[NUMBEROFOPTIONS];
              JavaVMInitArgs vmargs;     
              jint rc;
              vmargs.version = JNI_VERSION_1_4; /* version 1.4 */
              vmargs.options = options;
              vmargs.nOptions = NUMBEROFOPTIONS;
              vmargs.ignoreUnrecognized = JNI_FALSE;          
              rc=JNI_CreateJavaVM( &jvm, (void **)&env, &vmargs ); /* create JVM */
              /* We pass the thread number as the argument to the invoked thread */
              unsigned int threadId = -1;
              // to initialize a thread-safe C runtime library
              hThread = (HANDLE)_beginthreadex(NULL, 0, &startThread, NULL, 0, &threadId );
    } break;
    case (WM_DESTROY):
              CloseHandle( hThread );
              jvm->DestroyJavaVM(); /* kill JVM */
              Debug("Destroy Java Virtual Machine\n");
    }break;
    Note, after the thread "startThread" runs, it has an infinite loop and will not terminate, until the user clicks to terminate.(I didn't call jvm->DetachCurrentThread();_endthreadex(0); in the "startThread" because the java thread will not terminate by itself)
    Thus, the only way to terminate the thread is to call closehandle(hthread) in the main thread, which may cause jvm to throw an error.
    Do you know how to terminate a java thread safely???
    Thanks a lot

    Assuming that your java thread is in a loop of some kind. Such as
    int i=1; /* I tried using a boolean, I just could not get my C++ env, to change this value. So i decided to use an int */
    run {
    while(i)
    isdfjsdfj
    void seti()
    i=0
    So, B/4, i call destroyVM in my C++ code, i call this seti(). so the loop terminates, therefore my thread finishes executing and ends.
    Hope this helps
    tola.

  • Integration Directory - how to terminate all logons?

    I was importing RFC definitions from R/3 in ID. Laptop battery went down and got disconnected with SAP XI,IB.
    After 5 mins, restarted laptop (powered by wire). Opened same SWCV in Integration Directory to change the connection data to point R3 system instead of XI SAP. It gives message "Object SWCV myswcv is currently being edited by user myIDuserid"
    This is what I did sofar, but no luck
    -logon to XI system, transaction SM04. Terrminate all connections with SAP XI.
    Please advise how to terminate all logons in Integration directory? Thanks

    Hi,
    You can go to 'index page' click on 'administration'. In that you will find on the left side 'administration of locks and caches'. You can click 'lock overview' and unlock the objects.
    Regards,
    P.Venkat
    Message was edited by:
            Venkataramanan

  • How to terminate all Concurrent Programs from back end

    Hi,
    Can any one tell me how to terminate all Running Concurrent Programs from back end

    post this in the EB forum;
    also, investigate the built-in package fnd_concuurent
    begin
       for r in (select Request_ID from fnd_Concurrent_Requests
                 where Phase_Code != 'C') loop -- exclude requests that have successfully completed (R = Running P = Pending)
         fnd_concurrent.cancel_request(r.Request_ID);
         commit; -- you must perform a commit after each call
       end loop;
    end;
    /

  • How to terminate out of the program

    Hi Sapall.
    here i have got a requirement to create RFC and in RFC i need to check each and every value of the structure that iam getting from out side.
    now here if any of the fields of the RFC structure is invalid i need to update another table(structure) of RFC and terminate our of RFC.
    CAN ANY BODY TELL MME ON HOW TO EXIT OUT OF RFC AFTER FIELD CHECK.
    regards.
    Varma.

    You can raise an exception if you want to return an error, or simply use the instruction RETURN.

  • How to save report in PersonalCategory  after creating it using java panel?

    Hi,
    Anybody knows How to save report in PersonalCategory  after creating it using java panel?
    I dont want to save it in public folder. I want to save report (webi) in user's personal category.
    can anybody send me source code?
    It will help me a lot.
    Thanks in advance
    Amol Mali

    Hi teda,
    i'm assuming that you have seen my post that i did successfuly save report in user's personal category.
    Actually the report is created in webi java panel using RE SDK and  is saved in Report Sample Folder then i'm saving it in user's personal category by following code
    string query = "Select SI_PERSONAL_CATEGORIES From CI_INFOOBJECTS Where "
                         + "SI_INSTANCE=0 And SI_ID=" + reportID;
                    InfoObjects infoObjects = infoStore.Query(query);
                    InfoObject infoObject = infoObjects[1];
                    Webi wreport = (Webi)infoObject;
                    ObjectRelativeIDs personalIDs = wreport.PersonalCategories;
                /personalIDs.Add(Convert.ToInt32(categoryID));
                   infoStore.Commit(infoObjects);
    But the report is presents in the Folder also and in user's personal category also.
    I dont want the report to be in the folder (Report Sample) if i saved it in user's personal category.
    How can i do that?
    any idea.
    Please help me.
    Thanks in advance
    Amol Mali
    Edited by: amol mali on Jan 9, 2009 7:55 PM

  • How to save data in ztable after editing in alv report

    how to save data in ztable after editing in alv report?

    Hi,
        Please find the attachment below.This may be usefull to you.
         [http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editingandsavingtheeditedvaluesin+Database%28OOPS%29]
    Regards,
    Ramakrishna Yella.

  • How to return a html repsonse after form guide rendering in browser?

    How to return a html repsonse after form guide rendering in browser indicating that server has recieved transmission and request is submitted succesfuly?
    I am rendering the form guide in browser using guide invoke service and when i submit the data in browser to server through guide , it is displaying some random number in browser?
    i need to display a resposne that request is submitted successfully?

    how could i define a variable with "html data" ?
    Create a variable of type document and then a service to read the html from where ever it's located. If you put it in LiveCycle, you can use the ReadRessource service. If it's on the file system, you can use the Read Document. If it's in the database, you can use the JDBC service.
    Also, one more doubt where should i use this variable in my process to get the same?
    You want the response once you've submitted the data, so the html is really the result of calling the process that's processing the data. So I would create an output variable of type document on that process.
    Right now it displays a random number in the browser because your submit process is long lived. When a process is long lived (asynchronous), you invoke it and then you get an identifier back. It's kind of a fire and forget. You can use that identifier to check the status of the long lived process, since long lived processes can take hours, days to complete. You don't want your browser to wait that long, hence the identifier.
    However if you change the process to be short lived (synchronous), the browser will wait for the result of the process, which really means the output variables for that process. If your output variable contains html, it'll display html.
    So the key is make you submit process short lived and populate the output variables appropriately.
    Jasmin

  • How do I retain my apps after I change my apple ID? Right now I'm unable to update any of the apps with the old apple ID. I get an error message about an invalid id or password. If I delete my apps and start over, I may lose the apps that I purchased...

    How do I retain my apps after I change my apple ID? Right now I'm unable to update any of the apps with the old apple ID. I get an error message about an invalid id or Password. If I delete my appos and start over, I may lose the apps that I purchased (like the ones for $5 +....

    Apps are always tied to the ID that was used to purchase them originally. Did you try entering your old password and see if that works?
    If you need to sign out of your old account go to Settings>Store>Tap on your ID and sign out. Sign in with the new one.
    you can also access your ID in the featured tab of the App Store. Swipe to the bottom of the screen and you will find it there as well.

  • HT204053 I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    See https://discussions.apple.com/message/19218571#19218571.

  • In iphoto, how do i save a photo after editing, in the same or higher file size, it's saves in a lower size

    in iphoto, how do i save a photo after editing, in the same or higher file size, it's saves in a lower size

    It's rather more complicated that this.
    iPhoto is a lossless editor. You don't lose any quality on your shot in iPhoto.
    The file size you see reported is the size of your iPhoto Preview: this is what gets used if you access the data via a media browser. It's a "good-enough-for-most-uses" version of the shot. Email it, upload to websites, use it in Presentation, Word processing file etc
    If you want to set the quality yourself then Export the photo using the File -> Export command.
    You can choose to export to Jpeg, Tiff or png. Tiff is lossless but the file sizes are up to 10 times larger. Jpeg allows you to choose different qualities: High, Medium or low. The difference is the amount of compression involved. High quality means very little compression. It's not unusual for photos exported at this setting to have a larger file size than the original.
    Which setting you choose depends on the use you intend. Further editing, printing then high is important. Sending to Facebook? Well low will do just fine there as they're going to trash the file anyway.
    But the key point: the file size only becomes an issue when you export.
    Regards
    TD

Maybe you are looking for

  • Slow running query after upgrading to Oracle 10.2.0.4

    Hello I had posted a query in Database Upgrade section , but all in vian as i have had no replies . So i am posing this in general section as i can now confirm with the exact query issue . 1. I upgraded my oracle instance windows 64 bit from 10.2.0.1

  • Reference to Uninitialized collection error

    Hi , I am invoking one wrapper API from Database Adapter in Oracle soa suite 11g . The structure of the wrapper is 1. employee -->(1..n)employee sites --->(1..n)employee contacts I am just trying to invoking API for creation of employee record withou

  • AS2 - Manipulating & Displaying Remote Images

    Hi - I've been handed a few Flash files written in CS4, but in ActionScript 2.  I know enough ActionScript to be dangerous, but I am far from a Flash developer. At the high level, the Flash file loads an image, rotates a portion of the center of the

  • Create a BPMN process into SCA.

    Hi, I found something strange while i've tried to create a composite application using a BPMN process. I created a new BPM project using Composite with BPMN process. But when I opened composite.xml diagram, the BPMN process wasn't appearing. I did so

  • Skype for Blackberry 3G 9300

    Hey Guys, Can anyone help me to with the application of SKYPE for blackberry curve 3G 9300. I have been looking for this application.. for so long but not satisfied.. neither with IM+ coz its having push to talk availability and iskoot has been remov