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

Similar Messages

  • 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~

  • 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

  • Pass Parameter To Configuration Entry Point

    In TestStand 2010 I have added a configuration entry point to select a configuration file. (Configure\Select Config File). I'm displaying a LabVIEW GUI which basically prompts the user to select a file. The file path needs to be stored in "FilePath" variable in TestStand.
    Problem statement:
    1. I'm trying to modularize this configuration entry point. Hence, I would write to "Parameters.FilePath" variable of configuration entry point stored in process model. This variable would be of "pass by reference" type and should eventually update the caller sequence.
    However, I don't know how to pass the value from "Parameters.FilePath" to the caller sequence. I'm currently updating the station global variable directly which I think is not the correct method if I think of modularity.
    2. I want the configuration entry point that was created ("Select Config File") to be enabled only when testing has not started (I'm just using single pass for my project).
    Which variable in TestStand would tell me if the execution entry point "Single Pass" is called or not?

    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

  • How to enable keyboard shortcuts for configuration entry point?

    Hello All,
        In my process model, I have a configuration entry point sequence (sequence). I can able to select the corresponding entry from the menu bar ie. configure --> options (for eg). Now I need to have a keyboard shortcut for the same. In my case if I press (for eg) ctrl+w, the configuration entry point sequence must be called.
    Note - I have to do this using .NET programmatically.
    Is there any way I can incorporate this mechanism...?
    Thanks
    Arun

    Hello Arun,
    At this time there is not anyway to customize the keyboard shortcut keys for menu items you add to the TestStand sequence editor.  R&D is looking into implementing this in a future version of TestStand.  I'll pass along your feedback to them, and let them know there are others interrested in this feature.
    Kristen
    National Instruments

  • ADF Task Flow: Using Task Flow Call as Application Entry Point

    In our product we have a task flow structure very similar to the Fusion Order Demo application, but we are having serious trouble reproducing the documented functionality of ADF Task Flows.
    Specifically, we cannot use a task flow call as an entry point for our application, which is very important for us to achieve.
    The [Developer s Guide|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/taskflows.htm#ADFFD1634] states about the [demo application|http://www.oracle.com/technology/products/jdev/samples/fod/index.html] :
    "A Fusion web application always contains an ADF unbounded task flow, which contains the entry point or points to the application. Figure 14-3 displays the diagram for the unbounded task flow from the Fusion Order Demo Application. This task flow contains the Home, *MyOrders*, *checkout*, registerUser, and updateUserInfo *view activities, which are all entry points to the application*."
    "The checkout-task-flow activity in Figure 14-3 is a call to an ADF bounded task flow."
    When we run the Fusion Demo Application, we are only able to use home, updateUserInfo and register as entry points.
    We cannot enter the application through any of the task flow call activities (MyOrders and checkout) as the documentation suggests.
    What are the reasons for this and how do we fix it, so we can use task flow call activities as application entry points?
    Thanks.
    Edited by: Rune Glerup on Oct 9, 2009 2:51 AM
    The forum did not display the link to "Developer's Guide" because the link contained the single quote char '. Single quote char removed.

    Is what you mention here the case in the Fusion Order Demo application?
    If the task flow call activities cannot be used as entry points, why is it stated in the documentation?
    How do we solve this, so that the task flow call activities (including parameter bindings) can be used as entry points, like the documentation suggests?

  • Kind of expression for enabling configuration entry point

    I need to enable a configuration entry point not only with the "classic" 'CurrentUserHasPrivilege()' (of Engine obj) expression but also if a certain callback is present in the model client file.
    I try to use RunState, ThisContext and Execution objects but without results.
    Any suggestion?
    Many thanks
    Luigi Magni (System Engineer - CTA)

    Hi LuigiM,
    I set the enabled expression to the following:
    PropertyExists("RunState.InitialSelection.SelectedFile.Data.Seq[\"MySequence\"]")
    To one of the Configure Entry Point callback sequence in the process model e.g. the Configure Report Option.
    As you can see, the Report option will only be enabled if there is a sequence call 'MySequence' in the the active sequencefile.
    This seems to work quite well.
    The RunState.ProcessModelClient only appears to be available once the SequenceFile is executing.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Sub-menus Configuration Entry Point

    From the configure Menu in Teststand, I want to generate a pop-up or a sub-menu whereby a user can input a time that would be read in by Teststand
    sequence.  Is this possible?  By default, I want the time to be set to 8:00AM, in case of the user not making any selection.  How can I go about doing this? I was told that this may be possible via Configuration Entry points in the Sequential Model.  Can some experienced forum members shed some light on this matter?

    Would they need to set it during every execution?  if so then it makes sense to override the Process Setup Callback.
    Otherwise, it sounds like you would need to store this to disk somehow.  I wrote an example:
    http://forums.ni.com/t5/NI-TestStand/Saving-User-Config-file/m-p/1723094#M34630
    I hope you find it helpful.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • 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);

  • Doubt in configuring entry points for iviews

    Hi, I have followed the steps of the help about configuring entry points for iviews:
    1.-> in the pcd I have created a folder to store iviews for WPC.
    2.->I have gived read permission.
    3.->I have desactivated the hide root folder check por pcd repository.
    4.->I have created a folder in km.
    I am loosing in the step "Create a entry point for the folder that you created in step x".
    How link the pcd folder that store the iviews with the km folder?
    when I try to create a entry point I only can see km folders, How can I choose my pcd folder?
    Thanks.
    Regards.

    Try this:
    Procedure
    1. Choose System Administration &#8594; System Configuration &#8594; Knowledge Management &#8594; Content Management &#8594; User Interface &#8594; Mapping &#8594; Component.
    2. Edit the wpcDragExplorerEntryPoints configuration object.
    Use the following parameters:
    <u>Parameter: Description</u>
    displaymode:Specify <i>select</i>
    maxproviderprio: Highest priority number that standard entry points can have and still be displayed in the Web content browser
    entriesperrow: Number of entry points displayed in each row (default: 5)
    entrypointsprefix: Prefix of the entry point repository: If you specify a value for this parameter, standard KM entry points are also displayed in the Web content browser.
    Default: /entrypoints
    sharedcontent: Semicolon-separated list of paths to be displayed as global entry points for shared content
    Examples of parameter values (for sharedcontent param):
    displaymode=select,maxproviderprio=30,entriesperrow=5,entrypointsprefix=/entrypoints,sharedcontent=/wpccontent/Cross-Site Content;<b>/pcd</b>

  • 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;

  • How to call a Bapi or RFC from a custom logon module

    Can you provide an example of how to call a bapi or rfc from a custom logon module? (used to authenticate in portal)

    Hello all,
    Is it possible to use SAP JRA instead?
    We have a Connector deployed on the WebAS 6.40. From an EJB (Webservice) it is possible to lookup the connector, but if i try to lookup the connector from a custom LoginModule, i get the following error:
    Path to object does not exist at java:comp, the whole lookup name is java:comp/env/eis/SAPJRA_CRMDC.#
    The whole lookup in LoginModule looks
    try
                   initialcontext    = new InitialContext();
                   connectionFactory = (ConnectionFactory) initialcontext.lookup("java:comp/env/eis/SAPJRA_CRM");
              } catch (Exception ex)
                   location.errorT(ex.getMessage());
    Regards Oliver

  • Is it possible to launch the SequenceAnalyzer from a C# code module in a Custom TestStand Editor

    The Sequence Analyzer is not available in the Custom TestStand Editor Mode GUI.
    Is it possible to add the Sequence Analyzer to a menu in the custom TestStand Editor?
    Is it possible to launch the sequence analyzer from a C# code module, this method is then called from a sequence call back.
    Best regards
    Patrick

    From the TS Help:
    TestStand Sequence Analyzer Application
    Select Start»All Programs»National Instruments»TestStand»Tools»TestStand Analyzer or run <TestStand>\Bin\AnalyzerApp.exe to launch the stand-alone TestStand Sequence Analyzer application. Use this application to analyze projects outside of the TestStand Sequence Editor.
    The sequence analyzer application window contains the following tabs:
    Files—The files and directories to analyze.
    Rules—The rules to use for analysis. Use this tab to enable, disable, and configure rules for analysis in the current project.
    Options—Contains the project options that control the analysis and determine whether the sequence editor automatically saves the current analyzer project.
    Messages—Contains the list of messages for the most recent analysis of the current project, sequence file, or workspace file. The sequence analyzer overwrites the content of the Messages tab each time you start an analysis session.
    Analysis Summary—Contains a summary of the most recent analysis of the project.
    Command-Line Usage
    You can use the following command-line syntax to open an analyzer project:
    AnalyzerApp.exe "C:\My Documents\MyProject.tsaproj"
    CTA, CLA, MTFBWY

  • Add StationGlobal, FileGlobal and Locals from a C# code module

    Is it possible to create StationGlobal, FileGlobal and Locals from a C# code module?
    I know it is possible to get and set variables using PropertyObject, but as far as I know it is not possible to create them.
    Best regards

    The easiest way is to use the PropOption_InsertIfMissing option with the SetVal* methods.
    Be careful if you have multiple threads accessing the variables at the same time though because if you are creating and deleting variables dynamically while accessing/creating/deleting them from other threads it can lead to race conditions (i.e. crashes and memory corruption). If you need to access the variables from multiple threads at once, I'd recommend creating all the variables upfront, if possible, in the first thread, before any other threads try to access them, otherwise you will need to use a Lock step or step setting to protect access to the variables and any parents variables of variables you are inserting or deleting.
    Hope this helps,
    -Doug

  • 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

Maybe you are looking for