Connection Points using ActiveX in TestStand

Hi,
Had a query . Is is possible to register connections points using Test
Stand. I am having a COM Dll which incorporates Connection Point
Mechanism. I am able to use this using VC++ client. But not with Test
Stand Application.
Regards....

That should handled in code modules you write rather than purely in a sequence. Your connection point handlers could set TestStand globals, use TestStand synchronization objects (such as queues or notifications), write to files, set DLL globals, or use any of the dozens of other possible methods to communicate with TestStand sequences

Similar Messages

  • #include "%(Filename)_i.h" inserted into C++ source after adding connection points to ATL object using wizard.

    What is the subsitution for this appearant macro?  Solution will not build if removed.
    Using
    Adding Connection Points to an Object directions.

    Hi Shawn,
    Since you have posted this issue to the VC++ forum, I think you would get better support there:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/8494410e-9578-4b67-a08d-3380aac10fcf/include-filenameih-inserted-into-c-source-after-adding-connection-points-to-atl-object?forum=vcgeneral#503cbc06-40a2-4073-a56e-1b384b11b56e
    So I will move this thread to the Off-topic forum. Thanks for your understanding.
    Sincerely,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • Connecting guest to access points using wpa

    Hi all
    is it possible to get my wireless clients to connect without a wpa password, for guest logins ?

    Hi There
    how will my wireless connect when using webauth, does that mean the traffic is unencrypted ??
    will my pc automatically connect to the wireless when there is no auth set on the controller ?
    cheers
    Carl

  • How to control and display video from IP camera using ActiveX control over Internet.

    Hello,
    I need to control my IP cameras over the internet. I need to log into the cameras and then display the video.  There's an ActiveX control registered on the computer and works fine with IE to access and control the cameras. Controlling the cameras using IE works fairly well, but there are some quirks that I'd like to eliminate by using my own custom code.
    Has anyone created a vi that controls a Foscam FI8905W over the Internet? I’ve attempted, but I keep getting a catastrophic failure when I try to call ManagementConnect Method in the DVM_IPCam2 ActiveX Control Module V1.0. I'm not sure whether I need to establish an IP connection with the cameras first, or allow the ActiveX control to establish it for me.
    Some example code would be greatly appreciated. Running LabVIEW 2011 on a Win7 32bit.  Even some code used to control a similar device using ActiveX over Internet would be helpful.

    I have an example vi for interfacing to the foscam activex.
    I plan on using mouse click events within the activex window to trigger the PT function.
    I only have the basic up/down/right/left directions and not the down-right/down-left/up-right/up-left in the enum.  You can load the camera's web page and view the source to see the Java script code that uses the activex control.  There are definitions for the other directions.
    I had to mark the control as "Disabled" to keep click events from going to the activex control.  If I double click the control, it goes full screen.  If I then click on it to get out of full screen mode the video never returns or returns to the wrong spot in the VI.
    Attachments:
    Foscam Demo.vi ‏24 KB

  • How can I add excel pictures using activex

    I would like to be able to use activex to insert an image into an excel spreadsheet. I know how to read and write data, but the chart feature is too cunmbersome and when I updated excel to 2007 most of the calls stopped working. I see that there is a pictures property/method that lets me specify an image file, but I don't know which property/method(s) to call it from.

    2007 does take more time to draw the data on the chart. I am not having any problems with errors on the active X for 2007. I is much slower than 2003 I would agree. My IT group moved us to 2007 so I am stuck with it no matter how slow it is. I am trying to figure out how to get the help file back. I had these in 2003 myself. I know it has nothing to do with LabVIEW. It is an add in or some switch that you need to throw in excel to allow for this connection.
    Tim
    Johnson Controls
    Holland Michigan

  • OS 10.4.6. has broken dialup connectivity when using fast user switching

    I installed OS 10.4.6. It seems to have broken dialup connectivity when using fast user switching when switching from one user to the next.
    For dialup, it is extreamly annoying that I can not resume downloading a file from were it got cut off, but now, if another user wants to check their email, my download always gets broken and has to be restarted. Dialup is slow enough with out having to start from scratch even more frequently, now.
    Also, in earlier versions of 10.2 or 10.3 (I don't remember which), I was able to switch users and maintain listening to a single users' iTunes.
    I would like to be able to switch users and not lose either my dialup network connection or the primary users currently playing iTunes songs.
    Perhaps for iTunes, one should be able to chose to mute another users' instance of iTunes, if it is currently playing.
    Mini-Mac 1.42GHz 80GB BT/AE   Mac OS X (10.4.6)  

    I have not tried replicating this but might be able to provide some additional information.
    We use network login accounts on our desktop computers. Fast User switching deliberately will not work for multiple network login accounts. (Remember network login accounts normally also have an associated network home directory mounted via AFP.)
    Now a bit of background about volumes and mount points under Mac OS X. Under Mac OS X, any additional drive (or more accurately 'volume') is listed under the 'Volumes' folder, remember also that Mac OS X is a Unix operating system. So just as normal for Unix, the boot drive is '/' or the root level and Volumes is a folder in it. The underlying Mac OS X software automatically 'attaches' and additional volumes as sub-folders in the 'Volumes' folder (in Unix speak these are called 'Mount Points'), if you have an external hard-disc called 'Fred' then this would be represented by the following path
    /Volumes/Fred
    If you happen to have two volumes with the same name connected at the same time then while in the Finder they may show up with the same name, in Unix they would have different names automatically assigned to keep them separate like so
    /Volumes/Fred
    /Volumes/Fred 1
    Now getting back to the Fast User switching problem and AFP volumes, when you login to a File Server volume it also is automatically added to the Volumes folder, so if we have a File Server volume called 'Shared' it would look like
    /Volumes/Shared
    With Fast User switching potentially both user accounts could be accessing the same /Volumes/Shared which means both user accounts would be talking to the server via the same File Server login, hence the possibility for one of the Fast User accounts to be using the 'wrong' permissions.

  • Max. Number of connections in use Nokia N93

    Hi
    I am trying to connect to wireless router using WEP. I have configured the access point and when I try to connect with Opera Mobile 3.6 an error occurs:
    Max. Number of connections in use. Close na active connection first.
    Note that my phone is not woring in dual mobe but GSM only.
    When I try connecting with the Phone's browser:
    WLAN: Unable to connect. WLAN Network not found
    Lumia 920 OS version: 8.0.10521.155
    FW revision number: 3047.0000.1326.2002

    Every time you up-date the firmware, you get from your network opperator the settings for various access points (Internet, MMS, Vodafone Live, whatever....) This leads to duplicates (or even mode) access-points. Moreover, some of these access points are saved as "default" access point in various applications. This is where the mess starts.
    To clean-up the mess, you first have to REMOVE all duplicate access points and keep only one access point for each purpose: Internet connection, MMS, Live (if you are are on Vodafone), etc. After this, you will probably get messages from various applications to define a new default access point. And things will be sorted our automatically.
    Hope this helps, even though it might not be simple for some.
    2110i, 6150, 6210, 6310i, 6670, 9300, 9300i, E90, E72, HTC Touch Pro2, Samsung Galaxy S, Samsung Galaxy S II

  • How to create a table in MS Access from Labview using ActiveX?

    I want to transfer datas from Labview to Access using activeX method. My only problem is to find out how to create a new table (array) in Access from the Labview program.
    Remarks: I use Labview 6i and MS Access 2000.
    For the moment I can write and read datas of Access from Labview.
    If someone could help me... that would be grate!

    This is off the Microsoft MSDN site "creating an external table". I think you can drop the last step.:
    Open the database you want to create the table in. If it is the current database, use the CurrentDb function to return an object variable that represents the current database. If it isn�t the current database, use the OpenDatabase method to open the database you want.
    Use the CurrentDb function to create a Database object that points to the current database.
    Use the CreateTableDef method of the Database object to create a table definition for the Microsoft Access table.
    Use the CreateField method of the TableDef object to create one or more fields in the Microsoft Access table.
    Use the Append method of the Fields collection to add the new field or fields t
    o the Microsoft Access table.
    Use the Append method of the TableDefs collection to create the Microsoft Access table.
    Use the TransferDatabase method to create the external table in the specified folder.
    Use the Delete method of the TableDefs collection to delete the Microsoft Access table definition.

  • Using ActiveX in Oracle Forms6i

    Sir I have development an ActiveX in VB for urdu in oracle forms.
    The problems I am facing is that it is storing the input efficiently but
    when I Query the saved data it is not working,
    I got an Error that OLE Object not defined for the current record.
    It create the OLE object for a new record and take input & save it
    But as I assign the retrieved Data in Post Query, it give error object not
    defined.
    At the same time it display out when assign with when button pressed.
    the code that is working is for saving in the database is at save button (when
    button pressed)
    DECLARE
    VEN_IDp OLE2.OBJ_TYPE;
    VEN_NAMEp OLE2.OBJ_TYPE;
    ADD1p OLE2.OBJ_TYPE;
    CITYp OLE2.OBJ_TYPE;
    ZIPCODEp OLE2.OBJ_TYPE;
    STATEp OLE2.OBJ_TYPE;
    COUNTRYp OLE2.OBJ_TYPE;
    PHONE1p OLE2.OBJ_TYPE;
    PHONE2p OLE2.OBJ_TYPE;
    MOBILEp OLE2.OBJ_TYPE;
    FAXp OLE2.OBJ_TYPE;
    ECOMMENTSp OLE2.OBJ_TYPE;
    n1 NUMBER;
    V1 VARCHAR2(255);
    V2 VARCHAR2(255);
    V3 VARCHAR2(255);
    V4 VARCHAR2(255);
    V5 VARCHAR2(255);
    V6 VARCHAR2(255);
    V7 VARCHAR2(255);
    V8 VARCHAR2(255);
    V9 VARCHAR2(255);
    V10 VARCHAR2(255);
    V11 VARCHAR2(255);
    V12 VARCHAR2(255);
    BEGIN
    --creating pointers to the activeX's
    VEN_IDp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_IDU');
    VEN_NAMEp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_NAMEU');
    ADD1p := FORMS_OLE.GET_INTERFACE_POINTER('ADD1U');
    CITYp := FORMS_OLE.GET_INTERFACE_POINTER('CITYU');
    ZIPCODEp := FORMS_OLE.GET_INTERFACE_POINTER('ZIPCODEU');
    STATEp := FORMS_OLE.GET_INTERFACE_POINTER('STATEU');
    COUNTRYp := FORMS_OLE.GET_INTERFACE_POINTER('COUNTRYU');
    PHONE1p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE1U');
    PHONE2p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE2U');
    MOBILEp := FORMS_OLE.GET_INTERFACE_POINTER('MOBILEU');
    FAXp := FORMS_OLE.GET_INTERFACE_POINTER('FAXU');
    ECOMMENTSp := FORMS_OLE.GET_INTERFACE_POINTER('ECOMMENTSU');
    --getting new value returned by the ActiveX
    N1 :=Project1_UserControl1.getUrduText(VEN_IDp);
    V2 :=Project1_UserControl1.getUrduText(VEN_NAMEp);
    V3 :=Project1_UserControl1.getUrduText(ADD1p);
    V4 :=Project1_UserControl1.getUrduText(CITYp);
    V5 :=Project1_UserControl1.getUrduText(ZIPCODEp);
    V6 :=Project1_UserControl1.getUrduText(STATEp);
    V7 :=Project1_UserControl1.getUrduText(COUNTRYp);
    V8 :=Project1_UserControl1.getUrduText(PHONE1p);
    V9 :=Project1_UserControl1.getUrduText(PHONE2p);
    V10 :=Project1_UserControl1.getUrduText(MOBILEp);
    V11 :=Project1_UserControl1.getUrduText(FAXp);
    V12 :=Project1_UserControl1.getUrduText(ECOMMENTSp);
    assigning the value to database item for saving
    :VEN_ID := N1;
    :VEN_NAME :=V2;
    :ADD1 := V3;
    :CITY :=V4;
    :ZIPCODE :=V5;
    :STATE :=V6;
    :COUNTRY:=V7;
    :PHONE1 :=V8;
    :PHONE2 :=V9;
    :MOBILE :=V10;
    :FAX :=V11;
    :ECOMMENTS :=V12;
    END;
    -- It save the record successfully
    and the code not working at (post query OR timer expired created at post query)
    It query the data from database and display it in the textitem but I want to
    assign it to ActiveX for Urdu Display
    (the activeX display Urdu for assiged value in button pressed case)
    DECLARE
    VEN_IDp OLE2.OBJ_TYPE;
    VEN_NAMEp OLE2.OBJ_TYPE;
    ADD1p OLE2.OBJ_TYPE;
    CITYp OLE2.OBJ_TYPE;
    ZIPCODEp OLE2.OBJ_TYPE;
    STATEp OLE2.OBJ_TYPE;
    COUNTRYp OLE2.OBJ_TYPE;
    PHONE1p OLE2.OBJ_TYPE;
    PHONE2p OLE2.OBJ_TYPE;
    MOBILEp OLE2.OBJ_TYPE;
    FAXp OLE2.OBJ_TYPE;
    ECOMMENTSp OLE2.OBJ_TYPE;
    V1 VARCHAR2(255);
    V2 VARCHAR2(255);
    V3 VARCHAR2(255);
    V4 VARCHAR2(255);
    V5 VARCHAR2(255);
    V6 VARCHAR2(255);
    V7 VARCHAR2(255);
    V8 VARCHAR2(255);
    V9 VARCHAR2(255);
    V10 VARCHAR2(255);
    V11 VARCHAR2(255);
    V12 VARCHAR2(255);
    str1 VARCHAR2(255);
    str2 VARCHAR2(255);
    str3 VARCHAR2(255);
    str4 VARCHAR2(255);
    str5 VARCHAR2(255);
    str6 VARCHAR2(255);
    str7 VARCHAR2(255);
    str8 VARCHAR2(255);
    str9 VARCHAR2(255);
    str10 VARCHAR2(255);
    str11 VARCHAR2(255);
    str12 VARCHAR2(255);
    BEGIN
    SYNCHRONIZE;
    VEN_IDp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_IDU');
    VEN_NAMEp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_NAMEU');
    ADD1p := FORMS_OLE.GET_INTERFACE_POINTER('ADD1U');
    CITYp := FORMS_OLE.GET_INTERFACE_POINTER('CITYU');
    ZIPCODEp := FORMS_OLE.GET_INTERFACE_POINTER('ZIPCODEU');
    STATEp := FORMS_OLE.GET_INTERFACE_POINTER('STATEU');
    COUNTRYp := FORMS_OLE.GET_INTERFACE_POINTER('COUNTRYU');
    PHONE1p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE1U');
    PHONE2p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE2U');
    MOBILEp := FORMS_OLE.GET_INTERFACE_POINTER('MOBILEU');
    FAXp := FORMS_OLE.GET_INTERFACE_POINTER('FAXU');
    ECOMMENTSp := FORMS_OLE.GET_INTERFACE_POINTER('ECOMMENTSU');
    --function setUrduText(interface oleobj,text in out varchar2) Return varchar2
    This function Displays Urdu when value is assigned in when button pressed event
    str1 :=Project1_UserControl1.setUrduText(VEN_IDp,:VENDOR.VEN_ID);
    str2 :=Project1_UserControl1.setUrduText(VEN_NAMEp,:VENDOR.VEN_NAME);
    str3 :=Project1_UserControl1.setUrduText(ADD1p,:VENDOR.ADD1);
    str4 :=Project1_UserControl1.setUrduText(CITYp,:VENDOR.CITY);
    str5 :=Project1_UserControl1.setUrduText(ZIPCODEp,:VENDOR.ZIPCODE);
    str6 :=Project1_UserControl1.setUrduText(STATEp,:VENDOR.STATE);
    str7 :=Project1_UserControl1.setUrduText(COUNTRYp,:VENDOR.COUNTRY);
    str8 :=Project1_UserControl1.setUrduText(PHONE1p,:VENDOR.PHONE1);
    str9 :=Project1_UserControl1.setUrduText(PHONE2p,:VENDOR.PHONE2);
    str10 :=Project1_UserControl1.setUrduText(MOBILEp,:VENDOR.MOBILE);
    str11 :=Project1_UserControl1.setUrduText(FAXp,:VENDOR.FAX);
    str12 :=Project1_UserControl1.setUrduText
    END;
    I am not getting the point that why the Error OLE object not defined occur in
    display case where as in new record the object is activited on new record
    instane by itself but not in post query
    I am working on application of a library with Urdu data and at last step Iam
    facing the problem above PLs guide me
    Thanks in advance
    null

    Ignore my previous post. I misread the question.
    There is no support for using ActiveX in JDeveloper. What you would need to do is to wrap your activex in a Java class and then you'd be able to use that java class in your project. There may be some facilities available somewhere on the internet that would help you doing that. I just don't know of any.
    Regards,
    Michel

  • When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.

    When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901

    Hi Everyone,
    I have a program that sends information(analog output) to lab windows cvi in the form of a text file or user input.
    The program runs on the computers that I have the field point explorer and lab windows cvi installed on. In order to run the program without always installing labwindows/cvi and field point; I wanted to create an executable file that could be load on another computer.
    I used the create distribution kit part of labwindows/cvi to do this.After creating the distribution kit, I then installed it
    to another computer.
    My user interface appears on the screen, when the user clicks on the exe. file, but no data is sent to the field point module. I know that the data is being read from the user and textfile because in it appears in the uir.
    The following are some details about the problem:
    1. On another computer without labwindows/cvi and field point explorer not installed - no data is sent to field point module
    I know this because a current is being read on the current meter connected to field point module.
    My questions are the following:
    1. What are the possible reasons for the data not being sent to the field point module?
    2. Do I still need to create an iak. (Installing Field point Explorer) file stored on any new computer that I install my created distribution kit file too?
    Thankyou very much for any help that you can provide. I greatly appreciate it.
    Faen9901

    Re: Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901Faen9901,
    1) If you do not install FieldPoint Explorer, the FieldPoint Server is not installed so there is nothing on the target computer that knows how to talk to the FieldPoint system.
    2) Yes, you need an IAK file on the target computer. Assuming the settings (i.e. com port#) are identical you can simply include the iak file as part of the distribution.
    3) You also need to include as part of your installer the file "fplwmgr.dll". If this file is not installed, your program will not be able to access the FieldPoint Server. Alternatively, this file is installed automatically if FieldPoint Explorer detects LabWindows/CVI or Measurement Studio Development versions on the target computer or if you choose to do a custom FieldPoint Explorer installation and
    choose to provide LabWindows/CVI support.
    Regards,
    Aaron

  • Use VI already running using ActiveX

      Is there a way to make it fail if it doesn't find a VI-a already running?  Any ideas on why it's opening a new VI instead of reusing the one in memory.  Is there a setting somewhere that would explain why this happens on the test machine and not my development machine.
      I'm currently trying to control a VI from c++ using the ActiveX server on the VI in LabVIEW 9, I'm building the application using MS VC++ express 2010.  This VI(lets call it VI-a is invoke node to get and set data on another VI-b.  For testing I have a copy of VI-b that is gutted so it loads into memory but doesn't run, it connects to hardware I don't have in my development setup.
    #import "PATH\LaVIEW.tlb" 
    static LabVIEW::_ApplicationPtr         pLVApp = (LabVIEW::_ApplicationPtr)      NULL;
    static LabVIEW::VirtualInstrumentPtr    pVI    = (LabVIEW::VirtualInstrumentPtr) NULL; 
    void init_VI()
        //Multithreaded application
        CoInitializeEx(NULL, COINIT_MULTITHREADED); 
        pLVApp.CreateInstance("LabVIEW.Application"); 
        //Error checking not shown
        return; 
    void connect_to_fp()
        HRESULT            hr                      = S_OK;
        char                    password[60]    = "";
        VARIANT_BOOL  reserveForCall  = VARIANT_FALSE;
        long                    options             = 0x20;
        //Multithreaded application
        CoInitializeEx(NULL, COINIT_MULTITHREADED);  
        pVI.CreateInstance("LabVIEW.VirtualInstrument");
        pVI = pLVApp->GetVIReference(vi_path, LPCTSTR(password), reserveForCall, options); 
        //Error checking not shown
        hr = pVI->OpenFrontPanel(VARIANT_TRUE, LabVIEW::eVisible)
        return; 
    I wasn't able to try commenting out the CreateInstance call on the test machine.  However removing it has had no effect on my development machine.
    Details of my setup: 
      On my development machine I can run VI-a before starting the c++ application and it will connect and use the VI-a that is already running in memory or I can let the c++ application bring up VI-a.  When I was running a test recently when I would get the reference to VI-a it would open a new FP for VI-a (I'm assuming it started a new instance of VI-a) instead of using the one that was currently loaded and running, the VI-a also isn't running like it normally does.  The VI-a gets it's values from VI-b once at init but it never updates them again.  Also there is a switch on VI-a that controls a status indicator that doesn't update when the switch when it is toggled.  There is another indicator on a separate tab that shows how long a loop took to execute that is changing, which is why I believe it is at least partially running.
     My biggest issue is that I haven't been able to recreate this on my development machine.  Anytime I have VI-a open and running my c++ application reuses that one instead of trying to open a new one.  My connection code is pretty much strait out of the c++/ActiveX example from NI. 
    Thanks. 
    Solved!
    Go to Solution.

    I haven't found an answer to erroring out instead of creating a new instance but I did find a way to deal with the project issue.  If you create an instance, then open the project, then open the VI from the projects instance it will work.  New init_VI:
     void init_VI()
        //Multithreaded application
        CoInitializeEx(NULL, COINIT_MULTITHREADED); 
        pLVMainApp.CreateInstance("LabVIEW.Application"); 
       pLVPrj = pLVMainApp->OpenProject(PATH_TO_PROJECT); 
        pLVApp = pLVPrj->GetApplication();
        //Error checking not shown
        return; 

  • Maximum number of connection in use. Close an acti...

    When I am using nokia maps . A popup message comes in as (maximum number of connection in use . Close an active connection) and an option yes or no . When I press yes . The active connections are displayed there are only one active connections when it is disconnected . An another message comes in as connection needed to continue nokia maps . And when use no message popup again and again and I can't use maps .... I have formatted phone memory and memory card several times and I have updated phone program also . Can you please help me .
     i am using Nokia 5800xpressmusic . model-5800d-1.
                                                                             tankyou
    Solved!
    Go to Solution.

    Hi virajkumar
    Please bear in mind two processes involved here, OVI Maps application which may either be "Online" or "Offline" (spanner icon > Internet > Connection) and Assisted GPS feature utilizing a network access point (Menu > Applications > Location > Positioning > Positioning server > Access point). 
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • IO operations using ActiveX with Windows 8 64bit and IE 11 not working

    We are using ActiveX for downloading file from the server, It works well with Windows 7 and XP but there is issue with Windows 8 and IE 11.It doesn't give any error for downloading files using ActiveX but file not downloaded and even does not generate log
    file for the issues and error.
    We are confused because it doesn't throw any error while log generation or downloading file
    Is there any limitation for ActiveX with Windows 8 for IO operations.
    We are stuck at this point. please help
    Thanks

    Hi,
    check Tools>Manage Addons>Show all addons
    find your activeX control in the list, make sure it is enabled and supports both x86 and x64.
    also
    Internet Options>Security tab, click "Reset all zones to default"
    file>Properties menu to find out which IE Security zone your web page with the activeX maps to.
    Regards.
    Rob^_^

Maybe you are looking for

  • Question related to the use of multiple EVDRE's in one sheet

    I am trying to create an input schedule/report (input schedule that has history attached to it for users to reference) which would allow users to input their sales forecasts directly into BPC. However, our challenge is that we have roughly 5,000+ ite

  • Has anyone used switch control and siri at the same time?

    Has anyone used accessibility switch control and siri at the same time?

  • 5 system landscape

    Dear all we are palning to impliment 5 system landscape during the core project implimentation. we have 3 system landscape running on ECC 6.0 with FI, MAM,MSD modules. Now we would like to impliment core modules with out disturbing current setup unti

  • Watch for " premium messaging service "

    I thought Verizon is serious company and would not allowed such companies like " premium messaging service "  to fraud their customers . They charged me $60 for four months After having a 5 hours phone conversation with Verizon's customer service and

  • IPhone and  Canon 1DS Mark III and Nikon D3

    Neither Apple's iPhoto or Aperture recognize the top of the line Canon Mark III 1DS, or the Nikon D3. I have tried to import RAW images from both cameras to no avail. What is the delay? Thanks, Norm