Getting a VI reference from specific application instance via ActiveX

I have a DLL that a C program calls to pass data into my application.  For performance sake, we had to use ActiveX to get the data into my application.  I Open an ActiveX reference to my application and then open a VI reference to a Packet Stack and throw the data right into a queue.  If I am developing, I change an INI setting to use the LabVIEW ActiveX server.  This worked fine in 7.1 with the EXE and LabVIEW.
I recently upgraded the project to 8.5.  The EXE still works with no issues, but in LabVIEW, the DLL always opens up the VI in the Main Application Instance.  If I start my program in the Main Application Instance, then everything works fine.  The problem is if I launch my program froms its project.  Then my program is running in the My Application Instance, and when the DLL calls the Packet stack, the packets don't get put into the queues in My Application.
I saw this thread where Ben used VI server to find out what project a VI belonged to.  This started me looking into using a similar method, but it seems I have to traverse the entire project to get to the VI to open a reference to it.  What I would prefer to do is look in two places, Main Application and My Application for the VI and determine its run state.  I was hoping there was some way in the VI name for open VI reference that I can specify the instance.
Please note that I am using ActiveX, not TCP/IP VI Server, so I do not believe the method outlined here can be used.
Thank you for any assistance.

I think this should help. I have never used the ActiveX interface but this is what I think that you want.
Off course you need to translate this into C but that shouldn't be the problem
Ton
Message Edited by TonP on 02-18-2008 07:16 PM
Message Edited by TonP on 02-18-2008 07:16 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
GetVIFromActiveX1.png ‏5 KB

Similar Messages

  • Accessing a variable from different application instance in fmis

    Hello everyone i like to know how to declare a global variable in FMS, so that i can access it from different application instance of a same application.
    Thank.

    Hi,
    In such a use case you can use persistent shared object to keep track of all connected users and the instances they are connected to. then when a user connects in application.xml you can check whether that user name and password is valid for a instance. This doc should help you get this achieved http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d3 7a-7fff.html
    Thanks,
    Abhishek

  • Line Chart: It is possible to get the object reference from a flash chart

    Hi Folks,
    hope you feel well ...
    I wan't to get the Object Reference from a Chart Flash Object using javascript in the HTML Header of a Apex Page.
    It's long time ago with Oracle/Java and so my skills are really shity :-)
    The Functionbody works, but the following error occurs: chart.refresh is not a function
    It is necessary to CAST it ? with the Class AnyChart.js ?
    After 5 hours i give up ^^ is this kind of object handling possible ? THX4HELP@ll
    Apex Page HTML Header
    <script type="text/javascript">
    function hideSID2()
    var chart = document.getElementById("*c7067437546726610*");
    chart.refresh();
    </script>
    HTML File at runtime:
    <div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="1400"
    height="600"
    id="c7067437546726610"
    align="top"> ...

    If you are using adobe Flex Builder to develop SWF, please be sure using ExternalInterface class to expose the refresh() method.
    then you can should be able to call this method in Javascript.

  • Get all the objects from an application

    Hi
    Does anybody know how to get all the expression from an application via ABAP?
    Thanks !

    Try this:
    * Get the BRFplus factory and query.
      lo_factory = cl_fdt_factory=>get_instance( ).
      lo_query = lo_factory->get_query( ).
    * Get Application id.
      lo_query->get_ids(
        EXPORTING
          iv_name        = p_appln
          iv_object_type = if_fdt_constants=>gc_object_type_application
        IMPORTING
          ets_object_id  = lt_id_application ).
      READ TABLE lt_id_application INTO lv_id_application
                 INDEX 1.
    * Build selection.
      ls_selection-queryfield = if_fdt_admin_data_query=>gc_fn_application_id.
      ls_selection-sign   = 'I'.
      ls_selection-option = 'EQ'.
      ls_selection-low    = lv_id_application.
      INSERT ls_selection INTO TABLE lt_selection.
      ls_selection-queryfield = if_fdt_admin_data_query=>gc_fn_object_type.
      ls_selection-sign   = 'I'.
      ls_selection-option = 'EQ'.
      ls_selection-low    = if_fdt_constants=>gc_object_type_expression.
      INSERT ls_selection INTO TABLE lt_selection.
      ls_object_category_sel-customizing_objects = abap_true.
      ls_object_category_sel-masterdata_objects  = abap_true.
      ls_object_category_sel-system_objects      = abap_true.
    * Perform selection.
      lo_query->select_data(
        EXPORTING
          its_selection          = lt_selection
          is_object_category_sel = ls_object_category_sel
        IMPORTING
          eta_data               = lt_id_expression ).
    * Process the Expressions.
      LOOP AT lt_id_expression INTO lv_id_expression.
    *   Get Expression object.
        lo_expression = lo_factory->get_expression( lv_id_expression ).
    *   Check Expression is not deleted or obsolete.
        lo_expression->if_fdt_admin_data~get_change_info(
          IMPORTING
            ev_deleted           = lv_flg_deleted
            ev_marked_for_delete = lv_flg_marked_for_delete
            ev_obsolete          = lv_flg_obsolete ).
        IF lv_flg_deleted           EQ abap_true OR
           lv_flg_marked_for_delete EQ abap_true OR
           lv_flg_obsolete          EQ abap_true.
          CONTINUE.
        ENDIF.
    *   Process the Expression.
        lv_name_expression = lo_expression->if_fdt_admin_data~get_name( ).
        WRITE: / lv_id_expression, lv_name_expression.
      ENDLOOP.
    Regards,
    Grogan

  • How to get caller object reference from a method

    Hi,
    I am working a already existing Java Swing project, now I got a problem, in a method I need to get the caller object reference otherwise, I can't succeed this operation. So please tell me a way how to get the caller object reference from a method. that method would be static or regular method anything will do for me.
    Edited by: navaneeth.j on Jan 29, 2010 11:20 PM

    navaneeth.j wrote:
    Actually my doubt is, I have a method "addition" method, which is using by many classes so my requirement is in the addition method I want to write a code snippet which will identify and get the the caller object. Actually I tried Reflection.getcallerclass but there I am getting "CLASS" object not the actual object reference, but I want object reference.
    Actually we have a huge project which is writen plain JAVA, so in this project the authors written the Database connection package for single database transaction. so now we are using this project source code for JSF application in this web application the DB package has serve based on the dynamic db connection parameters, so if we want to change this package fully means need to solve the dependency problem in hundreds of classes, so my point is if I can access the caller object in the DB package when ever it gets called by any class from any where of the project. So actually I liked Reflection.getcallerclass, the way of implementation perfectly works for me but it is not giving caller object reference, if something gives the caller object then I can get the DB connection parameters then there is no need to pass the parameters in the hierarchy.You can add a parameter (of type Object) to your addition() method
    and everywhere you call the addition() method also pass this (which from the POW of the addition() method will be a reference to the calling class instance).
    There may be alternative solutions
    but none that require less effort.

  • Open a VI reference from an application

    Hello,
    I have a Main module.vi that is calling a Test module.vi by a reference. I use the open VI reference with a strictly typed VI and the Test module.vi is inside a llb.
    As VI the Main module is running without any problems. When I build an application of the Main module I get the error 1003 from the open VI reference.
    The path to the llb and the Test module.vi is correct.
    The idea of this function is that I don't must changing the Main module application in the future when it's running.
    The path to the llb is reading out of a config file by the Main module and it is calling the Test module inside the llb.
    When I have a new llb, I insert only the new name into the config file. The Main module reading out the new name, I can select it in the program and it will be calling by the Main module.
    I hope that anybody can help me with my problem or has an other solution for my idea.
    greetings
    Sascha

    Meanwhile I have found the problem.
    The problem was that inside the llb were not all neccessary VIs like VIs from the vi.lib.
    Now I build a source distribution with inclusion of all vi.lib, instr.lib and user.lib.
    Then I build again the llb and it's running wihtout any problems.
    greetings
    Sascha

  • On starting up firefox i am getting an error message from javascript application telling me that my username is an invalid username/password combination.If i continue to get this error message,try entering my email address as my username.

    Hi,on starting firefox which i have used solely as my browser for years i am now getting an error message from java script application that shows my username followed by a message saying; 'username'-Invalid username/password combination.If you keep getting this error,try entering your email address as your username'. I then press the OK button within that error message box and it dissapears and everything seems ok although hover my cursor over the mail(envelope) icon and it says not connected.
    I only started having this problem since downloading firefox 4.It also does not tell me where this problem is occuring so i do not know where to log on with this information.I would be most grateful for any help with this matter.Many thanks.

    Take a look in the Error Console for details about that.
    Tools > Error Console <br />
    Right-click the message and use '''Copy''' to get that complete message.

  • Opening a VI Reference from an Application

    I have a VI that calls "Open VI Reference".
    When I'm developing, its not a problem to generate the path, I just point at the path where the VI is located.
    When I build an application, what the heck is the path to the VI?

    LabVIEW can't figure magicallly which VIs you'll call dynamically to include them in the application. That is why you have to add them yourself as "Dynamic VI" in the application builder. It is a one time procedure and may be tedious at most but not painful...
    When you add a VI as Dynamic VI in the AB, the VI and its subVIs are included in the application internal LLB so you do not have to specify the subVIs in the list.
    Labviewguru suggested to include the dynamic VIs on the diagram of a loader VI (set as Dynamic VI in the AB). It is true that all subVIs will be automatically included but you will find the procedure as tedious as selecting them in the AB.
    About the Dynamic VI path in a built application, the good news is that you don't have to care
    at all. When opening a VI reference from a VI path, the server first looks in the application internal LLB (where are stored dynamic VIs) to search for a VI having the same name. If one is found, the actual path is ignored and the internal VI is opened. Thus you can leave the same path you used in LabVIEW development to build an application calling Dynamic VIs.
    Including a LLB as support file won't have any effect on the application. The LLB will simply be copied as is in the destination directory so unless you build dynamic VI paths to this exact location, the VIs won't be found.
    Error 7 means that the VI specified in the path was not found neither in memory, in the internal LLB nor at the actual path. Unless I'm mistaken it also occurs when you attempt to open the front panel of a VI which FP hasn't been saved. By default the AB do not save the FP of dynamic VIs, you have to change this setting manually when required.
    LabVIEW, C'est LabVIEW

  • Get the Cookie Value from Different Application Servers

    Hi All,
    I am using the two applications with different application servers. How to get the cookie values from one to another application. Shall i know any sample codes?
    Thanks
    Maalan

    A cookie carries a domain name. The browser will only return cookies whose domain matches to domain to which the request is made, however although you can use a partial domain name providing it's not too generic. So, when you add a cookie you need to explicitly set the domain name on the cookie to, for example, your company suffix like ".acme.com", then the cookie should be returned to all the servers under that domain e.g. server1.acme.com and server2.acme.com.

  • How to get xls report output from oracle application.

    Hi,
    Is it possible to get the report output in xls format.
    Please advise me if it is possible.
    Rgds,
    Naveen.

    One way is using XML Publisher,or alternatively you can check note 377424.1 from metalink : How To View / Open Concurrent Requests With The Excel Application
    HTH

  • Getting an Infocube name from Appset / Application ID

    Hi,
       I am working on BPC 7.0 NW version and trying to read infocube technical name from Appset id and application ID in the BADI. Can anyone help me on the same.
    Regards,
    meiy

    Hello,
    The best way to do this is to use the UJ class model.
    data:
        lo_model type ref to if_uj_model,
        lo_application type ref to if_uja_application_data,
        ls_app_info type uja_s_appl_info.
    cl_uj_model=>get_model( exporting i_appset_id = i_appset_id
                                               receiving ro_model = lo_model ).
    lo_application =  lo_model->get_appl_data( exporting i_application_id = i_appl_id ).
    call method lo_application->get_application_info
         exporting i_application_id = i_appl_id
         importing es_appl_info = ls_app_info.     
    Once you have ls_app_info simply reference the infocube property of that structure to determine the infocube name.
    Hope this helps.
    Cheers, Scott

  • Get a remote interface from a local instance

    hi,
    I want to construct a bean locally on a server and then I want to pass the remote interface for that constructed bean back to a client. Is this possible?
    Thanks

    Yes. Take a look at SessionContext class. You can't construct a bean yourself, as its life is managed by container.
         * Obtain an object that can be used to invoke the current bean through
         * the given business interface.
         * @param businessInterface One of the local business interfaces
         *        or remote business interfaces for this session bean.
         * @return The business object corresponding to the given business
         *         interface.
         * @exception IllegalStateException Thrown if this method is invoked
         *         with an invalid business interface for the current bean.
        <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException;

  • Exporting mail from specific subfolders only via powershell

    I am trying to create a powershell script to export mail from the specified subfolder of the inbox of an exchange 2010 mailbox to a PST.  For example, if Bobs mailbox has a folder in the inbox called salesinfo and this needs to be exported to a PST,
    but nothing else in the mailbox should be included, is there a way to do this in PowerSHell?
    I have tried new-exportrequest -mailbox bob -includefolders '#inbox#\\salesinfo' -filepath \\server\share\bob.pst
    and am getting nowhere fast.  this gets folder structure for somethings out but no mail.... exporting the whole mailbox or even the entire inbox is also no good...
    Does anyone know if there might be a way to do this?
    thanks much
    Derek
    Derek Schauland, MCSE, MCTS Active Directory | Microsoft MVP - File System Storage | Author - Training Guide Configuring Windows 8 MS Press | Technology Addict

    Hello Derek,
    There are parameters that you can use to export specific folders however these days Exchange forums are getting attacked by third party product person so having lack of quality :)
    You can use IncludeFolder or ExlcudeFolder switch to choose specific folder or exclude folders that you don't want...
    For example for default folder (you can use #defaultfoldername#)... 
    New-MailboxExportRequest -Mailbox Kweku -IncludeFolders "#Inbox#" -FilePath \\SERVER01\PSTFileShare\Kweku\LegalHold.pst
    If you want to include multiple folders then here is an example...
    New-MailboxExportRequest -Mailbox Kweku -IncludeFolders "#Contacts#","rootfoldername/subfoldername"  -FilePath \\SERVER01\PSTFileShare\Kweku\LegalHold.pst
    If you want to include all subfolder of a root folder then here is the switch...
    -IncludeFolders "rootfoldername/*"
    New-MailboxExportRequest - http://technet.microsoft.com/en-us/library/ff607299(v=exchg.141).aspx

  • Comedy channel etc - can I get it on Foxtel from Telstra OTHER THAN via Platinum?

    I wouldn't mind getting the Entertainment Plus pack to enable Comedy Channel etc. B ut on the webpage it seems that it is only available via Platinum package. NO WAY in the world do I want to pay $120/month for the privilege.

    https://www.telstra.com.au/content/dam/tcom/personal/help/pdf/cis-personal/tv/personal-critical-information-summary-foxtel-from-telstra.pdf
    Adding Entertainment Plus is an additional $10/mth
    "Then you can add any of the following packages for an extra $10 a month each: Entertainment Plus, Documentaries (Docos) or Kids"
    So just call up and ask for it to be added under Build Your Own. EDIT: The Doc is correct that if you are on an Entertainment bundle that only has Platinum as an included option then you can't downgrade the Foxtel portion and just add on Entertainment Plus channels.

  • Can i get access to the find command in Word via activeX?

    Does anyone know if it is possible to search through a word document using activeX commands from labview? Basically i need to use the "find" command from Word.
    Thanks for your help

    Excellent thanks a lot.
    I've now got the search function working but im having a little trouble getting the results i want. What do you mean by "new selection"? is this the output refnum from the execute node?
    Im looking to search through a word document for a certain paragraph number then highlight this paragraph in some way.
    At present i have used your method to find the section number and then used a frame property on the output refnum followed by select method cascaded from this. This has the effect of selecting the number causing the word window to jump to the desired point but only the first line of the paragraph is shown because it places the found text at the bottom of the screen.
    Do you have any suggestions as to how i could select the en
    tire paragraph? I also cannot get any output from the select method in this way, am i using it incorrectly?
    Thanks again for your time
    Alan

Maybe you are looking for

  • IPhone 6 voice memo won't work

    Hi, Just bought and sync'd my new iPhone 6 and everything has worked so far except my voice memo app. Two issues: 1) When I open the app all of my memos start loading, then the app closes on it's own. 2) When I reopen the app, voice memos are gone an

  • Self-assigned IP address problem - My solution

    I am new to this board and created an ID just to write this post. When I searched for this self-assigned IP problem, I found almost 1 million results on Google so obviously I am not alone. I have this problem off and on on the wireless network at hom

  • Can't install Eclipse Visual Editor

    I'm trying to install Eclipse VE 1.0M1, but I cannot download GEF Build I20040330, which is a prerequisit for VE1.0M1. Does a mirror exist for this file? Or is another version of GEF an ok substitute?

  • Java SDK BO 4.0 License

    Dear All, We are developing custom application using Java SDK of BO 4.0 . I would like to know  if our customer has to pay additional license for using Java SDK. They already have license for users. Additionaly we are using JCo (Java connector) , doe

  • Oracle9i and Tomcat 4.03

    dear all, currently, I've installed Oracle 9i and Tomcat4.03, as well as JSDK1.4.0. However, I've found that after installing Oracle 9i, Tomcat 4.03 (start.sh) seems couldn't run. Is Oracle 9i JVM has overwritten the existing JVM? On the other hands,