Programmatically selecting Test UUT as entry point from LabVIEW

Hi,
Anne here. I am currently develping a user interface in LabVIEW that call the TestStand sequence. Is there a way for me to programaticallys set the entry point to be Test UUT? I used the Run method from the IseequenceFileViewMgr class but it says there that it runs the sequence without a process model entry point. My sequence will always run as Test UUT mode. Is there a way for me to do this? I saw in the help files that there is a EntryPoint Class in Teststand with a Run Method, but I can't seem to find this method in LabVIEW. 
How can I automatically execute my sequence to run in Test UUT once I call and run the sequence in LabVIEW? 
Thanks for the help!
Cheers! 
Anne
Solved!
Go to Solution.

Hi Roderic,
Thanks so much for the help! It worked.
Cheers!
Anne

Similar Messages

  • Calling a Configuration Entry Point from a C# code module

    Hi,
    Is it possible to call a configuration entry point from a C# code module?
    I have a custom process model which creates some configuration entry points.
    One of the entry points, calls a C# method in a code module to display a Startup screen for the operator.
    In an Editor User Interface, I have added a toolbar, now I want to execute the previous entry point initiated from my C# code to get the Startup screen again when a button is clicked on the toolbar.
    Best regards

    Hi James,
    Thanks for your suggestion, but unfortunely the code hangs after executing the entrypoint, if have tried it in two ways, but both have the same result. Do you have any idea how to fix this.
    Trial 1:
      Engine engine = new Engine(); ApplicationMgr applicationMgr = (ApplicationMgr)engine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);EntryPoints entryPoints = applicationMgr.ConfigurationEntryPoints; int intIndex = 0;foreach (EntryPoint entryPoint in entryPoints) {    switch (entryPoint.Name.ToUpper())    {        case "TOGGLE ONLINE <-> OFFLINE":            object objEditArgs = System.Type.Missing;           entryPoint.Run(objEditArgs); // Application hangs after executing this command, the entrypoint does not execute!             break;        default:            break;     }
         intIndex++;
    Trial 2:
      Engine engine = new Engine(); ApplicationMgr applicationMgr = (ApplicationMgr)engine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);EntryPoints entryPoints = applicationMgr.ConfigurationEntryPoints; int intIndex = 0;foreach (EntryPoint entryPoint in entryPoints) {    switch (entryPoint.Name.ToUpper())    {
            case "TOGGLE ONLINE <-> OFFLINE":           // Application hangs after executing next command, the entrypoint does not execute!           applicationMgr.GetCommand(CommandKinds.CommandKind_ConfigurationEntryPoints_Set, intIndex).Execute(true);              break;        default:            break;     }
         intIndex++;
    Best regards

  • KM Entry Points from Java

    Hi friends.
    I want to access KM Entry Points from Wbbdynpro Java.Is it Possible??.Please help.

    Set your top level RID as /entrypoints
    Iterate through its child (resources) and store their link RID's in a List.
    Check if the following code works
    List folders= null;
    try
         ep5User = WPUMFactory.getUserFactory().getEP5User(user);
         IResourceContext context = new ResourceContext(ep5User);
         RID pathRID = RID.getRID("/entrypoints");
         com.sapportals.wcm.repository.IResource resource = com.sapportals.wcm.repository.ResourceFactory.getInstance().getResource(pathRID,context);
         if(resource.isCollection())
              folders = new ArrayList();
              ICollection collection = (ICollection)resource;
              IResourceListIterator it = collection.getChildren().listIterator();
              while(it.hasNext())
                   IResource res = (IResource)it.next();
                   if(!res.isCollection())
                        folders.add(res.getAccessRID());     
         } catch (Exception e)  {
               e.printStackTrace();
         finally
                          //do something
    return folders;

  • File Menu Entry Point from VC

    Hi,
    I am trying to execute a File Menu entrypoint from VC++ code.
    can anyone please suggest how to do the same.
    I have used below piece of code in my project to execyte the entrypoint.
    Here, "Select Model" is one of the File menu item from my process model.
    i wanted to execute "Select Model" menu item from VC++ code. but the below piece of code is executing operation failed message
    I have doubt at my seqFile ptr. can you please suggest how to give process model seq file reference to seqFile ptr here.
            ExecutionPtr            newExecution = NULL;
            TS:equenceFilePtr        seqFile =GetSequenceFile()    ;
            TS:equenceFilePtr        processModel =     NULL;
            TS::EditArgsPtr            editArgs = NULL;
            TS::EditArgsPtr            seqArgs = NULL;
            _bstr_t                    entryPointName ="Select Model";
            TS::IEnginePtr engine = mApplicationMgr->GetEngine();
            processModel = engine->GetStationModelSequenceFile(NULL);
            editArgs = engine->NewEditArgs();
            editArgs->SetSelectedSequenceFile(seqFile);
            TS:ropertyObjectPtr container = engine->NewPropertyObject(PropValType_Container, FALSE, "", 0);
            container->SetValString("sequence", 0x1, "MainSequence");
            _variant_t vtEditArguments((LPDISPATCH)editArgs, TRUE);
            _variant_t vtSeqArguments((LPDISPATCH)container, TRUE);
            newExecution = engine->NewExecution(seqFile, entryPointName, processModel, 0,
                                                TS::ExecTypeMask_InitiallyHidden, vtSeqArguments, vtEditArguments, vtMissing);
            engine = NULL;
    SequenceFilePtr CTestExecDlg::GetSequenceFile(void)
        RuntimeTrace(" TRACE---------CTestExecDlg::GetSequenceFile(void)        \n");//trace
        return mFile;

    I'm assuming you have a process model configuration entry point placed in the File menu via a menu hint and that it works fine from the File menu. If so, the following code will execute it:
        long numInserted;
        TSUI::CommandsPtr commands = mApplicationMgr->NewCommands();
        commands->InsertKind(CommandKind_ConfigurationEntryPoints_Set, mSequenceFileViewMgr, -1, "File", "File, Edit, Execute, Debug, Configure, Tools, Help", &numInserted);
        commands->GetItem(0)->Execute(VARIANT_TRUE);

  • How do I determine the execution entry point used programatically in a sequence?

    I need to vary the behaviour (slightly) of a sequence depending on whether the user runs the sequence with the "Test UUTs" execution entry point or with "Single Pass".  I was hoping that I could find a variable to use in my sequence which specifies which entry point was used.  Is there a variable that shows this information?  If so, what is it?  If not, what other methods might work to accomplish this?
    Thanks,
    Sean

    Hi,
    In your MainSequence use the expression Locals.Caller = NameOf(RunState.Caller.RunState.Sequence).
    (Locals.Caller declared as a string in the sequence.)
    This will return a string to your variable as "Single Pass" or "Test UUTs".
    Hope this helps
    Regards
    Ray
    Regards
    Ray Farmer

  • Which veriable in TS store the Execute mode (Test UUTs, Single Pass etc..)

    I'm writing a program in CVI7.0 with TS3.0. I would like to inquire the TS to the Execute mode.--was the user selected Test UUTs (F5), or Single Pass (Ctr F5), or 'Run Main Sequence' or 'Run Selected Steps'.
    Can you advise how to do that?
    Thanks

    Hello,
    To determine which Execution Entry Point is being used to call your client, you can use the TestStand 3.0 API to call properties an methods that will return to you the name of the root sequence. I have attached a sequence file that makes ActiveX calls to the API to do just that and displays the result in a Message Popup step. If follows these steps:
    1. Get the root context (this will be the context of the sequence of the process model that is used to execute, ie: Test UUT, or Single Pass).
    2. Get the sequence from the root context.
    3. Get the name of the sequence.
    4. Display the name (if it is a Test UUT, I have preconditions set up to only display it on the first UUT tested).
    If you chose, "Run Main Sequence", the name that you rec
    eive will be "MainSequence" because the root sequence is not a Process Model sequence, but the MainSequence of the client file.
    I hope that this is helpful. Take care and have a great day!
    Aaron B.
    National Instruments
    Attachments:
    GetExecutionInfo.seq ‏31 KB

  • GetCommand does not return my configuration entry points?

    If I'm in a client sequence file and I want to dynamically execute my own configuration entry point in the process model what is the best way to accomplish that?
    I am trying to get the application manager through an activex step using Engine.GetInternalOption(InternalOption_ApplicationmManager) and then I choose the GetCommand method with CommandKind_ConfigurationEntryPoints_Set.  It will only use an index for one of the 3 default configuration entry points (Report Options, Model Options or Database Options).  It throws an index out of range if I try to get my own.  This is from James Grey's post here: http://forums.ni.com/t5/NI-TestStand/Calling-a-Configuration-Entry-Point-from-a-C-code-module/td-p/1... (I'm not in .NET though.  I just want to use activex steps in TS).  The 3 default ones work perfectly.  It's only when I try my own that I've added.
    Any thoughts?
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Solved!
    Go to Solution.

    I can call it directly as well but it doesn't exhibit the behavior I want.
    Basically we have a process model with a Configuration Entry point called About Test.  This calls a sub sequence which has 2 steps in it. The first step is a callback and the second is a VI call.  The VI displays a splash screen with our company logo, disclosure and the text (usually a software part number) returned by the callback.
    What I want to do is put the SequenceFileLoad callback in our clients and have a step in there that will invoke the About Test entry point upon sequence load.
    The series would look like this:
    SequenceFileLoad(client)>>About Test Configuration Entry Point(model)>>SubSequence(model)>>About Test Model Callback (client)>>VI Splash Screen(model)
    All of this would be a lot easier with a (ProcessModelFileLoad): http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/ProcessModelFileLoad-Engine-Callback/idi-p/225016...
    So back to my point about it not working correctly.  It doesn't seem to be invoking the model callback when I use New Execution or call the sequence directly.
    Also, what is the explanation for my config entry points not showing up at all in the list?  it seems that function should grab all config entry points in the model..... 
    Thanks a bunch,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Creating Power point presentations from LabVIEW

    I need to create a microsoft power point presentation from LabVIEW. Has any one worked with power point from labVIEW.

    Yes I have done PP in LV.
    Quick suggestions to start.
    1) Use activeX. Provided you do not try to use the events from PP you should be able to do most of what PP offers.
    2) Before starting, make sure you have "help for VBA" installed. This can be isntalled from the MS source disks and doing a custom install. Without this, you will have no clue as to where to find things.
    3) Check for VBA examples of what you are trying to do.
    I have never composed a PP presenstation via LV. Check the VBA help to see if this is possible.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Model entry point 'test uuts' could not be executed error -18002

    Hi,
    I am running a testand(2.0.1f1) sequence of labview (7.0) steps and it is working perferctly in my computer , but when installing testand and labview in another computer and I try to run my sequence the next message appears. "model entry point 'test uuts' could not be executed error -18002"
    Is anyone that has an idea of what is happening here?
    Thanks =)
    Eren

    Hi Eren,
    You might try mass compiling the TestStand folders so that all VI's are at the same Version. TestStand 2.0.1f1 installs VI's that are at ver5.1.1
    When you run from the Entry Point eg "Test UUTs", before the sequence executions all VI's in all the sequence contained in the sequence file are loaded in to memory.
    Look at the error message again, it should be telling you which step in which sequence of the sequence file is not executable.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • Run test uut entry point only once

    Hi,
    I want to avoid that users can run test uuts entry point more than once. I use an operator interface written in CVI 7.1.1 and netry point button is deactivated when run state changes. But after loading the application sometimes is too slow so the user can press this button twice before it is deactivated.
    So is there any possibility to avoid running this entry point more than one time?
    Regards
    Steffen

    Steffen,
    Thank you so much for the help.  You recommendations worked perfectly.  Both of us implemented more or less the same behavior in our operator interfaces, although we used slightly different methods.  Here is what I did:
    I established a count variable in my operator interface that is initially set to 0.  Each time the Test UUTs or Single Pass button is pressed, I increment the count by 1.  I determine that the Test UUTs or Single Pass button is pressed by registering for and handling the Application Manager PreCommandExecute event.  In my callback for this event, I examine the returned Command and look at its EntryPointIndex property to see if the index is 0 (Test UUTs) or 1 (Single Pass).  If it is, I increment the count variable count by 1.  If the index is not 0 or 1, I do nothing.  Once execution has stopped, I reset the count variable back to 0.  I do this by registering for and handling the ExecutionView Manager RunStateChanged event (as you recommended).  In my callback for this event, I examine the returned newRunState to see if it stopped (numerical value of 3).  If it is, I set the value of the count variable back to 0.  If it isn't stopped, I do nothing.
    This method is basically the same as the one you propose.  This method allows you to use the built in TestStand buttons instead of having to use those found in your development environment.  The only drawback is that they don't disable and gray out during execution; they just do nothing when an execution is in progress and the operator presses them.

  • Pass data from configuration entry point

    I have a need to post data from a Configuration Entry Point during a Test UUTs execution. I would like to update a parameter in my test sequence, using the configuration entrypoint if the test sequence is actively running in Test UUts. If it's not active, I would update a .ini file which gets read by the process model when a new Test UUTs entrypoint is started.
    My first guess has been to determine if the TestUUTs sequence is active, and I have tried using the PropertyObject RunState.ProcessModelClient.IsExecuting, but I just realized the Configuration Entry Point is always running in the process model.
    Everything I have read indicates that most Configuration Entry Points just write data to a file. Am I doing something fundamentally wrong?
    How do i determine if my sequence file is being executed with TestUUts?
    Thanks for your help. Woefully confused,
    Brian

    hi bce,
    [ If I used a station global, how would my changes be saved? Can you do this programmatically? Is there a better way? ]
    When Teststand closes, it automatically saves the StationGlobals. You would use PropertyObjectFile.SaveFileIfModified if you needed to force the save. But you shouldn't really need to do this as the latest value is available to all sequences and sequence files.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • In LabVIEW OI the Run Selected Step Using Test UUTs does not work

    TestStand LabVIEW Operator Interface (old style) - TestStand Version 2.0.1 & 3.0
    The Interactive option was enabled for the Process Model Entry Point - Test UUTs in the SequentialModel.seq.
    When selective steps were selected to run within the LV OI using the menu item 'Run Selected Step Using - Test UUTs' it was found not to work.
    The reason for it not working was because the main event string was "Run Selected Step 0" but this isn't available in the case statement. Changing the "Run Selected Step 1".."Run Selected Step 9999" to "Run Selected Step 0".. didn't produced the desired result. Instead of the selected steps running using the entry point Test UUTs, the steps ran without the process model.
    The Case Statement string was retored back to "Run Selected Step 1".
    The changes that are required to make the "Run Selected Step 1".."Run Selected Step 9999" work with either of the Entry Points are as follow.
    In the VI TestStand - Create Entry Point Menus for Interactive Exec.vi
    Insert an Increment from the iteration terminal of the FOR loop. This ensures the Message Queue string generated is in the range 1 - 9999 not 0 - 9999.
    In the TestStand - Sequence Display.vi
    For the Main Message Event "Run Selected Steps", "Run Selected Step 1".."Run Selected Step 9999"
    In the case "1, Default", decrement the input 'Entry Point Index' to the VI TestStand - Start Interactive Entry Point Execution.vi. This ensures the Entry Point Index starts from the value 0.
    Now when the selected steps are run using a Pocess Model Entry Point, they run correctly.
    This problem only appears to affect the LabVIEW Operator Interface and only the old style. The new style that comes with TestStand 3.0 runs correctly.
    There is one other problem. When an Operator is logged in to TestStand, the Entry Point - 'Single Pass' is disabled. But this is not reflected to the menu item 'Run Selected Step Using'. Both 'Test UUTs' and 'Single Pass' are available to the operator.
    The reason for this is because in the VI 'TestStand - Create Entry Point Menus for Interactive Exec.vi' the sub menu item is enabled as a result from the property Sequence.AllowInteractiveExecutionOfEntryPoint. This is not enough to disable the 'Single Pass'. The Engine.CurrentUserHasPrivilege needs to be checked as well. Which means modications to the VI 'TestStand - Create Entry Point Menus for Interactive Exec.vi'.
    Hope is maybe of help to anyone that may need to use this option.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    In_Labview_OI_-_Run_Selected_Steps_Using_Test_UUTs_doesnt_work.txt ‏3 KB

    Thanks Ray for the "heads-up". )
    I am about to implement a vi which calls TestStand functions. This vi will allow to select tests and permits test re-entry (loops) if the user has supervisor privileges.
    I will consider what you recommend in this string.
    I will also provide feedback on this thread if I discover anything .... let's say "unusual"..
    On another note, I am using TestStand 3.0 I have not observed any problems when running selected steps or run selected steps using single pass. I have also within TestStand set privileges for certain Operators to do the same. They have not reported any problems.
    Thanks,
    JLV

  • Test Stand File menu item entry point execution in VC++ code

    Hi,
    Can you please suggest me, how to execute a file menu item entry point pragmatically in a VC++ code.
    My process model seq inserts an item called "Select Model" into TS file menu.
    i have to programmatically execute this entrypoint from an Operator interface developed in VC++.
    Request your suggestion in this concern.

    Couln't you just use the PerformClick Method?  So basically you'll have a reference to your menu somewhere in the code.  Get the node of the item you want and then use the PerformClick method.
    From MSDN: http://msdn.microsoft.com/en-us/library/system.win​dows.forms.menuitem.performclick%28v=vs.71%29.aspx
    I recommend that vs going through the TestStand API.  It will be a lot cleaner.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Entry point 'Test Batch' does not exist

    Hi Forum
     I am in the process of upgrading one of our testsystems from TestStand version 3.1 to version 4.1.
    The system is started up by a Labview app which calls TS by a command line call (-runEntryPoint  "Test Batch"  "C:\..."). However, TS 4.1 doesn't recognize the "Test Batch" entry point (worked fine in 3.1), and I get an error box with the message "entry point 'Test Batch' does not exist". I have checked that the entry point exist in the sequence model file, and if I go to the "Execute" menu, I get the choice to run "Test Batch".
    I am able to se the -run command, but then I, for some reason, don't get the entire sequence.
    Any suggestions to what I am doing wrong? I am logged in to TS automatically with my windows login.
    B.R.
    Martin
    Solved!
    Go to Solution.

    Hi,
    There should be a document in \Conponents\NI\Models\... which should give you the basics for the various process models.
    here is some other references that may help
    http://zone.ni.com/devzone/cda/tut/p/id/7958
    http://digital.ni.com/public.nsf/allkb/D9E7A0BDDDA​2A87886256FD9007598D2
    Check out some of the related links
    http://zone.ni.com/devzone/cda/tut/p/id/3819
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 09-24-2009 11:00 AM
    Regards
    Ray Farmer

  • Programmat​ic icd selection from LabView?

    Hi Everyone,
    Is there any way to Programmatically select a camera ICD and assign/load it to an interface from LabView?
    Background: I have a test station that is used with a number of different Camera types (all with their own specific .icd file) and I'd like the end user to be able to simply select the camera they are working with from a drop down menu in the labview test application and not have to navigate through MAX to set up the camera.
    Is this possible?
    Thanks,
    Peter
    Solved!
    Go to Solution.

    Hi nemi,
    There is no built-in way to programmatically select a camera icd file, but it is possible to do this by parsing through the iid file and modifying the text. This document has more information on how to do this.
    Good luck with your application!
    Emily C
    Applications Engineer
    National Instruments

Maybe you are looking for

  • I bought a song on my phone but it won't play on my PC

    This isn't the first time that this is happened... I buy a song through the iTunes app on my iPhone 5C and when I open iTunes on my PC, the song shows up in my Library but won't play and the name is gray and has the exclamtion mark in a circle next t

  • Dvd player not working

    I am unable to play a DVD.  When I insert a DVD it prompts me to select a region.  It is already set to the correct region (US) and cannot reselect or select another region. The tab is faded out.

  • Steps in Subcontracting Process

    Dear Experts, In Subcontracting process if the subcontracting period of 180 days is completed and if material is still with Vendor, how to complete the process. Also how to reverse the Cenvat Credit.And how cmplete/reconcile the challan. Please expla

  • 3.1.2 update

    Has anyone else had problems downloading the 3.1.2 update. I've tried 3 times now and everytime it gets to approximately 18 mins left to go, it times out.

  • My phone keeps giving me a message that it is too hot to use

    I keep getting an error message on my phone that the temperature is too high and that I need to allow it to cool down before using. I can only use the phone for about 1-2 minutes before it gives me that message. I have to put in fridge to cool it dow