VI access to a second instance of the application


Have you seen this Darren wrote a nugget on it.

Hope this helps

Tags: NI Software

Similar Questions

  • How to call a second instance of the same VI?

    Hello

    I have a useful VI dealing with IO operations. To save some time, of what I would call the VI as a second instance do work at the same time. I created a sequence sub with the run option 'Use the new thread' and I called the Vi (a step of the sequence only). Execution time of the VI is about 20 seconds run Durin I called the subsequence and I carried on running my main sequence (parent). Since then 10 seconds to launch the subsequence (in the thread of sepatate I called the same VI as in the thought of subsequence the second instance will be created. However, instead of parallel work of the two instances of the same VI had to wait when mt subsequence end known call the VI th.

    So my question is, as in the topic: how to call a second instance of the VI even at the "same time"?

    Could you please tell me about the best approach to solve the problem?

    Any VI that you want to run in parallel must be paid also re-entrant, including screws.

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

  • PatternRepository and only want only one instance of the application target to run

    That's what I'm doing:

    1 app is started manually from office.

    2 registered PatternRepository point for a regular expression (be great if it only applied to my application, do not know how to do this, however).

    3. If the RegEx showing in one of my ActiveRichTextFields, ApplicationMenuItem

    4 ApplicationMenuItem pushes screen on stack.

    I have most of this work except for step 4. creates a new instance of the application.

    public class VocabApp extends UiApplication {
    
        private static ApplicationMenuItem[] _menuItems = new ApplicationMenuItem[1];
        static VocabApp app;
    
        public VocabApp() {
            this.pushScreen(new DictionaryScreen());
        }
    
        public static void main(String[] args) {
    
            //we only want to register/run when started from desktop
            if(args == null || args.length == 0)
            {
                _menuItems[0] = DictionaryScreen.synonymItem;
                ApplicationDescriptor appDesc = new ApplicationDescriptor(ApplicationDescriptor.currentApplicationDescriptor(), new String[]{"pattern-recognized"});
                PatternRepository.addPattern(appDesc,"{[a-zA-z ]*}",PatternRepository.PATTERN_TYPE_REGULAR_EXPRESSION,_menuItems);
                app = new VocabApp();
                app.enterEventDispatcher();
            }
            //This block will execute when one of our application menu items is invoked.
            else if(args != null && args.length > 0 && args[0].equals("pattern-recognized"))
            {
                app = new VocabApp();
                app.enterEventDispatcher();
            }
        }
    }
    

    I know that the code works as it should, I'm trying to figure out what to do:

    //This block will execute when one of our application menu items is invoked.
            else if(args != null && args.length > 0 && args[0].equals("pattern-recognized"))
            {
                app = new VocabApp();
                app.enterEventDispatcher();
            }
    

    .. .to make sure only one instance of my application is running at a time.

    TIA,

    Matt

    Here, I'm a bit confused.

    Your comparison of menu templates you run your application with the arg: "recognized cause.  An application is distinguished by the descriptor and the args.  If different args is different Application.  So this initiates a new Application.

    But only once.  If you're still running, it does not start a new.

    With this information, can you describe your problem yet?

  • How to avoid creating multiple instances of the application?

    Hello

    We have a user interface Application. The application has been set to Auto run at startup and as a Module system.

    The application has a file listener that checks all new emails.

    When we start the application from the user interface by clicking on the application icon, it seems that the multiple instance of the application is created. For this reason when send us an email to request it is receiving emails several times. Sometimes simple, double and sometimes even five times.

    public class MyApplication  extends UiApplication implements FolderListener,
            SystemListener, GlobalEventListener {
    
        // Boot
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                // code to initialize the app
                fromService = false;
                // register the notification
                Notification n = new Notification();
                n.registerNotificationObjects();
    
                Utilities.writeLog(GUID, "MyApplication GUI Starting up");
                MyApplication service = new MyApplication();
                service.enterEventDispatcher();
            } else {
                Utilities.writeLog(GUID, "OnBoardV2 Service Starting up");
                MyApplication service = new MyApplication();
                service.enterEventDispatcher();
            }
        }
    
        public void messagesAdded(FolderEvent e) {
            /// Receive messages
            }   
    
    }
    

    In this regard, any help will be apreciated!

    Thank you

    I don't know if it's your entire code, but if you register your application as a file time listener never, it is called, then you save several headphones. The listener does not cause deleted your app closes, you must explicitly remove the listener. You must either put the listener in its own class and only sign up to start or find a way to check if the listener is already registered whenever the application is called.

  • Get the name of the Instance of the Application in an IOM PrePopulationAdapter

    We have at disposal of the IOM to multiple Active Directory domains. To do this, we installed a connector AD, Multiple Instances of the Application of several Instances of IT resources, while using one and the same resource object and form. Self-service console we want to request an account (Instance of the Application) to a user, and we can choose AD1, AD2, and AD3. When we choose, lets say, AD3 do we want to pre-fill the field organization name (OU in AD) with a specific organizational unit in Active Directory corresponding to the Application Instance AD3. The problem is that in the PrepopulationAdapter we have not managed to identify the instance of the application of demand.

    Here's how to get the instance of the application of demand in an adapter to prepopulate:

    prepopulate (RequestData requestData) serializable public get {RequestServiceException}
    String response = "";
    RequestBeneficiaryEntity targetEntity = requestData.getBeneficiaries () .get (0) .getTargetEntities () .get (0);
    EntityType of OIMType = targetEntity.getRequestEntityType ();
    If (entityType! = OIMType.ApplicationInstance)
    Return ' ';

    try {}
    String entitySubType = targetEntity.getEntitySubType ();
    ApplicationInstance appInst is getAppService () .findApplicationInstanceByName (entitySubType);.

    .... Continue your own code

    getAppService is the ApplicationInstanceService API.

    -Kevin

  • IOM SysAdmin does not create an instance of the application

    Hey guys,.

    I created a connector ICF personalized according to the guide to the resources page for Oracle dev (icf-connector-development-1868156). I have completed the coding and have created the appropriate metadata integration via the Console Design and am stuck in one of the tasks that must be done through the Console of SysAdmin IOM. I managed to create both the resource and the instance of the application for my connector, but after that I saved the instance of the application, the user interface does not show the button to create a form - only inactive "Edit" and the "Refresh" button on the button which has no effect.

    If the user interface behaves as if a form has already been created, but no entry appears in the drop-down list of 'form '.

    I just finished this process several times before but I have never seen this behavior.

    Can you help me with this problem?

    The more in advance thank you!

    Best regards

    Hello

    I believe that similar kinds of problems with one user.

    Re: Not able to choose the form in the instance of the application

    Not sure if it has been resolved or not. You can also check with any other env as well?

    ~ J

  • IOM 11.1.2.2 - new instance of the application is not visible in the catalogue

    Hi all

    I installed the Oracle Fusion Middleware Identity Management 11g R2 Media Pack v8 - 11.1.2.2...  When I created the new instance of the application, I don't see this case in the catalog. I found a similar question in the Metalink (Doc ID 1624482.1), but a workaround described it does not work for me. Workaround does not work for me is: the value "Update Date" in 'Task catalog synchronization' last value and run the job again.

    In the version 11.1.2.1 it woks fine.

    Please, can someone help me solve this problem?

    Thank you.

    Milan

    Hi all

    my colleague and I, we found a solution.

    Looks like the Sun Java System Directory Connector is not supported in the version 11.1.2.2 IOM or the bug is there. I thing it's a bug! IOM 11.1.2.2 uses more SQL select / insert when catalog synchronization task.

    INSERT INTO CATALOG (CATALOG_ID, ENTITY_TYPE, CATEGORY, CATALOG_CREATEBY, CATALOG_UPDATEBY,

    ENTITY_KEY, ENTITY_NAME, ENTITY_DISPLAY_NAME, ENTITY_DESCRIPTION, PARENT_ENTITY_TYPE, PARENT_ENTITY_KEY, IS_DELETED,

    TAGS, CERTIFIABLE, ITEM_RISK, RISK_UPDATE_DATE)

    SELECT - CATALOG_SEQ. NEXTVAL,

    "ApplicationInstance', 'ApplicationInstance', 4, 4,

    APP_INSTANCE_KEY, APP_INSTANCE_NAME, APP_INSTANCE_DISPLAY_NAME, APP_INSTANCE_DESCRIPTION, nvl2(APP_INSTANCE_PARENT_KEY,'ApplicationInstance',null), APP_INSTANCE_PARENT_KEY, APP_INSTANCE_IS_SOFT_DELETE,

    APP_INSTANCE_NAME | ' ' || APP_INSTANCE_TYPE | ' ' || APP_INSTANCE_DISPLAY_NAME | ' ' || SVR. SVR_NAME | ' ' || OBJ. OBJ_NAME, 1, 3, sysdate

    OF APP_INSTANCE, OBJ, SVR

    WHERE THERE is NO 1 = 1-(SELECT 1 OF THE CATALOGUE WHERE ENTITY_TYPE = "ApplicationInstance" AND CATALOG. ENTITY_KEY = APP_INSTANCE. APP_INSTANCE_KEY)

    AND APP_INSTANCE. ITRESOURCE_KEY = SVR. SVR_KEY

    AND APP_INSTANCE. OBJECT_KEY = OBJ. OBJ_KEY AND OBJ. OBJ_TRUSTED_SOURCE = '0' AND APP_INSTANCE_KEY =: 1

    The problem is that the object (object type?) of the connector SJSD has the value OBJ_TRUSTED_SOURCE in the table OBJ is NULL but query catalog synchronization expected value 0 or 1.

    And the solution?

    The value of 0 OBJ_TRUSTED_SOURCE. Example: update obj_trusted_source set obj is '0' where obj_key = 5;.

    But we found that supported Oracle Internet Directory 11.1.1.6.0 multiple LDAP servers such as eDirectory or Oracle Directory Server Enterprise Edition. Then I abolished SJSD connector and its application instance and installed OID connector

  • Can I have a form only for all instances of the application of the same type? (OIM 11 G 2)

    Hi all

    I have dozens of instances of the application of the same type (DBUM connector) so I was used to specify the same shape and the same user object while creating instances of the application.

    Is it safe? Or is it better to create a new/different shape for each instance of the application?

    Many thanks and best regards.

    Even if this is the answer, I would say that Yes, always use the same form name in the instance of the application. Recently came across the issue in R2BP10 and R2PS1BP02, where there are several child forms an instance of the application if different names are used for the name of the form in the instance of the application, then the form does not display data in the user interface.

    -Marie

  • DELETING AN INSTANCE OF THE APPLICATION

    HI EXPERTS

    Instance of MY application is created using AD as the resource object and an instance of the Type Active Directory resource. For some users, the commissioning of this instance of the application is "in process" status. If I delete this app instance will this affect my ' * ACTUAL AD * "and my users who put it in service? If not... then how am I supposed to delete?
    I use 11g R2


    Thanks in advance

    No impact on the subject of resource and the resource. It will be as it is

  • How to programmatically get all instances of the application in the IOM?

    Hello experts,

    Is there a way I can get in a programmatic manner, all instances of the application?
    If so could you please give a code snippet?

    Best regards!

    Carol

    something like below

    import

    Import oracle.iam.provisioning.vo.ApplicationInstance;
    Import oracle.iam.platform.entitymgr.vo.SearchCriteria;
    Import oracle.iam.provisioning.api.ApplicationInstanceService;

    Code appInstance

    ApplicationInstanceService appInstanceService = (ApplicationInstanceService.class) Platform.getService;
    String appInstanceName = "appInstanceName;
    Criteria of SearchCriteria = new SearchCriteria (appInstanceName, "*", SearchCriteria.Operator.EQUAL);
    The list of results of ;
    results = new ArrayList ();
    results = appInstanceService.findApplicationInstance(Criteria,null);

    "Criteria such as ' *' for all the appinstance".
    String appInstanceName = "appInstanceName" / / it's to another ApplicationInstance.APPINST_NAME
    Criteria of SearchCriteria = new SearchCriteria (appInstanceName, "*", SearchCriteria.Operator.EQUAL);

    Pass NULL to ConfigParams

    you will find the appinstances all

    -nayan

  • Access to the second instance of the database on the same host (ORA-12514) problem

    Hello

    I had a database of what ICMDB installed on my machine. After that, I created a second instance of database (Service name: BI_APPS) using DBCA on the same machine. With the help of NETCA I also created a new OracleOraDb11g_home1TNSListenerBI_APPS_LISTENER listener on port 1522 on my machine. Then I configured this listener to listen to the connections to the service BI_APPS by adding the following to my tnsnames.ora:

    BI_APPS_LISTENER =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1522))

    Then I changed the port in my driveway tns to BI_APPS at 1522 as follows:

    BI_APPS =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1522))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = BI_APPS)

    )

    )

    I then restarted the following services:

    OracleOraDb11g_home1TNSListener

    OracleServiceBIAPPS

    OracleOraDb11g_home1TNSListenerBI_APPS_LISTENER

    After that, when I try to access my first ICMDB DB through Toad, the connection is successful. However, when I try to access the service BI_APPS I get the following error:

    ORA-12514: TNS:listener is not currently of service requested in connect descriptor.

    What I am doing wrong? Here are the contents of my files:


    ----------------------------------------------

    TNSNAMES. ORA


    tnsnames.ora # Network Configuration file: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    BI_APPS_LISTENER =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1522))

    BI_APPS =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1522))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = BI_APPS)

    )

    )

    LISTENER_ICMDB =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1521))

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    ICMDB =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = icmdb)

    )

    )

    -----------------------------------------------------------------------

    SQLNET. ORA

    sqlnet.ora # Network Configuration file: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora

    # Generated by Oracle configuration tools.

    # This file is actually generated by netca. But if customers can opt for

    # install 'Software Only', this file does not exist and without the native

    authentication #, they will not be able to connect to the database on NT.

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    ------------------------------------------------------------------------------------

    LISTENING PORT. ORA

    listener.ora # Network Configuration file: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora

    # Generated by Oracle configuration tools.

    BI_APPS_LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.109)(PORT = 1522))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1522))

    )

    )

    ADR_BASE_BI_APPS_LISTENER = D:\app\Oracle

    SID_LIST_BI_APPS_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = D:\app\Oracle\product\11.2.0\dbhome_1)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")

    )

    )

    ---------------------------------------------------------------------------------------------------

    Here's the lsnrctl status output

    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12 December 2013 16:17:01

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production

    Start date December 12, 2013 10:34:35

    Uptime 0 days 5 h 42 min 26 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora

    D:\app\oracle\diag\tnslsnr\ICMDEVDB\listener\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ICMDEVDB) (PORT = 1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.2.109) (PORT = 1521)))

    Summary of services...

    Service 'BIAPPSXDB' has 1 instance (s).

    'Biapps' instance, State LOAN, has 1 operation for this service...

    Service 'BI_APPS' has 1 instance (s).

    'Biapps' instance, State LOAN, has 1 operation for this service...

    Service 'icmdb' has 1 instance (s).

    'Icmdb' instance, State LOAN, has 1 operation for this service...

    Service 'icmdbXDB' has 1 instance (s).

    'Icmdb' instance, State LOAN, has 1 operation for this service...

    The command completed successfully

    OK I solved this.

    Apparently, the machine restart is necessary after the creation of the new instance. I have created a new instance, restarted Windows and Bingo!

  • Multiple Instances of the Application to access the same DAQ hardware

    I have a relatively simple application that reads from a device of data acquisition (OR-9205 connected to NI WLS-9163) wireless.  I would like to run multiple instances of the executable, but I get the error-201105 (resource reserved) as soon as the DAQmx task starts on the second instance.  Each instance tries to acquire different channels of the same DAQ hardware.  Is this a problem with the data acquisition device, or DAQmx in general?  Thank you.

    -Joe

    Hey Joe,

    Unfortunately, you can only one type of access channel with each program.  For example, you might HAVE a program access and another use AO, but you can't have two programs different AI the same access card.  It is common among all of the DAQ hardware to NEITHER.

  • Access to the instance of the Application Module to the users of servlet

    I have a servlet that is required to access the current users request module instance.

    I added the servlet to filter "adfBindings" to access links in the servlet.
    It works very well. I can access all the links in the servlet.
    The security context of the user is also available.
    But the servlet always creates a new instance of request for a user module.
    I tried several ways to access the module of the application.

    I need the servlet to access the actual instance.
    I tried to also pass the State "_adf.ctrl" for the servlet, but without success.

    Is there a way to access the current instance of request module in a servlet?

    Thanks for your help!

    Richard

    I use JDeveloper 11.1.1.3.0 (JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660)

    You can do it. The idea/solution is Jan Vervecken and works as far as I tested it.
    You need build a URL pointing to your servlet with a parameter to transfer the current DataControlFrame. In the servlet to read the parameter and uses it to obtain the current DataControlFrame.

    You can find the thread here what createRootApplicationModule() must be called from a servlet?
    with a sample application and the screen cast to show how it works

    Timo

  • How to avoid multiple instances of the application

    Hello

    I would like to know how I can to avoid multiple instances of my request, my application have an option to "invoke later" which will awaken the application after xx minutes but where the user clicks on the icon of the application, for example, a few seconds before he must wake up he will see 2 instances open my application.

    Currently, the work around I did is check at every opening, if there is already an open instance and if so to 'kill' later, but I would like to know if there is a more elegant way to do it.

    THX.

    You create a new ApplicationDescriptor - you say the BlackBerry OS that it is a new Application.

    If you use this method, and then the user clicks on the new icon, they will get also running two instances.  Here is a code that restarts the application 'running', that I think that it what you want.

    ApplicationDescriptor current = ApplicationDescriptor.currentApplicationDescriptor ();
    ApplicationManager.getApplicationManager (.scheduleApplication) (current, System.currentTimeMillis (+ 2001), true);
    System.Exit (0);

Maybe you are looking for

  • Satellite A200 - touchpad does not work properly

    Recently bought a computer laptop a200 toshbiba of second hand and the touch pad for the frist week or two worked very well.And then began to get hard to use, as lethargic, now it wont even move at all. I reformatted computer and who did not.So I thi

  • Soak the test?

    I read a lot in the news lately on this topic to come "soak the Test" and the rumors swirling around him that it may be Marshmallow: Is - this Marshmallow? How can I register for the test of impregnation? http://Phandroid.com/2015/12/11/droid-Turbo-s

  • Windows 7 does not have the activation key - has WORKED in THE PAST

    A year or two ago, I upgraded my computer from Vista to Windows 7. I bought Windows 7 Home Premium Upgrade online. The activation key worked exactly as it is supposed to. A few months back, I had a hard drive crash. I had to wipe the hard drive and r

  • BlackBerry Z10 Inside Secure NFC controller chip?

    Z10 and Q10 using fleas nfc inside to fix, like phones BB7?

  • Windows 7 will not activate (says invalid copy)

    I had some problems on my computer, such as files disappear and my wifi driver just disappear so I reinstalled windows, formatted my drive HARD and everything. From scratch, basically. When I go to activate windows 7, it won't let me. But, I did not