How To Trigger Test Stand To Assign Step = Error

Hi everyone, I have a LabVIEW VI step in my sequence and I have an abort button the user can select to abort the user interface VI.  I want the "abort button" boolean to pass back to test stand that abort button = TRUE and I want the sequence step to be set to an "ERROR."  Is there a command to send to the Test Stand Engine to flag this step as an error?
Thanks so much!
Solved!
Go to Solution.

Hi
Glad It was helpful.
There are two ways in which you could achive this..
1. Use this expression: RunState.Engine.TerminateAll()
But be wary, this will terminate all the current excutions and the report indicates the status as "terminated"
or
2. Use this expression: RunState.Execution.Terminate()
or
3. You can add a Goto step (comes with teststand. You can find it under Flow Control section of the insertion palette) and select Cleanup as the destination step.
This way you can run some clean up steps before closing the execution. (eg, Shutting down any hardware, etc.,)
Deepak

Similar Messages

  • How Do You Test a Flash Drive for Errors Using OS X?

    HI. In Windows there are Flash Drive tester that tests if there's something wrong with the Flash drive's chips. How do you test a flash drive for errors on OS X? I bought the HP v220w which is tiny for a 16GB and it's metal. The whole thing goes into the plug. Design wise, it is great, it's very elegant like a jewelry. Thanks in advance.
    Gbu.

    Format it for OS X and run a surface scan on the partition. That should show any hardware problems that don't keep it from working altogether.

  • Test Stand 2010 Deployment tool Error

    Dear All,
    Whilst attempting to deploy a Test Stand system I am coming across the following error:
    Error: Unable to find all subVIs from saved VIs. Either a subVI is missing or the VI is not saved in the current LabVIEW version.
    The call chain to missing VIs:
    1 - initialise_resistor_card.vi
        2 - pipx40 Initialize.vi (missing)
    I have the Teststand Adaptor set to Labview Run-time Engine --> "Auto detect using VI version"
    This is a new feature in Test Stand 2010 right? So is the deployment tool also able to inherit the ability to auto detect the version of runtime engine to use on a deployed machine?  
    Any ideas?
    Regards
    There is no problem with the VI within the sequence.
    I've encountered this before before with the deployment tool and usually mass compilling or opening and closing the VIs heirarchy helps, but in this case I just can't get the deployemnt tool to process these VIs.

    Hello,
    So it would appear that the VIs giving the problem are within .llb . 
    If I open and save them again within the .llb and mass compile the .llb then the same happens, but if I take the VI out of the llb then the problem goes away?
    Is there any known issues with the Deployment Utility failing to find VIs with llbs? I notice TS 2010 deployment utility introduces the idea of a Packed Project library option rather than the old SupportVIs folder, could using this be the issue?
    Regards
    Matt

  • How to get the value of the global variable of test stand in labview User interface?

    Hi.
     Can anyone Please share examples and tell me to how access the test stand global variable using labview user interface.
    Solved!
    Go to Solution.

    I'm not surprised that what you are doing doesn't work.  The Start Execution UI Message is triggered when the user clicks a button to start an execution.  Realize that most executions go through a process model.  So you could be looking at the sequence context of the process model and not your client sequence file.
    I recommend reading that link I posted above.  UI Messages are your best bet but you cannot just piggy back on an existing UI Message like this.  They may not be getting sent at the time you need them to be.  The only way to ensure you get what you want is to trigger one yourself at the right time.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Can labview call a test stand module

    Having problems with a test dll that runs in test stand, but I get errors when trying to use the wizard in labview, however I can use the call library function node to protypye it.  Problem - the function openComserialPort(char* comPort, ErrStruct & err), how do you difine the parameters for the ErrStruct & err part.
    next Question, since this Dll runs in Test Stand, is their anyway to export to work in LabVIEW. 
    Solved!
    Go to Solution.

    Here's a description of the dll, to start off, I have a circuit board with a microprocessor on it, that has control for a radio module.  During test I need to program this board serially through its' TX and RX lines on the processor.  The dll given to me, which was written for test stand, has functions to enable me to do this programming.  There are basically  11 function contained is this Dll. 
    Initialize Dll, (no errors),
    open serial port, (no errors), 
    getStandardTable, which sends a command for the microprocessor to send back its information-> get assertion error
    WriteHardwareVersion -> Sends the version and revision number -> assertion error.
    ColdStart -> Which resets board statistics variables -> assertion error.  Now, this function prototype is ColdStart (errStruct & err); So I prototype like I did for the above error struct, but still got an assertion error, which leaves me to believe, that , or vendor, has a bug communicating, or sending the commands via serially, to test this, I could use the serial examples contained in LabVIEW, however I don't know the command set of the microprocessor, or could there be something else wrong,  Any ideas will be appreciated.

  • How can I get Test Stand to print failues only?

    Rather than getting a large report file with hundreds of passes and only one failure, how do I configure Test Stand to only print the failures to the report?

    Hi,
    the engine callbacks are simply a sequence that gets called when a particular thing happens (i.e. Post Step).
    There's three types
    SequenceFile (for steps that execute in that sequence file whether it's a client sequence file or a process model)
    ProcessModel (for steps that execute in the client sequence file run under this process model, but NOT the steps in the ProcessModel)
    Station (for all steps on that installation - found in the StationCallbacks.seq sequencefile)
    If the engine callback appears in more than one of the three places, then the lowest one (seq file->proc model->station listed lowest to highest)is used.
    In your case, you could use any of them depending on your architecture.
    Personally, r
    emoving from the resultlist is easier than working out whether to add to it, but that gets tricky when you have steps which loop.
    If you decide to make up your own add, then the PostStepFailure is the callback sequence to use (go to edit->sequencefilecallbacks). You'll have to add a new element to the resultlist, and start fleshing it out with the result container of the step (which you still have access to as a parameter) plus the TS container.
    This would go into the Runstate.Caller.Locals.ResultList[x]
    Also, don't forget to disable the result collection on all the steps in the test sequence, plus all the ones in your poststepfailure callback, since you're doing your own.
    I'm attaching what I've done so far as an example - not quite finished, but it's done the TS container. Just now need to do the actual result container.
    I'll keep working on it but for now you can see what I'm getting at.
    Hope that gives you a kick start with the callbacks bit
    Sacha Emery
    National Instrumen
    ts (UK)
    // it takes almost no time to rate an answer
    Attachments:
    collect_only_failures.seq ‏31 KB

  • How can I pass a variable from Test Stand to CVI by reference

    Hi!
    I can't to pass numeric or boolean variable from Test Stand (for example: FileGlobals.StopFlag) into the step (CVI function).
    Function prototype: 
    void __declspec(dllexport) __cdecl PC2_WaitWhileResponceAppear(tTestData *testData, tTestError *testError, int *iStopFlag).
    When variable has bin changed I can't see this change from my function.
    CVI 2010, Test Stand 2010
    Can anybody help me?

    Hey Rombar,
    It is certainly possible to pass variables by reference; for example, if you go to <TestStand Directory>/Examples/Demo/C and open the computer.seq file, you can see one of the example sequences that uses CVI modules. If you click on one of these steps, you'll see that some of the parameters, such as the error information, is passed with pointers. This is a pass by reference.
    To help narrow this down, it'd be good for us to figure out a few things about how the code is run. First, if you go to Configure > Adapters, select the CVI adapter and choose Configure, you can see options for this adapter. Do you have it configured to run in an external instance of CVI or as an in-process call?
    Also, if you're wanting to see a change made in TestStand in your external code, this makes me think that you're wanting to run the code and then continue to execute your TestStand sequence while the code runs. How did you configure this behavior? For example, are you calling this code as a separate sequence in a new thread, or are you using another method to run this code while the sequence continues to run?
    Finally, if we could see a screenshot of how you're configuring the parameters on the TestStand step, that might be helpful as well.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • How to test cloned VI file from Test-Stand

    Hi All,
    I am having one doubt in Test - Stand.
    I am having VI file which is having four controls and four indicators. I am just connecting one control with one indicator like one - one mapping. I have created connector pane for this. Say save this file as dummy1.vi.
    In another VI file I have taken four controls. These controls are connected with dummy1.vi file.  Save this file with test1.vi file. Now run the test1.vi file with highlight execution on. While it is continuosly running, double click on the sub vi files. You can see different files with clone, clone1, clone2 ...etc...
    Now I will pass values to test1.vi file from Test - Stand sequence step. In second step I want check the result from dummy1.vi file. But I am unable to do it.
    Can anybody tell me how to achieve it?
    Regards,
    Nagaraju

    Hey NagRaj,
    The reason you see the clones is because your VI is reentrant.  You can change that in the VI Properties in the Execution section.  Also, you may want to read more about that in the LabVIEW help to understand it better.
    You should have no problem testing these VIs from TestStand if you set your Step result to the value you are testing against.  I've attached an image that shows how to set the outputs of your VI to the step results.  What kind of test are you doing? (i.e. NumericLimit, StringLimit, Pass/Fail etc..)
    Is dummy1.VI a subvi of test1.VI?  If so do you have the output terminals of dummy1.vi connected to the output terminals of test1.vi to propogate the values back to TestStand.  This is assuming you only have one step in TestStand calling test1.vi which has dummy1.vi as a subvi.
    If you want two steps where one step calls test1.vi and the other calls dummy1.vi then you have to call them seperately.  They can't be tested in the same step this way.
    If this is confusing you can always post your simple example (seq and vis) and I could look and see how to better assist you.
    Regards,
    Message Edited by Sam R on 02-28-2007 09:06 AM
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    stepresult.JPG ‏56 KB

  • What should be specified in object reference field in the first step of sequence file in test stand

    Test stand object Reference field- <The expression cannot be empty>
    It is showing an error like "The .Net property can not be accessible
                                             Object Reference not set to an instance of an object".   
    How it can be resolved?
    Attachments:
    ex1.jpg ‏2305 KB

    I am
    using Singleton Class in .Net. So I need not create object in TestStand. The Get
    property of the class will return its own class object. So the Class Reference
    should be empty only.
    When I
    choose the property manually, I am getting this error. This I am getting only
    when I create this step through C# TestStand APIs. Please help me to remove this
    error in the Class Reference field using TestStand
    APIs.
    Attachments:
    ex2.jpg ‏24 KB

  • Test Stand: How does parameter's value is passed as command line argument?

    Hi All,
    This is my 1st Q on this board.
    I'm using Test Stand Sequence to call a subsequence where I call an executable file and passing few arguments to it.
    SuperSequence.seq => SubSequence.seq
    In SuperSequence.seq I have 3 parameters and their values are specified
    Parameters
    Name      Type    Value
    ==============================
    Name      string    "Nirvana"
    Address  string    "London"
    Tel           Number "123456"
    In SubSeq.seq I call and EXE with following parameters
    Executable Path Name: myApp.exe
    Argument Expressxion:  "Parameters.Name  Parameters.Address  Parameters.Tel"
    In the application I receive parameter names instead of their values?
    E.g. I recevie Parameters.Name  Parameters.Address  Parameters.Tel in myApp.exe as arguments.
    How do I make the values to be passed to myApp.exe instaed of parameter names?
    Cheers
    Nirvana

    Hi,
    You have to make a string containing the arguments that you require
    Try the following expression
    Parameters.Name  + " " + Parameters.Address + " " +Str( Parameters.Tel)
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • I am trying to debug HTBasic code modules while using Test Stand, how do I refresh the subs that have been loaded in memory?

    I am writing an application for Test Stand, we are using modules previously written in HTBasic. Whenever I make a change to the code and try to re-run the program, it just runs the old version of the code. The only way to refresh the code is to close Test Stand down and restart it. Is there a way to flush the memory of modules?

    Hi,
    I haven't used HTBasic with TestStand 2.0.x, but I'm assuming that you have the steps in the sequence set to unload when sequence file is closed (look under the step properties -> run options tab).
    If you're still prototypeing, use the File->Unload all modules option. Have a look at page 4-3 in the user manual - it refers to .DLLs, but I'm assuming the HTBasic falls into the same methodology.
    Altering the run options from it's default will affect the memory useage and speed of execution of the test sequence. Have a look at page 5-22 (page 158 in the .pdf) in the TestStand user manual - basically, if a code module is loaded into memory already, when the step gets to execute, the loading overhead is already done. If it stays in memory after this, then it's avail
    able for next time (quicker second run 'cos it doesn't need to load again. However, the balanceing factor is the sequence is useing more memory at a time, by haveing the module ready.
    My usual setting is to use Load dynamically, and Unload after sequence executes. I use this is only during development however, as this is not the most speed friendly, but a compromise so that if I don't call a step I don't load it, but if I do use a step, I'm sure it's free again when I need to modify the .dll modules I create. If you have a look on page 5-7 (143) of the user manual you can set the sequence file to effectively over-ride each step's load and unload settings - useful if you want to revert back again later. If you use this, you'll see that the top two run options for the step are greyed out, but if you set it back with the sequence file options, they do revert back to their original settings.
    Hope that helps (and works!!)
    S.
    // it takes almost no time to rate an answer

  • What is test stand ? Why is it used, how to get going ?

    Hello All,
    I am LabVIEW user and very new to test stand, have few basic questions,
    1. Why teststand was introduced ?
    2. In LabVIEW we write VI's and build a project to execute a big task, how is this done in teststand?
    3. I did download some of the pdf from NI website, but not able to visualise what needs to be done,
    Pls do share if you have more insight to Teststand.
    Thanks

    Hey systemcrash,
    I will try and answer your questions the best I can:
    1. http://www.ni.com/teststand/whatis/
    TestStand is an automated test executive (ATE).  It is an off the shelf solution which makes your life easier.  It handles report generation, user management, sequencing (i.e. test flow), result collection, pass/fail analysis, common User Interface, database logging, etc...  Basically, all the crap you don't want to develop in LabVIEW.  But it gives you consistency and commonality for all your tests.  If you look at the layers of the test system TestStand would be at the top like this:
    TestStand
    LabVIEW (or other software)
    Hardware Drivers
    Instruments
    UUT (unit under test)
    2. In TestStand you have the development environment (Sequence Editor) and the User Interface.  They can both execute tests.  The User Interface is an application written in LabVIEW (or other programming languages, ships with TestStand) which gets deployed to a test station so that testers can execute your test.  It does not have the ability to edit the test (in TestStand tests are called Sequence Files).  However, the Sequence Editor can edit the tests and would be used on the development machine.  There is a deployment utility in TestStand which allows you to create an installer.  In that installer you would include the TestStand Engine, the User Interface and all the dependencies for your test (Sequence File).  Then the user just opens the User Interface and runs it.
    3. NI does offer TestStand courses which can be helpful.  I recommend going through these PDFs though first:
    http://www.ni.com/pdf/manuals/373200c.pdf
    http://www.ni.com/pdf/manuals/323436a.pdf
    You will get more out of the classes if you have starting playing around with it first.
    Hope this helps.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • IS Test stand support Code written in VC++ ?..IF SO How to integrate with Test Stand

    IS Test stand support Code written in VC++ ?..IF SO How to integrate with Test Stand

    If you have LabWIndows-CVI, you may also look at these threads: (may be useful for TestStand)
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000003C1F0000&UCATEGORY_0=_318_&UCATEGORY_S=0

  • How to bring a VI front panel to the front (of all open windows) when the parent VI calls a sub-VI in Test Stand.

    In Test Stand when I call a sub-VI front panel, the pop-up window goes behind all the windows and the user just waits for the screen. I want the pop-up to come to the front so that the user can know what to do. I couldn't find any property that I can set which would make the called VI go to the front.

    What version of TestStand are you using? Here are the TestStand palettes in LabVIEW for TestStand 2.0 and 3.1. You can also set a VI to be modal in  VI Properties>Window Appearance. Select Dialog or go to Cutomize and change the Window Behavior.
    Message Edited by Dennis Knutson on 03-07-2006 10:32 AM
    Attachments:
    TestStand palettes.JPG ‏37 KB

  • How to call test Sequences developed by using CVI Test Execuitve toolkit in Test Stand?

    There is a feature in TestSatnd which can convert CVI sequence to test Stand Sequences. But test stand is not recognising these sequences saying " not a valid CVI test sequence". Is there any version Issues, while converting these sequences to TestStand?

    Hi Scott
    In continuation of previous question..
    As per the suggestion, when I am trying opening one sequence(.SQU) file,developed in CVI Test Executive V 1.0.1., in CVI Test Execcuitve V 2.0.1, Executive is throwing error.
    The Pop Error is " Section [Sequence] missing from sequence file c:\xxx.squ"..
    and when I am trying opening these sequence file in sequence editor, the tool it self is crashing.
    Please suggest!!
    Is there any specific tokens which we need to add in .SQU files of V 1.0.1, so that V 2.0.1 can understand them? Just to check the possibility of manual updation of .SQU files.
    Regards
    Amit

Maybe you are looking for

  • PDF email

    Hi Gurus I have to send output of report as pdf attachment of the email. I have used Fm CONVERT_ABAPSPOOLJOB_2_PDF to convet spool request to pdf format. and SO_DOCUMENT_SEND_API1 Fm to send email. Its working Fine. But Now i need to send email by us

  • How to Clear Cache for an Old Static File in Shared Components

    Hello, I am using Apex 4.1.1.00.23, HTTP Server with mod_plsql, and Oracle Database 10.2.0.5.0. My situation is as follow: I have a CSS static file in the shared components that is used in different applications. I recently modified the CSS file, but

  • Ipad won't charge after upgrade to 7.1.2

    Apple recommened install update.  After the update started having problem battery won't charge.  I took it to the apple store last July 13 they did hard reset it work for one day and went back to the same problem won't charge.  Please help

  • Is Ilugger the best carrier for IMac?

    Is ILugger the best carrier for Imac?

  • About downloading

    sir,when i download adobe premiere pro the adobe creative cloud software is downloaded but in adobe creative cloud software their is not a list of adobe after affects and adobe premiere pro.so how i can download these software.