How to connect to a COM application?

I am having some trouble talking to a COM application via LabVIEW. I use the "Automation Open" function to browse to the COM application file (.exe). When I run the VI, I get this error message; " Error 3005 occurred at Automation Open: Object specified is not creatable." 
I am using labview 2014 evaluation version. I would appreciate any help in this.

Are you talking about an application with a COM interface only or one with an ActiveX interface? ActiveX is build on COM but not the same as it defines several extra aspects of an object server such as a proper typelibrary and automation object factory.
If it is indeed an ActiveX application then it should contain an ActiveX typelibrary that will tell LabVIEW what is available and how to instantiate the objects and how to access the properties and invoke the methods for each object class. Alternatively the applicaton may use a seperate typelibrary file for whatever reason. In that case you should point the LabVIEW browser to that type library instead of the executable itself.
Anothere possibility is that the Automation interface of the application makes use of datatypes that LabVIEW does not support. For instance LabVIEW does not support Generics, so any object that uses generics for instantiation will simply be not available in LabVIEW.
Maybe you cn provide some more information to the application you try to interface to, and also about the type of objects you try to create.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • How to connect message server with application server?

    How to connect message server with application server?

    Hello  Damodar,
    The connection is established at the time of installation only !!. At the time of installation you need to specify the Central Instance(message server in most cases unless you have a dedicated message-enque server).
    Regards.
    Ruchit.

  • HOW TO: Connect web service (remote application module) to existing model

    Hello.
    I have J2EE application which displays some data in an applet, which reads them by a web service. I'd like to use persistence and connect with a web service called by applet to my current model set within a session. I tried to pass a session id to web service (to a function of an application module implementation). I wanted to create a new SessionCookie instance with such a session id and application id which are used for web application session (by ApplicationPoolImpl.createSessionCookie() or with custom session cookie factory). But I don't know how to pass a session and application ids to a sessioncookie creation process (ApplicationPool environment). I tried to use custom EnvInfoProvider, which set my properties, but it passes the params after a SessionCookie instance is created.
    Samples ... AppModuleServer - file generated to provide ws functionality. I changed code to use EnvInfoProvider:
    public class AppModuleServer extends Object{
      public AppModuleServer(){}
      public SomeObject[] myCustomFunction(String sessionId){
        AppModuleImpl _am = null;
        String appId="someValue";
        CustomEnvInfoProvider envProvider=new CustomEnvInfoProvider(appId, sessionId);
        try{
          _am=(AppModuleImpl)Configuration.createRootApplicationModule("data.AppModule", "AppModuleLocal", envProvider);
          return _am.myCustomFunction(sSessionId);
        finally{
          if (_am != null)Configuration.releaseRootApplicationModule(_am, false);
    }CustomEnvInfoProvider:
    public class CustomEnvInfoProvider implements EnvInfoProvider{
      private String applicationId;
      private String sessionId;
      public CustomEnvInfoProvider(String applicationId, String sessionId){
        this.applicationId=applicationId;
        this.sessionId=aessionId;
      public Object getInfo(String info, Object environment){
        if(info==null)return null;
        return ((Hashtable)environment).get(info);
      public void modifyInitialContext(Object environment){
        if(applicationId!=null)((Hashtable)environment).put("CookieApplicationId", applicationId);
        if(sessionId!=null)((Hashtable)environment).put("SessionId", sessionId);
      public int getNumOfRetries(){
        return 2;
    }Does anybody knows how to pass information from custom EnvInfoProvider just before a SessionCookie is created (e.g. how to run modifyInitialContext() function). Or another way how to pass these information from a web service base function into ApplicationPoolImpl instance. E.g., there is parameter "properties" whithin a createSessionCookie method of ApplicationPoolImpl, which is null during calling. Is it possible to pass there some additional information?
    Thanks for any suggestions.

    Use the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
    http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF

  • How to connect to Oracle "real application cluster" RAC?

    Hello,
    I don't know how the dbUrl-Parameter should look like to connect to an Oracle RAC.
    normally I use:
    jdbc:oracle:thin:@(Server):(port):(servicename)
    e.g.:
    jdbc:oracle:thin:@frxxx7....world.com:1521:kfics
    but what should I use if I want to connect to an RAC? In this case I don't have a single server?
    Thanks for your help.
    Regards.
    Matthias

    Hello again,
    I found out half of the solution.
    Normally you use a serverUrl like:
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=service)))
    normally you can also add other information like failover_mode etc.
    BUT: MII (12.0.6) only alows a string of 200 characters. Here is a part of the error-log:
    Exception of type com.sap.sql.log.OpenSQLException caught: Cannot assign a java.lang.String object of length 309 to host variable 3 which has JDBC type VARCHAR(200)..
    so if I have more than two servers or additionally information for failover_mode etc. I'm not able to use the oracle RAC, because the serverUrl is too long.
    Any suggestions?
    Regards
    Matthias

  • How to Connect Sun Java System Application Server to MySQL?

    Hi,
    I am new to the SJSAS and I want to use MySQL 5.0 as my database.
    I have searched the web for a step by step for configuring the two softwares
    but I did not find anything?
    Can someone help?
    Thanks

    Hi,
    You can refer SJSAS Developer, Administration guides for database access.
    Chapter 15 Using the JDBC API for Database Access
    http://docs.sun.com/app/docs/doc/819-3659/6n5s6m5bi?a=view
    To configure mysql :
    Configurations for Specific JDBC Drivers
    http://docs.sun.com/app/docs/doc/819-3658/6n5s5nklk?a=view
    Thanks,
    -Jagadish

  • How to connect oracle application server portal to MS access DataBase

    Hello,
    I am facing one problem here.
    Our client is having their database in MS access and they want to implement the oracle application server portal for their organization then how to connect the MS access DB to oracle Application server portal

    There is a worked example of how to connect oracle to an Excel spreadsheet, which is easily modifyable to read from an Access Database.
    http://asktom.oracle.com/pls/ask/f?p=4950:61:::::P61_ID:4406708207206#18830681837358
    I had some concurrency problems - only one person could use the link at any one time, so I used it to load the data into oracle tables.
    Tak

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • How to connect and query the sql database in mobile application

    Hello,
    Can any one say how to connect the sql database from the j2me application.
    I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
    Is it true? and can i have any sample codes or white paper or guildlines.
    It would be more useful form my project.
    Thanks in advance.
    regards,
    sara

    Hi David,
    According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
    In addition, there are the details about creating a Windows Phone app connected to your mobile service.
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to connect ms access in swing application  JDeveloper

    hi guys,
    How do I do to connect MSAccess database in a swing application in JDeveloper?

    Just wondering, you asked how to connect to MS Access from a swing app being developed on JDev...
    Are you using ADF ? Or just using JDev to develop a plain vanilla java swing app ?
    If not using ADF :
    You could try the JDBC ODBC bridge. http://download.oracle.com/javase/6/docs/technotes/guides/jdbc/bridge.html
    Might be better than half baked JDBC type 4 drivers for Access.
    If using ADF, I'm assuming you have an ADF model project and an ADF swing project. If you can manage to use the JDBC-ODBC bridge, you should be able to configure a DataSource for your model project as javax.sql.DataSource and javax.sql.ConnectionPoolDataSource are now supported though the bridge.
    Please keep in mind the warnings on http://download.oracle.com/javase/6/docs/technotes/guides/jdbc/bridge.html, especially the limited scalability and performance.

  • How can I create a mobile application to connect with my php system

    II have few question to ask all expert here :
    1. Im using Netbeans IDE, how can I compile the .java file to .jar ?
    2. Currently, I have created a point of sales application using php and I hope to create a Mobile application to connect with tis system. So, anyone can let me know what I need to start ?
    3. Im using postgresql database, anyone here know how to connect with mobile application?

    !. When you build java application in NetBeans (standard one) you just click 'Build' or 'Clean and Build' and your jar file is waiting for you inside 'dist' directory of your project
    2. Connecting MIDP application to the server running PHP scripts is not a problem, just connect using simple HTTP with GET or POST and you are done, google on it!
    3. You can connect to the database using some kind of PHP/JSP/ASP or whatever application you want and then using method from point 2 to send and retrive values, you can do it with web services as well, possibilities are endless
    Hope this helps!
    Kris

  • How  to communicate with a remote application that uses http post to request connection

    Ok, I will try to make this simple as to avoid any
    confusion.
    I am trying to receive connection requests from remote applications installed on user pc's.
    The application uses POST method to send the request to connect to my database, and if required update some tables.
    The application is not a webpage. I have no access to the internal workings of the application nor do I have any specific information about how it sends its POST. I am sure of the following:
    The app will POST to my .cfm page
    "IsConnectionAllowed" = "yes"
    This is asking my cfm page if its ok to connect. I would need to use a <cfif> to verify the the first part of the POST is in fact
    "IsConnectionAllowed" = "yes"
    If this returns true, (the app also uses to POST to pass "username" and "password") my .cfm page will then perform a query and check the username and password against the database. If a matching record is found, the application expects my page to reply with
    "#Answer# OK- connected;"
    Once the answer is given the application will then respond with data to insert or update my tables.
    Now, I know how to do the queries and update tables etc, but I have never received data from an application before.
    I tried using the <cfform> tag with a mehod of GET, and then trying to send my reply with <cfoutput>, but that didn't work. The application doesn't give any feedback or error messages. It either connects or not.
    I also tried the <cfhttp> tag, but that didnt work either. I am not very experinced with coldfusion. I used it years ago and am just getting back into it.
    I am sure this is a pretty easy thing to do, but my methods arent working.
    Using the above information, can somone please show me how I would accomplish this communication? I can then use the same method to retrieve the data for my table updates and queries.
    Here is a sample of what I have already tried:
    <cfform method="get">
    <cfif>
    "IsConnectionAllowed" = "yes"
    <!-- I need to query a username or password. But for testing I will just give the OK to connect -->
    <cfoutput>#Answer# Ok - connected;</cfoutput>
    <cfelse>
    <!-- When I query username and password, if the query returns no records I deny the connection -->
    <cfoutput>#Answer# Not connected;</cfoutput>
    </cfif>
    </cfform>
    BTW, I have examples of this being done using .php and .asp. I need to do this using .cfm. I can post the either the .php or.asp code if it will be helpful in converting the function into a .cfm page.

    Thanks Fernis.
    That code allowed me to connect!
    I have an error on the remote application, but I think thats due to the fact that I commented out the database connection and query strings. As I am mostly concerned with connection at this point, I just wanted to test that my cfm page will recognise the POST request and send the right answer, In this case
    ##Answer## Ok - connected;
    That worked perfectly and the application received the ok to connect.
    I can now use your code as a base to carry on with my database connection and update query.
    I can't thank you enough. I wouldnt have figured that out in a million years of trial and error.
    I knew it was simple though. I was over thinking it.
    I do have one last question though... In the code you presented you have
    <cfif structKeyExists(Form,"isConnectionAllowed") AND form.isConnectionAllowed EQ "yes">
    Can you you explain this    structKeyExists(Form,"isConnectionAllowed")
    I have never seen this before. Why the Form followed by a comma? I am guessing you are asking if there is an element in the POST called "isConnectionAllowed". Is that correct?  If so, do I not need to do that for each POST'ed element such as username, password, and each of the other fields that will be updated in the session?

  • How to Install VPN and how to connect client Application server

    Hi All,
    Could any one tell me. How to connect Client's Application server and How to Install VPN. Thanks in advance.......
    Thanks  & regards
    Vardhan

    where r u working?
    ask your help desk to give the URL link to down load vpn
    after downloading install it, its just like a wizard
    you need to give your userid and password , and secureid number
    secureid is a small device which displays a number(say a 6 digit number ) this number is keeps on changing for every one minitue.
    you need to enter the number which is displaing while you are trying to connect to vpn.
    in the middle of connecting to vpn if your secureid number changed , you need to login once again by the same procedure

  • My bluetooth seems to have stopped working in my car. Both phone and car audio says it is connected but nothing comes through car speaker.  I no longer have screen on iphone that says to choose audio source.  How do I get that screen back?

    My bluetooth seems to have stopped working in my car. Both phone and car audio says it is connected but nothing comes through car speaker.  I no longer have screen on iphone that says to choose audio source.  How do I get that screen back?

    Thanks, this was the clue I needed to figure it out.
    From Settings you can pull up Control Center.
    In Control Center you can enable "Access from within Apps" (also "Access from Lockscreen")
    Now when I'm playing music, I can swipe up from the bottom and a little control center window slides up. Neat - this is new since my old iPod. On this window, the name of the current Bluetooth connection appears. Tap on that, and a list of connected Bluetooth items appears. I just tap on the one I want to connect to and I am now playing through the speakers I want.
    Jimmy

  • I downloaded io6 for ipad and an icon saying i need to connect my itunes comes up; how do i get past this?

    i downloaded io6 for ipad and an icon saying i need to connect my itunes comes up; how do i get past this?

    After it restores it will walk through a setup.
    It will ask you if you want to setup as a new device, from an iCloud backup or from an iTunes backup. Choose iCloud backup and then it will ask you to sign in to your iCloud account. It will restore and reboot. The you will be good.
    http://support.apple.com/kb/ph12521
    Follow the steps for Set up a new device from an iCloud backup

  • How to connect Java Application to ORACLE8i over SSL connection

    Hi,
    I would like to know how to make an existent Java application connect to an ORACLE8i database over a secure SSL connection?
    can I user ResultSets?
    Could you please tell me what parameters to set on the database and, especially, what new code must be added for the Java Application so send data over an SSL connection.
    Your advice/hints will be greatly appreciated.
    Vani

    Use usual Oracle' encryption. SSL configuration is a nightmare.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Properties props = new Properties();
    try {
    props.put("user", "scott");
    props.put("password","tiger");
    props.put("oracle.net.encryption_client", "REQUIRED");
    props.put("oracle.net.encryption_server", "REQUIRED");
    props.put("oracle.net.encryption_types_client", "( RC4_56 )");
    props.put("oracle.net.encryption_types_server", "( RC4_56 )");
    props.put("oracle.net.crypto_checksum_client", "REQUIRED");
    props.put("oracle.net.crypto_checksum_server", "REQUIRED");
    props.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
    props.put("oracle.net.crypto_checksum_types_server", "( MD5 )");
    props.put("sqlnet.crypto_seed", "769764576979045769576907");
    } catch (Exception e) { e.printStackTrace(); }
    Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=orcl)(PORT =1521)))(SDU=32767)(CONNECT_DATA=(SERVICE_NAME=orcl)(SID=orcl))", props);
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
    while (rset.next ())
    System.out.println (rset.getString (1));
    rset.close();
    stmt.close();
    conn.close();

Maybe you are looking for

  • ACD 23" Alu not displaying out from a fresh boot

    my cheesegrater MacPro recently died on me so I've "relegated" the ACD to work with my rMBP through the thunderbolt port with an Apple minidisplay-DVI adaptor Magsafe adaptor is on so the rMBP is closed and used with an external keyboard/mouse Everyt

  • To open a tcode from query output ?

    Hi All, Is it possible to open a tcode if i click on a particular cell ? Regards, Deadlocks

  • Java regex for filenames or filetypes matching

    I am trying to write a java regular expression where my application should restrict the names of the files or filetypes mentioned in the regex from being attached to an email. I started the regex like this, .*\\.(?:jpeg|jpg)$ Is this correct?. Right

  • Slow render time in Premiere Pro CS4 (with fast computer?)

    Hello people on the Adobe Forums, I hope someone can help me with this question, it's been bothering me a long long time now and this week i have to make a decision, or fix the problem and keep this configuration, or spend money for a new cpu (i5 750

  • Sp43882 error message after upgrade to windows 7

    hello, i've just upgraded to windows 7 32 bit and installed the update  sp43882 on my pavilion dv4 1409tu. the problem now lies during the installation of the update,this error message appear '' error 1904.module c:\program files\digitalpersona\bin\D