testand CloseAllSequenceFiles

Hello

I try to use the CloseAllSequenceFiles method, but I have a problem.

When I close the TestStand operator Interface, it keeps in memory the charge sequence and re open on the next run of the operator Interface. (I wish the interface was empty at opening!)

So I try to use the methods CloseAllSequenceFiles, CloseAllExecutions and stop when I close the Interface. But the sequence is open even when re...

Can someone help me?

my source code:

///////////////////////////////////////////////////////////////////////////

The ApplicationMgr sends this event when it is allowed to exit the application
HRESULT CVICALLBACK ApplicationMgr_OnExitApplication(CAObjHandle caServerObjHandle, void *caCallbackData)
{
VBOOL bShutdownReturn;
error int = 0;
  
TSUI_ApplicationMgrCloseAllExecutions (gMainWindow.applicationMgr, & errorInfo);
TSUI_ApplicationMgrCloseAllSequenceFiles (gMainWindow.applicationMgr, & errorInfo);
TSUI_ApplicationMgrShutdown (gMainWindow.applicationMgr, & errorInfo, & bShutdownReturn);

Returns S_OK;
 
}

You don't need to unload this way.

You can use the ReloadSequenceFilesOnStart- property of the ApplicationMgr to remove files reloading.

hope this helps,

Norbert

Tags: NI Software

Similar Questions

  • DetermineReportFilePathNameExpr missing dll Testand 2014 SP1

    In my sequence of process template is only a call to DetermineReportFilePathNameExpr in content modelsupport2.dll. (Teststand 2014 64 bit) This call makes the Teststand sequence editor stop working. I guess (?) that the reason Miss dll as follows

    My system

    • Windows 7 64 bit

    • Testand 2014 SP1 (14.0.1.103) 64-bit

    • Version 14.0.1.103 sequence editor

    In the analysis of Dependency Walker modelsupport2.dll , used in the DetermineReportFilePathNameExpr call, I see the following dll lack on my system:

    • API-MS-WIN-APPMODEL-RUNTIME-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-ERROR-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-STRING-L1-1-0. DLL

    • API-MS-WIN-SHCORE-SCALING-L1-1-1. DLL

    • DCOMP. DLL

    • IESHIMS. DLL

    How can I get these DLLs?

    Best regards

    Hey Rainman.

    TestStand comes with the source code of modelsupport2.dll. It is located in the directory of TestStand components:

    32-bit: C:\Program Files (x 86) \National Instruments\TestStand 2014\Components\Models\TestStandModels\modelsupport2

    64-bit: C:\Program Files \National Instruments\TestStand 2014\Components\Models\TestStandModels\modelsupport2

    You can compile it if you have the CVI on the system. Otherwise, you can at the very least still look .c files and see what is happening in the code.

    For this particular function, it seems that we have changed it over the years. The new version of the function is DetermineReportFilePathNameExprEx2 and has more than two parameters: processModelClientPath and uutPartNum. If you create a new model of process from scratch, it's the call, so you must use your process template is more stretch if you decide you need this information.

    Try the DetermineReportFilePathNameExprEx2 and switch the values for processModelClientPath and uutPartNum. If it still causes TestStand hang, then I would recommend building a debug DLL to see the line of code where this occur.

    Edit: Also try passing an empty string or a value ' " for uutStatus. Nothing can be a problem. I do not expect to be a problem because TestStand converts this value to a point of value Null of appropriate architecture, but it should be test.

    Thank you

    -KP

  • Hide icon Label step using the API Testand and LabVIEW

    Hello

    can someone tell me how it is possible to hide the icon of a step label using the API Testand and LabVIEW?

    In the Teststand sequence editor, under the Label Edit tab there is a checkbox called "Hide icon". Is there something similar in the API?

    Thank you

    Yes you can, you must set the stage "ni_blank.ico" IconName property

  • testand returns fail path in Windows 7

    Hello

    It seems that TS4.1.1 returns path fails in Windows 7 when the movie file is installed in the path of normal installation of the program, including the word in path c:\program. in the Swedish version of windows7 programs are installed in the folder instead of c:\program files\ as c:\program\ in the English version. If you ask runstate in which folder the file seq is the Swedish version, path c:\program files\ is returned. We're working around to run the sequence file in another folder, like c:\temp\.

    Anyone know if this problem is fixed in later versions of testand?

    I attach the file simple sequence to test the situation. compare results when executing the folders c:\temp or c:\program\ (c:\program\ is the default program installation folder in Windows 7 Swedish).

    Best regards

    Petri


  • change, step set name definitely Labview Testand API

    Hi, I can change a stepname to "run selected" steps in a VI, but it does not change at all times. The new name in the report file, but the old stage name stays the sequencefile. I save the sequencefile in VI and to see that it was recorded at the time but it dosnt take the new stepname in the seuencefile. Is there a possibility of othe to change the stepname permanently?

    Here is a photo of the façade, blockdiagram, sequencefile before and after and the report. I use Labview 2012 32 bit with Teststand 2012.

    I have not tested but you should know what you're doing after you rename step: use the SequenceFile reference.

    Identify the step from this reference (SequenceFile-> sequence-> step) and make the name change.

    Norbert

  • What is the error code 4MEM/62/4000000: average 0x6a165598?

    I have a portable MacBook and the fan would not turgid turned off. So I looked up what to do on this site and after you control + option + shift, power thing that it seemed to fix it.  But I didn't so I ran a hardware testand got this error message: "4MEM/62/40000000: 165598 0x6a.» Can someone tell me what this means? He also had problems with freezing up while I'm doing something that I have to press the power button to turn off and restart to get out to meet.

    This error message indicates that your Mac RAM is defective.

    You can try Rember download and installation of http://www.kelleycomputing.net/rember/ to test the RAM.

  • integration of vi and teststand DAQmx

    So far I did well on teststand using instruments ordinary like scope, power, electric, generator functions, dmm and switches.

    So I had to use a map of daqmx for a particular test. And I found that I can't pass the reference to the task through teststand because he would be with a regular dmm, function generator tool. the trial regular that I'm used to is to:

    * init instrument (reference get)

    * use Vi to:

    Configure

    Read

    Beginning

    Stop

    * Close reference

    So what I had to end up doing for example in a test were I put the analog output value to my DUT then via a serial port, get the value that my DUT is reading.

    the ususal way will be as follows:

    -define daqmx

    -Start daqmx

    -DUT Serial read and limit test

    -Stop daq

    -Close task

    but it does not work like that.

    what I end up doing is run a vi on the bottom with the Daqmx task and have a notifier of testand my vi as the closing image

    TestStand notifier

    My daqmx statement is correct?

    It's one of the ways to do it with daqmx?

    your feedback to improve the use of daqmx on testand will help me much.

    Thank you

    Buton,

    You can pass the task handle DAQmx between different measures of LabVIEW. TestStand has what is called a LabVIEWIOControl, which is a particular type of object used to transfer these settings LabVIEW IO between steps. More information on this process can be found here: http://digital.ni.com/public.nsf/allkb/131A6A87C331B3CA862571EA0004D8C1

    Side of LabVIEW, all you need to do is create necessary/indicators controls wired to your façade with the task handle entries and exits; the KB above describes how to implement the object that manages these references on the side of TestStand.

  • Flatten to a string to send arbitrary objects by messages from the user interface?

    Hi people,

    I am trying to send arbitrary data by messages from the user interface defined by the user to my labview interface. Something funny happens then: if I send the data through the message of ui, it seems I have something strange. There is only one character or nothing in the message of the user interface that reached my reminder.

    It seems that flatten channel also creates control characters that are interpreted by NI TestStand and Labview not as members of the chain, and for this reason I only get incomplete data. within the action of testand, which creates the flattened data, I put a dialog box to display the string data, and it seems that at least up to 255 (ascii) characters are used.

    Is there something like uuencode/uudecode to avoid this problem?

    Thanks in advance

    Okidoki, found.

    His «binary"produced by «Flatten the string» string Apparently I thought, the LabVIEW data type is incompatible with the API of TestStand from LabVIEW. In conclusion I would classify this as a bug (sorry people, at least there should be documentation) API for LabVIEW TestStand 2014.

    As a solution, I use flatten it in XML, which is a printable and human readable 'normal' string.

    It was trial and error, and I'm not enjoying this.

  • Remove characters from a string

    I am currently developing a seqence for barcode analysis, then writes code-specific data bar to EA on the object to be measured.     Here's my problem: a shot of uniqueness of the bar code contains several '-' brands. The raw data from bar codes are as follows "aaaa-bbbb-cccc-Davis-eeee."    However, to write the data in EA, I need the shot in the following format: "aaaabbbbccccddddeeee".   Is it possible to use Testand to revome the instance of "-" of the sting?

    Thank you

    Here's an option:

    SearchAndReplace(Locals.InputString,"-","")

  • View the report not showing after test button

    It's really weird, if someone of you guys have had this problem before. It seems that teststand does not report. but I triple check all report parameters and parameters of the step and I have the same sequence of work on another computer and print the report. I tried to do a repair of windows testand and it didn't work either.

    There is an option in the settings of the Station to disable recording for all sequences of result. Can you check this setting and confirm that it is not enabled?

  • Since the launch of Teststand I want to open a specific movie file

    Hello

    When I run Testand his way by default, it starts with the default behavior: opens "Movie file 1" (see attached .jpg)

    I want to change this behavior. I want to open a specific movie file.

    The pointers will be appreciated.

    Thank you.

    Hello chimbombo,.

    A simple way to do this is to create a single batch file that launches TestStand with 'sequencefile' argument, as described in this help document:

    TestStand Help: Configuration sequence editor and the Boot Options for the User Interface

    http://zone.NI.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/

    That should cause the sequence editor open and load one or more files in sequence you specify.

    Hope that helps!

  • Automatically load a sequence based entered digital file to USE

    Hello

    I have question where I need to test 8 different DUT, one at a time, but it should automatically load the sequence file based on the digital inputs of the connection block of the UUT.  Each object to be measured has a coonector to the construction of the box where all the e / s is related to the material OR

    3 specific entries of my digital I/o card will show that USE is connected.  When the object to be measured is connected to a card the next logical state of e/o / s will tell USE which must be tested.

    0 0 0--> UUT 1

    0 0 1--> UUT 2

    0 1 0--> UUT 3

    1 1 0--> DUT 4

    1 0 0--> UUT 5

    1 0 1--> UUT 6

    1 1 0--> UUT 7

    1 1 1--> UUT 8

    How testand can load the specific sequence based on above of the digital I/o logic States. Can it be done in the process template? I am also building a simple operator TS interface on labview.

    Concerning

    VERP

    You will need to create a code for this function. You will need to read these digital I/o, select the file in the appropriate sequence.

    You need to open this file in sequence by using the ApplicationMgr.OpenSequenceFile method.

    Set the SequenceFileViewMgr.SequenceFile property with the open movie file reference. Then when you press the buttons of the chosen sequence Entry Point will be executed.

  • could not create the xml (NI TestStand 2010) parser

    Hi all

    I get a parser error when I try to open the lower level edit to a custom step that I created in the range of types. I saw a post where someone faced this same question, but it was in version 4.1 Testand and I am facing this problem in 2010 TestStand. I tried to register the msxml4.dll in the pc, but that did not help. This station is a pc win7, the dll has been in the SysWOW64 folder and not System32.

    Can someone help me solve this error.

    Kind regards
    Amine31

    Thank you Portugal - E and Dug9000 for you answer and try to help. I thought kind of out a fix for the problem. My colleagues sought on the web largely and understood that the msxml4.dll for win7 installation package was different from that of Windows XP and install the correct version has solved the problem. Thank you again...

    Kind regards
    Nitz

  • Operator Interface labview and teststand back the call for promotion of status sequential

    Hello

    I am looking for a solution to be able to take by the API Testand 'call sequence' status key of my teststand sequence.

    The idea is to combine, on my operator labview interface a specific indicator pour each call sequence 'important '.

    Example: an indicator to test consumers, another for power supply, an another SoftComm ex but not pour tests under

    The first solution that comes to me and inspired by what I could find on this forum is the utilistion method PostUIMessageEx en post expression for each call sequence don't I want to get the result.

    I find this solution satisfactory sector a bit heavy and a little too dependent on the test sequence she herself.

    Other solutions of would they?

    Please pour your contributions

    Hello

    In general, I get the UIMessage TraceCallback. So based on the name of the step (say consolidated test for example) I can do whatever I want since LabVIEW update my GUI without having to change the TestStand sequences.

    Kind regards

  • To access the performance SequenceFileMgr

    Hello

    want to write an "Installer" - sequence that intensify a TS from scratch.

    It will introduce the model, stationglobals, serachdirectories and report options.

    It works well so far.

    but there is one task that i can't slove. If you have a user interface that is has a SequenceFileMgr object.

    You see have opend last SequnceFiles inside. by building from scratch, it is empty.

    Is there to access an instance of this object to a running and delete all related files in this

    and add a few links preferred.

    So when the next time that the operators will be open the UI, they will see the links added by the installer

    Concerning

    Jürgen

    Hello

    I found a solution for this task in 3 steps

    1 statement, get the handle to the AppMgr with RunState.Engine.GetInternalOption (InternalOption_ApplicationManager)

    2 NetStepType, UI, the class IApplicationMgr, use controls Assembly handle as an existing class object, Member CloseAllSequenceFiles

    3. Ditto with Member OpenSequenceFile.

    That's all.

    With the. NetStepType and handle you can remote control your user interface inside your execution.

    This is an amazing feature

    Concerning

    Jürgen

Maybe you are looking for

  • Mozilla crashes when you try to load the addresses of rss and xml

    Whenever I try to load any stream rss or xml feed in the address bar (I tried four or five different ones), mozilla is trying to load the page, fails and then fails altogether. I tried to create a new profile to see if any existing modules or plugins

  • HP Pavilion laptop 14: Id failure

    I use my laptop for over 5 months now, and it worked pretty well until about 2 weeks ago. The first annoyance I found was with my wireless mouse: as I was with her, all of a sudden my laptop started to make the kind of noise it makes when a USB is de

  • Blue Screen of Death - need help

    Hi all This is my first time posting in the community forums. As of late I have been doing some 'Death of blue screens' on my Alienware M15X. I had a few in the past, but I ignored because them I did not understand them. Finally, I would like to go d

  • Problem after delete Worldmate Live blackBerry Smartphones

    After deleting Worldmate Live, my "BOLD" today gives the following error exception: Eception: java.lang.NullPointerException, Eception exception: java.lang.Error Eception exception: ApplicationRegistry.waitFor (0x7491f7b6ae80681a) timeout My icons/pr

  • Apps does not not in the Creative clouds

    I tried pretty much everything on this list and it still does not.https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-app-doesn ' t - open.html