TestStand 2.0 Engine deleting sequence files on shutdown?

TestStand 2.0.1
We're running into quite a bizaar problem where TestStand sequence files seem to vanish from the filesystem after exiting TestStand. We haven't been able to reliably reproduce the problem, but occasionally after we run some tests either using the operator interface or sequence editor, either the sequence file we were running, or another sequence file in that same directory gets deleted. Has anyone else seen anything like this?
--Peter

That sounds like a very unique issue. I have a few questions for you.
Is it only one sequence file that gets deleted? If the sequence file you are running does not get deleted, but another one does, is it always the same files every time that gets deleted?
If we can get this nailed down to a pattern, we can probably figure out
what is causing this issue. One other thing that would be worthwhile
checking out is if this problem is limited to just one computer or
multiple computers. Is your testing station limited to just the one
computer? If not, does this problem happen on multiple machines?
Another thing you might want to try is to put each sequence file in a different directory. If you have the sequence files in different directories, does the problem still occur?
Russell G.
NI Applications Engineering

Similar Messages

  • Help:set up simple test sequence, operator selects particular test then teststand links to part of sequence file and performs test

    Hi,
    I am extremely new to TestStand, please see question below and offer advice.
    I want to set up a simple test sequence.
    I want a message to popup on screen that asks the operator which unit of 6(max 10) Units to test(i.e. there are say 6-10 box's to select from).
    Then the sequence goes to the particular part of the sequence and performs the test on which ever unit was selected.
    What is the best way to do this?
    Could i use message popups to do this?and if so what do i need to do link it to the correct part of the sequence file?
    Do message popups only allow 6 options to select from?
    Thanks,
    Solved!
    Go to Solution.

    Hi,
       You can do using message popup method. You can ask the user which unit want to execute by inserting message in message expression in message popup step settings.Something like below
    "Enter unit number to execute 
     1.  Unit1
     2.  Unit 2
     10. Unit 10"
    then check "Enable response text box" from options tab in step settings.When user enters unit number you can get the user entered value by inserting the below statement in post expression of message popup step settings
        Locals.String = Step.Result.Response 
        Note : String is a local variable to be defined.
    Convert that string in to number and send that output to switch expression there by you can use a sequence call step to call sequence whichever to be executed. (I hope your each unit will be seperate sequence file)
    I hope these resolves your problem. If you don't understand let me know so that I can develop a small example and send it to.
    Cheers,
    krishna 

  • Inconsistent behavior in TestStand and TestStand UI for the same sequence file

    Solved!
    Go to Solution.

    I tried both the TopLevelVI and testexec.exe; but both of them were giving the same error. I never tried any other UI than Labview. 
    Because the same sequence was working without any issue on some other system, I uninstalled and reinstalled TestStand 4.0 and same sequence is now working fine, in TestStand, testexec.exe, TopLevelVI – basically everywhere. I am not sure what was wrong with TestStand in my system, but definitely something wasn’t correct. 
    Thank you for all the responses.
    Vidula
    Message Edited by Vidula S. on 08-26-2009 10:28 AM

  • What is the teststand api call to execute sequence file after it is opened-C#?

    I am programming in C#. I want to make a call to execute a sequence file after I call OpenSequenceFile. I want to do this outside of the GUI. I know that the GUI has a Single Pass button that executes the sequence, I want to know how can I just make the execution call myself?

    Hi IM,
    I think this thread will answer your task
    http://forums.ni.com/ni/board/message?board.id=330&message.id=19658&query.id=461003
    Regards
    juergen 
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Sequence file version conflicts - TS_EngineNewExecution

    Hej NI Community,
    I have programmed an stand alone application, which can execute sequence files. The CVI application is programmed with CVI 7.0 and Teststand API 4.0. You can select a sequence file and run the application without the SequenceFileEditor...
    My sequence file is programmed under Teststand 4.1 and uses sequence file library functions, which are developed with Teststand 4.0 (stored in different sequence files).
    I can run the sequence file under Teststand 4.1 (SequenceFileEditor) without any error messages. My own application cannot run the sequence file. The function TS_EngineNewExecution comes back with a error message:
    Error code: -2147352567
    CA automation error string: Ausnahmefehler aufgetreten.
    Teststand API error information:
    wCode: 0
    sCode: -17329
    source: TSAPI
    description: Error loading step 'In-Circuit-Test' of sequence 'MainSequence' in file 'bscan_demo.seq'.
    Error loading step 'Insert name of step into operator interface' of sequence 'Load and run ICT program' in file 'Test_Library.seq'.
    Type 'NumericLimitTest' is invalid because it conflicts with the existing type of that name. To avoid this error message, you should open the file with the type conflict in the Sequence Editor and resave it.
    The sequence file 'C:\Program Files\Sequences\Utility_Library.seq' could not be loaded.
    helpFile:
    helpContext: 0
    errorParamPos: -1
    I can resave the sequence to avoid this message. My own application can execute the sequence file after resaving. The library is saved now in Teststand 4.1 format. But this is not my interest.
    Can anyone tell me, why the sequence editor (4.1) don't show me any error? How must I program my own application to avoid this error message?
    Thanks a lot.
    Solved!
    Go to Solution.

    Hej,
    I'm posting my tracefile. I think its easier to unterstand. Here are tracing with the error:
    0.000s      Program started
    0.000s      Tracing started
    0.002s      Function LoadPanel finished with no errors
    0.000s      Initialize Teststand Engine
    0.892s      Function -->   TS_NewEngine finished with no errors
    0.000s      Function -->   TS_EngineRegisterUIMessageCallback finished with no errors
    0.001s      Function -->   TS_EngineSetProperty finished with no errors
    0.000s      Function InitEngine finished with no errors
    0.000s      Start login process
    0.000s      Function -->   TS_EngineNewPropertyObject finished with no errors
    0.000s      Function -->   TS_PropertySetValBoolean finished with no errors
    0.000s      Function -->   TS_PropertySetValBoolean finished with no errors
    0.030s      Function -->   TS_EngineCallFrontEndCallback finished with no errors
    0.000s      Function -->   TS_ExecutionGetProperty finished with no errors
    0.000s      Function CallLoginLogoutCallback finished with no errors
    0.000s      Show panel behind logon panel
    0.017s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.003s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.011s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.224s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.247s      Waiting for Login
    0.500s      Waiting for Login
    0.086s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_ExecutionGetProperty finished with no errors
    0.005s      Logon process done
    0.000s      Check user
    0.000s      Function -->   TS_EngineGetCurrentUser finished with no errors
    0.000s      User can run any sequence
    0.000s      Function CheckUserPrivilege finished with no errors
    0.000s      Open sequence
    0.000s      Show file select popup window
    1.297s      Function -->   TS_EngineGetSeqFile finished with no errors
    0.000s      Sequence file path is:
    0.000s      c:\Program Files\Spectral Electronic\SW-ITS\Projects\BScan_Demo\bscan_demo.seq
    0.000s      Function OpenSequence finished with no errors
    0.000s      Check sequence
    0.000s      Function -->   TS_SeqFileSequenceNameExists finished with no errors
    0.000s      Function -->   TS_SeqFileSequenceNameExists finished with no errors
    0.000s      Function -->   TS_SeqFileSequenceNameExists finished with no errors
    0.000s      Function -->   TS_SeqFileSequenceNameExists finished with no errors
    0.000s      Function -->   TS_SeqFileSequenceNameExists finished with no errors
    0.000s      Function -->   TS_SeqFileSequenceNameExists finished with no errors
    0.000s      All sequences found, iStartSequence automatically true
    0.000s      Function CheckSequence finished with no errors
    0.000s      Start execution of loaded sequecence
    0.248s      Function -->   TS_SeqFileGetModelSeqFile finished with no errors
    3.123s      An error has occurred in function: -->   TS_EngineNewExecution useProcessModel
    Error code: -2147352567
    CA automation error string: Ausnahmefehler aufgetreten.
    Teststand API error information:
    wCode: 0
    sCode: -17329
    source: TSAPI
    description: Error loading step 'In-Circuit-Test' of sequence 'MainSequence' in file 'bscan_demo.seq'.
    Error loading step 'Insert name of step into operator interface' of sequence 'Load and run ICT program' in file 'Test_Library.seq'.
    Type 'NumericLimitTest' is invalid because it conflicts with the existing type of that name. To avoid this error message, you should open the file with the type conflict in the Sequence Editor and resave it.
    The sequence file 'C:\Program Files\Spectral Electronic\SW-ITS\Sequences\Utility_Library.seq' could not be loaded.
    helpFile:
    helpContext: 0
    errorParamPos: -1
    0.015s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   CA_CreateObjHandleFromIDispatch finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    0.000s      Function -->   TS_UIMessageGetProperty finished with no errors
    4.303s      An error has occurred in function: ExecuteSequence -> Test UUTs
    Error code: -1
    Error message: No error message
    0.628s      Start free all resources
    1.060s      Free all resources done
    0.000s      Tracing stopped
    0.000s      Programm ended

  • How do I find the path to a TestStand sequence file using LabVIEW

    My LabVIEW application launches a bunch of teststand sequences, provided it has the complete path to each of them. I want to make it more flexible by providing it just the name of the TestStand sequence so that it will go and find the path to the sequence by searching a directory structure. TestStand has a neat FindFile() function that can do this, but I need to do this from within LabVIEW. Is there a way to do it?

    There are a few ways to do this depending on how you are getting the sequence files.  If you are calling the GetSequenceFileEx method, you can just pass the GetSeqFile_FindFile (0x20) flag in the SequenceFileFlags property.  If you are using the ApplicationMgr.OpenSequenceFile method, this is automatically done for you.
    If you want to use the FindFile function in general, you can use the Engine.FindFile method.
    Allen P.
    NI

  • Is it possible to create a distributi​on kit or executable file out of a Teststand sequence file that uses CVI standard prototypes​?

    How can i create an executable file or distribution kit of a sequence file in teststand?. I'm using CVI standard prototypes.

    If you want to distribute your sequence files to other machines, there are a few things you must consider.
    1. Create a TestStand Run-Time Engine installer. You can do this by selecting Tools>>Run Engine Installation Wizard.
    2. Distribute your Operator Interface.
    3. Distrbute your code modules (in your case CVI) and sequences.
    We do not have a tool similar to that of Assemble VIs for Distribution for CVI. You will need to ensure that all of your code is copied to the target machine and that TestStand is able to resolve the paths for where these files are located (i.e. Configure>>Search Directories).
    PLEASE REFER TO THE CHAPTER IN THE TESTSTAND USER MANUAL TITLED "DISTRIBUING TESTSTAND".

  • Know steps names of called sequence file using sequence call step type in TestStand

    Hi,
        I have a problem in accessing step names in called sequence file using "Sequence call"step type in TestStand 4.0.
    I would list out all step names of called sequence file. Is it possible to do through C#.NET? If, yes, Please explain to me in detail with possible example.
    Thank you,
    regards
    RKK

    Hey RKK,
    I want to first set your expectations for the forums.  This is not a place for people to review and rewrite your code for you; this is a place for specific and general questions.  I am not saying your question in this thread is inappropriate, because it is a good questions.  We should just not post code and ask others to fix it here.  If you are looking for this type of service we have alliance members that can help you write your TestStand Operator Interface (www.ni.com/alliance).
    As for you question about getting the sequence names for a sequence file that is not the currently running sequence file, you will need to open a reference to that sequence files and then use the API calls that I mentioned in my previous posts.  You can use the Enigine.GetSequenceFileEx function to open a reference to sequence file, and you will need to close the reference with the Engine.ReleaseSequenceFile function when you are done using it.  After you have a reference to this external Sequence File, you can use the example dll and sequence I previously sent you.  I also attach a new sequence file (SeqFile2.seq) plus an updated GetNames.seq to illustrate how to use the above mentioned functions.  I hope this helps.  Have a great day!
    Best Regards,
    Software Engineer
    Jett R
    Attachments:
    GetNamesOfSequencesInFile.zip ‏52 KB

  • To pass parameter values to the object reference of action step in sequence file of teststand programatically using C#.

    //Initialize the Engine
                EngineClass myEngine = new EngineClass();
                myEngine.LoadTypePaletteFilesEx(TypeConflictHandlerTypes.ConflictHandler_Prompt, 0);
                Step myStep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname,StepTypes.StepType_Action);
                myStep.Name = "object";
                DotNetModule dotnetmodule = myStep.Module as DotNetModule;
                dotnetmodule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File,@"C:sequence.dll");
                dotnetmodule.ClassName = "CN";
                dotnetmodule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
                dotnetmodule.MemberName = "ISI";  
    mySequence.Locals.NewSubProperty("object", PropertyValueTypes.PropValType_Reference, false, "", 0);        
    Sequence mySequence = myEngine.NewSequence();
                mySequence.Locals.NewSubProperty(varName, PropertyValueTypes.PropValType_Reference, false, String.Empty, 0);
    mySequence.InsertStep(myStep, 0, StepGroups.StepGroup_Main);
                SequenceFile seqFile = myEngine.NewSequenceFile();
                seqFile.InsertSequence(mySequence);
    seqFile.Save("C:\\mySeq.seq");
    I have done this,dynamically creating a sequence file in teststand programatically through c#.
    Problem is
    1.I created an action step and object Reference variable for the step, but i am not able to pass  parameter values to the objectReference 
    2.I am not able to load the sequence in to the main Sequence of the sequence file in the teststand. How can I do these two things.

    Hi,
    have you ever followed on my Links ?!?!?
    If not please jump to this one
    http://forums.ni.com/ni/board/message?board.id=330&thread.id=26880 
    and read the the answer from Mannoch
    starting with this words:
    Anthony -
    Currently, functionality for retrieving the Metadata Token for a class constructor or member is not fully provided in the TestStand .NET Adapter API. The DotNetModule.GetConstructorMetadataToken() and DotNetModule.GetMetadataToken() methods only return the correct Metadata Token when the member/constructor prototypes have already been loaded. Thus, in the case of your code, when you call DotNetModule.GetMetadataToken(), the method is returning -1 because the member prototype for the Step you are referring to has not yet been loaded.
    That means have to do a workaround for your stuff.
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Edit Items in TestStand Sequence File Combo Box?

    Hello All,
      I am creating a basic user interface VI Project, based off of the examples included with TestStand.  In the "Simple" example, there is a Open Seq File button, and an associated combo box to select the Sequence File to run.  For my application, I would like to limit the sequence file options from which the operator can choose (not allow the operator to browse the entire hard drive to find a sequence file).  Using basic Labview functions, I would have done this with a regular combo box, and use the "Edit Items" option to load file options into the drop-down menu.  However, the TestStand UI combo box does not allow this, presumably because it is an ActiveX control, and configuration is different from normal Labview functions.  Is it possible to pre-load the TestStand UI combo box with allowed sequence files?  Or, if there are other suggestions on how to accomplish the requirement, I am open to them as well. 
    Thanks in advance,
    GSinMN       

    One idea is to use the native LabVIEW controls.  Then hide the TestStand UI controls and update them from the events triggered by the native LabVIEW controls. I have had to do this before on UIs when the customer wanted a certain look and feel.
    So basically have the native LabVIEW combo box set like you want.  When the user makes a selection, in the event for that selection update the hidden TestStand Sequence File Combo Box witht he correct sequence file.
    Another option is to use events for the Sequence File Combo Box and just filter and force certain behavior.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to launch a specific TestStand sequence file from command line?

    I've written a TestStand sequence file launching other sequence files.
    When I launch it via the TestStand GUI, it works well.
    Now, I would like to launch it via command line. Could you indicate me how to proceed?

    Hi,
    I think this link can help you:
    How to Run a Sequence File When Opened from Windows Explorer
    http://digital.ni.com/public.nsf/websearch/146D372C1F807E6D862567E7004881AB?OpenDocument
    regards,
    Alexandre D
    NIF

  • Sequence files documentation in TestStand 4.0.1

    How can I generate sequence files documentaton in TestStand 4.0.1 for all sequences from particular workspace (tests suite) in automatic way? Is there any seqence already written or mayby TestStand 4.0.1 provides some extention of sequence files documentation tool known from TestStand 3.x

    It's not trivial, but if you look at the ForEach.seq tool sequence (Components\NI\Tools\ForEach.seq) you can use that as an example of enumerating all .seq files under a particular directory and performing an operation on them. That tool opens and resaves all the sequence files under a particular directory. With some work it could be made to generate sequence file documentation instead. Also I think there's a sequence in ForEach.seq that you could call to get back an array of all sequence files' absolute paths under a particular directory which you could then loop on and call into the documentation sequence with.
    Hope this helps,
    -Doug

  • How to pass value for value field of return parameters for an action step in teststand sequence file programatically using c#

    I used a method LoadPrototypeFromMetaDataToken(token,options) to load the return type parameters. I am unable to set the value field in the return parameters for an action step in teststand sequence file programatically using C#.How can I do that.

    Continue here

  • Programatically select a step in a sequence in a sequence file loaded in TestStand sequence editor using C#

    Hi all,
    I have written C# code to load a sequence file dynamically in TestStand Sequence editor. The code is as follows...
    myEngine.PostUIMessage(mySequenceContext.Execution, mySequenceContext.Thread, UIMessageCodes.UIMsg_OpenWindows, 0, null, mySequenceFile, true );
    The code is working fine and I could view the Sequence file opened in TestStand Sequence editor.
    Now, I wish to select one sequence in the opened sequence file to get the details of  the sequence programatically. In other words, I want to simulate a mouse click to a sequence and view the steps associated with that sequence.
    Can anybody give some clues...
    Thanks in advance.

    Hi,
    Also I am getting error like "Index out of range. Source:  TSUISUPP.SelectedSteps   at NationalInstruments.TestStand.Interop.UI.Support.SelectedSteps.AddStep(Step val)". Error code: "-17500; Operation Failed." My code is like
    mySequenceFile = myEngine.GetSequenceFileEx(@"D:\dynamic loaded sequence.seq", 0, TypeConflictHandlerTypes.ConflictHandler_UseGlobalType);
    mySequence = mySequenceFile.GetSequenceByName("First");
    Step myStep = mySequence.GetStep(2, StepGroups.StepGroup_Main);
    SequenceContext mySequenceContext = mySequenceFile.NewEditContext();
    mySequenceContext .AsPropertyObject();
    myEngine.PostUIMessage(mySequenceContext .Execution, mySequenceContext .Thread, UIMessageCodes.UIMsg_OpenWindows, 0, null, mySequenceFile, true);
    ApplicationMgr applicationMgr = (ApplicationMgr)myEngine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);
    SequenceFileViewMgr sequenceFileViewMgr = (SequenceFileViewMgr)applicationMgr.GetSequenceFileViewMgr(mySequenceFile);
    sequenceFileViewMgr.SelectedSequences.Clear();
    sequenceFileViewMgr.SelectedSequences.AddSequence(mySequence);
    sequenceFileViewMgr.SelectedSteps.AddStep(myStep);
    I am sure that my Sequence selected in the Sequence file loaded has more than 2 steps. Please help me in solving this problem and that in the previous post.
    Thanks,
    Biju kuttan

  • How to load programmat​ically from CVI the specific sequence file in TestStand 3.1

    I am trying to implement TestStand from Windows/CVI 3.1. I need to insert a specific sequence file in TestStand, with all other sequences unloaded. I used TSUI_ApplicationMgrCloseAllSequenceFiles() and TSUI_ApplicationMgrOpenSequenceFile(), but after Username/Password prompt, the TestStand loaded all the old sequences. How to eliminate this?

    Hello,
    I created a function that calls those two methods. When I made a simple CVI button and in a callback for it, I call my function, it does successfully close all open sequencefiles and then load the one I specified; however, it does not work when I call the function just before the call to RunUserInterface! I am very surprised by this and will be bringing it up with our R&D department. There is a simple work-around. Instead of closing all open sequencefiles at the beginning of the OI, close them at the end instead. I have modified the full-featured OI for you and tagged in the code where I made changes. This should do exactly what you want (you may want to change the code around to make it a little cleaner...I left more in code in than I needed for instructive purposes). Please let me know if you have any questions about this. Take care!
    Regards,
    Aaron B.
    National Instruments
    Attachments:
    TestExec.c ‏55 KB

Maybe you are looking for

  • Why I'm giving up my Q10 to go back to the Bold 9900

    Hi, I wanted to take this opportunity to detail my experiences and frustrations with the Q10 and why I have decided to return to the Bold 9900.  I'd like to stress that these opinions are my own.  I recognize that the industry has a whole has embrace

  • Object scaling does not seem to work correctly with objects containing Bezier curves

    I created a closed object that had a Bezier curve as part of it's definition. I wanted to scale it by 110% and then use this second enlarged object to create a sort of a background underneath the first object to create a sort of a shadow effect. But

  • LDAP Sync causes fields in DEV_OIM.SVP to be plain text

    In OAM 11g , there is the OIM console. In there you can create users, organizations, roles, etc... When a user is created in the OIM console in 11g, that user is visible in the OID directory via ODSM. If I create a user in OID via ODSM, the reverse i

  • Oracle 8i and Win XP

    Hi, This goes to anyone who can help. I just installed Ora81 on WinXP. Installed developer 6.0 as well. I copied the tnsnames.ora from 8i to dev 6.0 tnsnames.ora file. When I try to log into formbuilder or any other app, it does not recognize the ser

  • SC created from PR not visible in portal although visible in backend SRM

    Please can some one check and guide me why I am unable to see the SC created from PR in SRM portal . I can see the SC exists in BBP_PD however when I check in portal It does not give me any result .. We are using the system for the first time to enab