Test Stand: TestStand Engine Process

I'm looking into an application (written by someone else of course) which calls a "Test Stand Engine" to execute a test.
First thing is what is this "Test Stand Engine" ?
I have been using Test Stand GUI (Test Stand Sequence Editor) to execute such test cases in the past so I never knew what do they mean by Test Stand Engine.
The problem i'm looking into is simple.
They say that Test Stand Engine is being executed as part of a thread and my task is to make it execute in a process.
But I Can't find the actual call to test stand engine itself.
I'm on Windows box and all I can see in Task Manager => Process is TSAUTO~1.EXE which is same whether I run GUI or my application with Test Stand Engine.
What should I look for in my application code to find the "Test Stand Engine"?
Any Help?
Nirvana

Hi,
  just to clarify that - there's two approaches to making an operator interface with TestStand.
1) Use the TestStand UI controls and manager controls or 2) Go directly to the TestStand Engine.
Option 1 actually overwraps the calls to the TestStand Engine anyway to make it easier to implement an operator interface. That's not to say that going directly to the TestStand Engine  ActiveX automation server is difficult, but you have to do certain things, like shutting down in a sepcific way.
Your best other resource is the TestStand help (rather than the bookshelf pdf's) and have a look at the topic about "Writing an application with the teststand engine"
As Dennis says - you might get more help on the TestStand forums rather than the LabVIEW ones though.
Thanks
Sacha Emery National Instruments (UK)
Message Edited by SachaE on 02-22-2007 10:26 AM
// it takes almost no time to rate an answer
Attachments:
teststandHelpSection.JPG ‏55 KB

Similar Messages

  • Clearing Test Stand engine's internal cache

    I am trying to clear the TEST STAND ENGINE'S internal cache of past sequence files in a custom Operator Interface I am developing using VB.NET.  The scenario is as follows.   The Test Stand OI application is instantiated from a desktop shortcut that also has the sequence file as a parameter.  I am using only the "Single Pass" entry point.
    The problem is other sequence files appeared to be executing in addition to the sequence file passed in as a command line argument.  I checked this by creating an event handler for the openseqfile event and putting a VB.NET debugger breakpoint at its start.  In the case I checked the seq open event fired 3 times.  Once for each of the last 3 different sequence files I tried to run.   I checked each of the files as they were being opened and the 1st file opened was the one I passed in.  The second file opened was the one I ran prior to the current application instantiation.  I checked that file an the "e.file.IsExecuting" property was TRUE!  How could that file be executing when the application starts when it is not even the file I want to run?
    The third file was a file I ran 2 instances ago and its "IsExecuting" property was false and its "CanUnload" property was true.  I was able to remove that particular file with "Me.AxApplicationmgr.GetEngine().ReleaseSeqenceFileEx(e.file)" in the event handler.
    What is the proper way to remove (clear) the interneal cache.  So only the single file I want is opened?  Thanks

    You should call ApplicationMgr.OpenSequenceFile instead of Engine.GetSequenceFileEx (see TestStand Reference Manual>> Chapter 9 Creating and Customizing Operator Interfaces >> Using the TestStand API With TestStand UI Controls).
    If you want to close the file explicitly, call ApplicationMgr.CloseSequenceFile.  If you don't close the file, the ApplicationMgr will close the file automatically when your application shuts down.
    When you call ApplicationMgr.OpenSequenceFile, the file appears in controls that display the list of open files and your application receives an ApplicationMgr.DisplaySequenceFile event for the file.
    If you can't use the ApplicationMgr methods, then I think the place to call Engine.ReleaseSequenceFileEx would be in the ApplicationMgr.QueryShutdown event (also see TestStand Reference Manual>> Chapter 9 Creating and Customizing Operator Interfaces >> Using the TestStand API With TestStand UI Controls).

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • When Teststand is expired, the java process communicating with Teststand engine is killed.

    We are using an evaluation version of Teststand for development. We are using Teststand API in C code to communicate with the Teststand engine and in turn the java process communicates with the C code. But if the Teststand is expired, the java process is killed. Please suggest if there is a solution to stop the killing of java process when the teststand is expired.

    Hi geddam,
    The fact that the entire application is ending is expected as it is trying to access the TestStand API. Since your evaluation period is over you no longer have an active license and cannot access TestStand. We allow an evaluation period so that someone new to TestStand can evaluate it to determine if they will benefit from the software. However, once you have decided to develop using TestStand, you need to obtain a development license for TestStand. We have several different licenses for TestStand and a specific license to be used for development. The evaluation period should not be used as a time for development but a time to evaluate the software. So, in order for your application to work again, you will need to obtain a license for TestStand software.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • Is there any way I can convert a Test stand sequence and corresponding vi's to an executable?

    I need some creative ideas on how I can convert a test stand sequence into an executable in the shortest possible time. I know that beats the entire purpose of using TestStand but I need to have a way to do this. Is there no other way i can accomplish this without writing a sequencer in LabVIEW and rewriting all of my code in LabVIEW??

    There is no way i know or can think of to move all components from a TestStand application into a single EXE. Running TS in an application means that you should/must work highly unitized during developement and deployment.
    In general:
    -> Custom UI will become "The EXE" for the enduser. This involves the link for startup on desktop/start menu.
    -> TS Engine, ActiveX Server, will be attached to the UI.EXE OS process when launched by the UI. Will never be part of the UI.EXE.
    -> TS Compontens (e.g. process model, language files, ..). Will never be part of the UI.EXE.
    -> Custom Components (e.g. modified process model components, reporting, ...). Very unlikely(never) to become part of the UI.EXE.
    -> Custom Sequences. Will never be part of the UI.EXE, but extension can be changed to other than .seq.
    -> Code modules called by custom sequences. Unlikely (but possible) to be part of the UI.EXE. Should be implemented and tested to run within the RTE (runtime engine) of the appropriate programming language. It is not par design, that the deployment system has the development environment of that programming language installed.
    -> License information. TS requires at least the Base Deployment License installed and activated (requires NI License Manager software). RTE of modules might also include licensing and possibly activation fees.
    Why is there the requirement to have a single, monolythic EXE (hard to handle!) at all? If it is about the deployment process, you know that you can provide a single MSI (Microsoft Installer) with all required components using the TestStand Deployment Utility?
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Test Stand Evaluation

    Hi.
    I would like to get some feedback regarding using Test Stand with Labview.
    Currently I am using Delphi Interface as my Excecutive Engine and Active
    X server to communicate with labview. The data logging, PLC I/O and Login/logout
    are part of Delphi Inteface. The labview is used only to execute the actual
    test. Now by switching to Test Stand, would that benefit me in any way.(For
    instance: Does Test Stand(LV Server) allows me to run single or multiple
    Vi's, without creating 'exe')?

    There could be lots of advantages to switching to TestStand, but it depends on your application.
    1. If you deploy your applications to several different environments or uses (board test, system test, service, field service, etc.) then TestStand allows you to customize different "process models" for each environment. The actual test code is contained in a sequence file. Since the process model is shared by all sequence files, it is a great place to put the common functions such as UUT identification and data logging. Even if you don't need different process models, keeping all this code in one place makes it easier to maintain. There is no compiling with TestStand, so you can change the process model and the changes will take effect in all your applications.
    2.
    TestStand allows you to easily call many different types of code, not just Labview. You can call CVI, DLL's, EXE's, and ActiveX. I recently saw an article about a way to call Perl code. Again, the value of this depends on your application.
    3. If you want to integrate your application with a database, TestStand has great database tools. The database logging utility allows you to log data to any table format.
    4. If you are loading test limits from an external source, TestStand makes it easy with a tool called Property Loader.
    I suggest you get a free demo copy and try it out. TestStand is incredibly powerful.
    Mark ([email protected])

  • Test Stand Deployment; Internal Error Code 1

    Hi,
    I get the following message from the deploymeny tool when trying to deploy my system...
    Internal error code 1 Processing VIs...
    An installer was not created due to an error
    I have mass compiled everything and all the VIs are working, my workspace processes okay and the sequences run okay in the Run time Engine adaptor of Test Stand.
    Any ideas what could be causing this? I have Test Stand 4.0.0 and labview 8.5.
    Many thanks
    Matt

    Hi Rick, see below cut and paste from this file, does this help?
    08:55:43tarting Log.
    08:55:45tarting Analysis
    08:55:45tarting to process workspace file
    08:55:56one processing workspace file
    08:55:56:Finished Analysis
    08:55:57:Building...
    08:55
    08:57:01:Internal error code 1 Processing VIs...
    08:57:01:Could not process LabVIEW VIs. Fix any broken VIs before rebuilding. LabVIEW error:
    Error copying files.
    Source:
    Destination: <Not A Path>
    Librarian Path Location.vi
    <Call Chain>Error 1 occurred at ABAPI Dist Copy Non-VI Files.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> TestStand - Build VI Distribution 8 AX Wrapper.vi -> TestStand - Build VI Distribution 8 AX Wrapper.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge.
    08:57:01:An installer was not created due to an error
    08:57:01:The build is finished
    08:57
    08:57:01:Aborted
    08:57:01:---------------------------------------
    Many Thanks
    Matt

  • Integrate Vision Builder 2009 (VBAI), into Test Stand 4.2.1?

    Does anyone know of an easy way to integrate Vision Builder 2009 (VBAI), into Test Stand 4.2.1?
    earlier versions of Vision Builder seem to accomidate this very easily.  But i have not found the same ease to make this work in the newest version.  any ideas?
    Thanks

    Hi,
    Thanks a lot for your support.
    Well...yes I followed the instructions in the ReadMe.html file.
    I have loaded the sequence "Vision Builder AI TestStand Examples.seq" into TestStand.
    TestStand crashes after some delay  when trying to select the first test step "Run Inspection once".
    TestStand obviously has problems loading the Vision Builder API functions and the engine (whatever is necessary).
    As I could not succeed testing VBAI 2010 from TestStand, I then tried the LabVIEW example which is also located
    in the \examples folder.
    I had no problems loading the "LabVIEW API Examples (Local).vi" into LabVIEW 2010 and execute it.
    This example works without any problems with a simple USB Webcam.
    I can test different "Inspections" and studied the API functions in this VI.
    So the problem is only related to TestStand.
    I am wondering whether TestStand has problems with the evaluation version of VBAI 2010.
    When executing the LabVIEW example the VBAI engine asks me first if I want to evaluate the software (as it is not activated yet).
    I never reach this point from TestStand. It crashes before.
    Another point is that I am asking myself why the test step "Run Inspection Once" is the first test step the TestStand sequence.
    Comparing the sequence of steps with the LabVIEW VI, you can see that there is a differnce in the initialisation sequence.
    The LabVIEW VI launches "VBAI Interface - Launch VBAI Engine.vi" first before all other API VIs.
    I could try to change the TestStand sequence and introduce additional initialisation steps before "Run Inspection Once".
    I simply fear that TestStand crahses again before I have been able to change the sequence.
    Ok...another thought...on your system it is working fine using the example TestStand sequence?
    This means that the initialisation of the VBAI engine is automatically executed.
    Which process is responsible to initialise the VBAI engine in TestStand?
    Perhaps I have to configure something ...somewhere in TestStand.
    Ok... that's it for now... i will try out a couple of things....
    Thanks again for your support
    Best regards,
    Carsten

  • 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

  • Is there a way to create a database with Test Stand?

    Anyone know of a way to have Test Stand create a database? My company standard MS Office suite is Microsoft Access 2010, and TestStand does not support the .accmdb extension type(format), so I have to create new databases using old formats. I'm worried about backwards compatability down the road since good ole Microsoft doesn't seem to care about legacy formats.
    I'm still a beginner with databasing, so any suggestions would be greatly appreciated.

    TestStand 2012 SP1, and  we are using a modified Generic Recordset (NI). The problem we are having right now is that the Build SQL instructions are not creating the database tables the way we are configuring them from the "Statements" and "Column/Parameters" tabs under Database Options.
    What is happening is when we validate the schema, and drop all schema tables, it empties all the database tables, but then when you build using the TestStand generated sql file, we get errors(shown below) we are not understanding, and we can no longer write to the database and LabVIEW throws a "Data type mismatch in criteria expression" error like this
    "Possible reason(s):
    ADO Error: 0x80040E07
    Exception occured in Microsoft JET Database Engine: Data type mismatch in criteria expression. in NI_Database_API.lvlib:Conn Execute.vi->TSData - Query Actions.vi->Retrieve Test Data.vi->ARA-63 Data Miner.vi->ARA-63 Data Miner.vi.ProxyCaller"
    ==================================================================================================== > CREATE TABLE UUT_RESULT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, STATION_ID VarChar(255), BATCH_SERIAL_NUMBER VarChar(255), TEST_SOCKET_INDEX Long, UUT_SERIAL_NUMBER VarChar(255), USER_LOGIN_NAME VarChar(255), START_DATE_TIME DateTime, EXECUTION_TIME Double, UUT_STATUS VarChar(32), UUT_ERROR_CODE Long, UUT_ERROR_MESSAGE VarChar(255), PART_NUMBER VarChar(255), TSR_FILE_NAME VarChar(255), TSR_FILE_ID VarChar(64), TSR_FILE_CLOSED Bit, PART_NAME VarChar(255), PRG VarChar(255), Comment VarChar(255), Operator VarChar(255)) Command issued.
    > CREATE TABLE STEP_RESULT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, UUT_RESULT Long, STEP_PARENT Long, ORDER_NUMBER Long, STEP_NAME VarChar(255), STEP_TYPE VarChar(255), STEP_GROUP VarChar(32), STEP_INDEX Long, STEP_ID VarChar(32), STATUS VarChar(255), REPORT_TEXT VarChar(255), ERROR_CODE Long, ERROR_MESSAGE VarChar(255), CAUSED_SEQFAIL Bit, MODULE_TIME Double, TOTAL_TIME Double, NUM_LOOPS Long, NUM_PASSED Long, NUM_FAILED Long, ENDING_LOOP_INDEX Long, LOOP_INDEX Long, INTERACTIVE_EXENUM Long, CONSTRAINT STEP_RESULT_FK FOREIGN KEY (UUT_RESULT) REFERENCES UUT_RESULT (ID)) Command issued.
    > CREATE TABLE STEP_SEQCALL ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, STEP_RESULT Long, SEQUENCE_NAME VarChar(255), SEQUENCE_FILE_PATH LongText, CONSTRAINT STEP_SEQCALL_FK FOREIGN KEY (STEP_RESULT) REFERENCES STEP_RESULT (ID)) Command issued.
    > CREATE TABLE PROP_RESULT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, STEP_RESULT Long, PROP_PARENT Long, ORDER_NUMBER Long, NAME VarChar(255), PATH LongText, CATEGORY Long, TYPE_VALUE Long, TYPE_NAME VarChar(255), DISPLAY_FORMAT VarChar(32), DATA Double, FORMATTED_DATA VarChar(255), CONSTRAINT STEP_NUMERICLIMIT1_FK FOREIGN KEY (STEP_RESULT) REFERENCES STEP_RESULT (ID)) Command issued.
    > CREATE TABLE PROP_NUMERICLIMIT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, COMP_OPERATOR VarChar(32), HIGH_LIMIT Double, LOW_LIMIT Double, UNITS VarChar(255), STATUS VarChar(255), HIGH_LIMIT_FORMATTED VarChar(255), LOW_LIMIT_FORMATTED VarChar(255), CONSTRAINT STEP_NUMERICLIMIT2_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command issued.
    > CREATE TABLE PROP_RESULT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, STEP_RESULT Long, PROP_PARENT Long, ORDER_NUMBER Long, NAME VarChar(255), PATH VarChar(255), CATEGORY Long, TYPE_VALUE Long, TYPE_NAME VarChar(255), DISPLAY_FORMAT VarChar(32), DATA VarChar(255), FORMATTED_DATA VarChar(255), CONSTRAINT PROP_MULTINUMERICLIMIT1_FK FOREIGN KEY (STEP_RESULT) REFERENCES STEP_RESULT (ID), CONSTRAINT PROP_MULTINUMERICLIMIT1_FK FOREIGN KEY (PROP_PARENT) REFERENCES PROP_RESULT (ID)) Command failed with the following error...: Table 'PROP_RESULT' already exists. (-2147217900)
    > CREATE TABLE PROP_NUMERICLIMIT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, COMP_OPERATOR VarChar(32), HIGH_LIMIT Double, LOW_LIMIT Double, UNITS VarChar(255), STATUS VarChar(255), HIGH_LIMIT_FORMATTED VarChar(255), LOW_LIMIT_FORMATTED VarChar(255), CONSTRAINT PROP_MULTINUMERICLIMIT2_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command failed with the following error...: Table 'PROP_NUMERICLIMIT' already exists. (-2147217900)
    > CREATE TABLE PROP_RESULT ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, STEP_RESULT Long, PROP_PARENT Long, ORDER_NUMBER Long, NAME VarChar(255), PATH VarChar(255), CATEGORY Long, TYPE_VALUE Long, TYPE_NAME VarChar(255), DISPLAY_FORMAT VarChar(32), DATA VarChar(255), FORMATTED_DATA VarChar(255), CONSTRAINT PROP_RESULT_FK FOREIGN KEY (STEP_RESULT) REFERENCES STEP_RESULT (ID)) Command failed with the following error...: Table 'PROP_RESULT' already exists. (-2147217900)
    > CREATE TABLE PROP_ANALOGWAVEFORM ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, INITIAL_T DateTime, DELTA_T Double, INITIAL_X Double, DELTA_X Double, UPPER_BOUNDS VarChar(32), LOWER_BOUNDS VarChar(32), DATA_FORMAT VarChar(32), DATA LongBinary, ATTRIBUTES LongText, CONSTRAINT PROP_ANALOGWAVEFORM_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command issued.
    > CREATE TABLE PROP_DIGITALWAVEFORM ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, INITIAL_T DateTime, DELTA_T Double, UPPER_BOUNDS VarChar(32), LOWER_BOUNDS VarChar(32), TRANSITIONS LongBinary, DATA LongBinary, ATTRIBUTES LongText, CONSTRAINT PROP_DIGITALWAVEFORM_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command issued.
    > CREATE TABLE PROP_ANALOGWAVEFORM ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, INITIAL_X Double, DELTA_X Double, UPPER_BOUNDS VarChar(32), LOWER_BOUNDS VarChar(32), DATA_FORMAT VarChar(32), DATA LongBinary, ATTRIBUTES LongText, CONSTRAINT PROP_IVIWAVE_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command failed with the following error...: Table 'PROP_ANALOGWAVEFORM' already exists. (-2147217900)
    > CREATE TABLE PROP_ANALOGWAVEFORM ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, INITIAL_X Double, DELTA_X Double, UPPER_BOUNDS VarChar(32), LOWER_BOUNDS VarChar(32), DATA_FORMAT VarChar(32), DATA LongBinary, ATTRIBUTES LongText, CONSTRAINT PROP_IVIWAVEPAIR_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command failed with the following error...: Table 'PROP_ANALOGWAVEFORM' already exists. (-2147217900)
    > CREATE TABLE PROP_BINARY ( ID COUNTER CONSTRAINT TABLE_CONSTRAINT PRIMARY KEY, PROP_RESULT Long, UPPER_BOUNDS VarChar(32), LOWER_BOUNDS VarChar(32), DATA_FORMAT VarChar(32), DATA LongBinary, CONSTRAINT PROP_BINARY_FK FOREIGN KEY (PROP_RESULT) REFERENCES PROP_RESULT (ID)) Command issued.

  • 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

  • Test stand crashes: "test stand has detected that your script debugging"

    05-01-201203:18 PM
    Hi everyone. I am setting up a new installation of Test stand and writing my first sequence with an existing sequence of legacy code.
    When I run the sequence and stop on the call to the DLL, and then step into the dll and I get this error:
    test stand has detected that your script debugging settings might cause visual studio to hang when attaching to the teststand process to perform this step into operation.
    To fix this problem, open internet explorer, select tools>>Internet options>> Advanced, check Browsing>>Disabl script debugging, click okay, and restart your sequence execution.
    The message is vague and it is indermanent as to whether I should "enable" or "disable" Script debugging so I tried both. Test stand then crashes again and I get the same error.
    Do I need to reboot after each crash? I'll try that next. Any ideas on how to make this error go away?
    Thank you for your help.
    Richard

    This is a duplicate. Please go here instead:
    http://forums.ni.com/t5/NI-TestStand/quot-test-stand-has-detected-that-your-script-debugging-quot/td...

  • Wait time in Test Stand

    I have an application in TS where I need to measure a leak rate. How do I set a "wait time" in Test Stand sequence so I can measure the same test point after certain elapsed time.

    I don't think TestStand has a wait function. You would be better off doing this inside your test step code. Measure, wait, measure again. Both measurements can be returned to TestStand for further processing. Or just calculate the leak rate in your test step code and just return the rate to TestStand for numerical limits testing.
    - tbob
    Inventor of the WORM Global

  • Error when closing test stand

    when i try to close test stand after i run a test, i got the error in the
    attached file.
    this error appear only if i dont close the sequence file before i exit test
    stand and only after i run a test.
    please help me.
    advanced thank's.
    [Attachment error.jpg, see below]
    [See first answer for additional information]

    Hello Avi,
    The error is caused by TestStand not being able to finish the LoginLogout sequence before its time limit. These limits are set under Configure >> Station Options >> Time Limits. They will allow you to interrupt a sequence that is taking too long to shut down.
    The real problem may be in the LoginLogout sequence, in the file \Components\User\Callbacks\FrontEnd\FrontEndCallbacks.seq (or substitute "NI" for "User" in the path). If something in that sequence doesn't finish executing within 10 seconds, due to an extreme slowdown or a problem with the sequence, you will see this error. If you have modified that sequence, this could be the cause. You will need at least two steps in the sequence, one for Login and another for Logout. They should
    reference frontend.dll. If you have a modified callback in your User directory, trying copying the default callback from the NI directory.
    Also, make sure that you complete or terminate other sequences before trying to close TestStand, or you will see a similar error message.
    Good luck and feel free to ask if you have further questions.
    Steven Reasoner
    Applications Engineering
    National Instruments

Maybe you are looking for

  • Presario CQ61 - Boot Device not found, Hard dis not exist

    Hi i bought my presario CQ61-405AX 2nd hand roughly a year ago and it was almost new, my laptop was running fine, and then it froze, and so i had to turn it off, after i waited 30min for it to unfreeze, it now, when i boot it up, appears with a black

  • How to adjust Start/Stop position of a song on the iPhone (not iTunes)?

    Hello all, Before I caught my flight today, I decided to make a ringtone of my new favourite song. Obviously one of the steps in doing so involves selecting a specific start and stop position within iTunes be fore creating the ringtone. So I got on t

  • Can Firefox associate a specific language to a specific tab?

    I often research or write in multiple languages. I like to open different tabs for my work in each language and select the necessary language for that tab. Firefox does not seem to associate a selected language to a specific tab, only maintaining the

  • Finder-Sidebar-Items disappear (spontaneously)

    High! Of course me searched a lot but apparently this seems rather unusual. Good for you. Thing is: the items in my sidebar (finder-window-sidebar) disappear at almost every startup - plus, sometimes spontaneously.* Wicked. All those vanishing folder

  • I can't add gmail address to iMessage -was working before

    Hi My children have iPad airs set up under my apple ID (I have an iPhone 5s). All software is up to date. Until recently they were using their own email(gmail) addresses (over wifi only) in iMessage to message their friends. All of a sudden their ema