Accessing COM servers. Possible?

Does LabVIEW provide a block or set of blocks for loading COM servers and calling methods in the COM server?
I'm writing the server code which LabVIEW will eventually need to interact with and I can either package my code as a COM server, or maybe in a DLL file? Does anyone have any advice or can anyone point me in the right direction where I can get information on how I can do either one?
Thanks in advance,
Arthur

Arthur,
If you do indeed have an ActiveX control, using the LV ActiveX interface is definately the best way to go.
If your COM component is just a normal COM component, and it has a type library associated with it, then you can also use .NET to create what is known as a COM Interop Assembly. You can then use LV's .NET pallete to access the functionality.
There are a lot of references to creating such an assembly, but basically you would need to download the .NET SDK and then use the tlbimp tool. You don't need Visual Studio or anything.
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrftypelibraryimportertlbimpexe.asp for info on the tool
See http://www.microsoft.com/downloads/details.aspx?familyid=9b3a2ca6-3647-4070-9f41-a333c6b9181d&displaylang=en for the SDK.
If you have a normal COM compoent and no type library, then things get much more difficult...
Let us know what you have got and if any of this helped.
Brian
National Instruments
Brian Tyler
http://detritus.blogs.com/lycangeek

Similar Messages

  • Is following message due to 'Java' setting left unchecked? Mac OSX supportsUser Authentication Mechanism (UAM) plug - ins from other manufacturers to control access to servers.To use a UAM, copy the plug - in to: Library/ Filesystems/ AppleShare/ Authenti

    Is following message due to 'Java' setting left unchecked?
    Mac OSX supportsUser Authentication Mechanism (UAM) plug - ins from other manufacturers to control access to servers.To use a UAM, copy the plug - in to: Library/ Filesystems/ AppleShare/ Authenti

    Man that is an ancient message.
    The last time I saw that was using Mac clients connected to a Microsoft (Windows) Server running 'Services for Macintosh' which included the ability to act as an AppleShare compatible file server. Because Microsoft have a different security system for defining accounts which includes the 'domain' as well as username, the standard Mac AFP client did not know how to send that information.
    Therefore Apple made it possible to installed a plugin in the form of a UAM or User Authentication Mechanism which added the ability to send this information to login to the fileserver.
    See http://support.microsoft.com/kb/101747
    However Microsoft have long discontinued 'Services for Macintosh' and now the only way for a Mac to connect to a standard Windows Server is via SMB not AFP. I don't believe this plugin is available to download anymore.

  • Access COM component in Java

    I am trying to access a COM component in Java. I want to bring up the Windows clock (which I understand is a component) and call it up from within my code. I just need it to appear - not do anything specific. I did post this question and one person said it was not something normally done in Java and that I should use a Java-COM bridge. While I am not opposed to that - I am trying to keep the solution within Java without using third party components if possible.
    I have got the impression from some things I've read in various forums and elsewhere that it is possible to do with JNI by using a wrapper written in C. Have I got that right? If so - how would I go about doing that? Could someone point me in the right direction of some examples that might be similar to what I'm trying to do?
    Any help would be appreciated....

    Regarding the reasons behind the clock:
    I am using a product (work-related) that has a java engine built into it to allow the user to manipulate columns of a database with built in functions written in Java. However, within this mini-development area you can also run regular java code.
    I will in the not-too-distant future need to access a COM component from a third party vendor that will allow me to do various data checks on data (i.e. post code verification) so I want to know how to access COM components generally as well. The idea behind accessing the windows clock (and by "accessing" I mean just throwing it up on the screen and not doing anything else) is that (a) it is an easily recognizable COM component in the windows environment and (b) it should then be fairly easy to translate what I have learned to allow me to integrate the other component. ( I hope! )
    I think for the time being I will look to the tutorial and see if I can get anywhere with that.
    Having explained a little further what I'm trying to do - any further suggestions on things to read or look at are welcome. And thanks to everyone who responded - this is new territory for me and I'm muddling through it as best I can. I do appreciate you all taking the time to help me.

  • Accessing Windows Servers Problem - HELP!

    Hi All,
    I regularly take my MacBook Pro into the office and did so yesterday and today.
    Yesterday I was able to connect to the office network without a hitch - today I am not. Nothing has changed on the office network whatsoever (I'm assured by our IT manager) and I haven't installed anything on my MacBook.
    The MacBook can see some printers on the network but not the main windows servers.
    Am at a loss, not sure what to try. I've entered network settings and the Mac is definitely connected to the network, just struggling to see any windows servers.
    IT manager mentioned that SMB might be the problem but I'm flummoxed as to how that can have occurred overnight with no input from me.
    Any suggestions or help greatly appreciated.

    Hi
    Clearly something major has happened? Either you're connected to the wrong network/subnet or something has definitely changed regarding the network you usually connect to where those servers are accessible.
    You have to verify whether (a) the IP Addresses for the Servers are what they should be (b) the subnet you're allowed to connect to is what it should be (c) your network settings are what they should be to access those servers.
    The fact you can't telnet on port 139 seems to indicate this as well as no response from ping. It's more than possible a policy has been implemented that has either made the VLAN or Firewall more severe than what it was before. The other possibility is you may or may not have (inadvertently?) configured the built-in Firewall to deny all incoming connections? Unlikely as you can receive emails so clearly you are accessing the network in some way? Possibly? You really need to get the Network guy involved somehow.
    Tony

  • Accessing a servers registry

    Is it possible for servlets to access a servers registry to see if a particular software is installed . Thank u

    If your servlet software is run under a user with persmission to do that, and you write a JNI wrapper to call the win functions with, and you know the registry keys you want to work with, yes.

  • Exception while accessing com port from servlet

    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown
    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)
    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    Hi there. I am also facing the problem accessing com port via servlet. if u have the solution, kindly forward to me at [email protected]
    many thanks

  • Error "cannot access com.sun.java..."

    edit i mistyped in the topic name, i mean to say "com.sun.j3d..."
    I've set myself up using JCreator, installed j3d, j2sdk, and jdk. Tried a few test programs to make sure everything was working (a basic hello world and my chess game i created my junior year in highschool). It was all running fine.
    So i started reading into j3d tutorials, and came across the HelloUniverse sample program. I slapped the code in and compiled it, only to be met with:
    "cannot access com.sun.j3d.utils.applet.MainFrame".
    I commented out the import line that included this, compiled, and it gave me another message complaining about the same thing, only this time ending in:
    "...geometry.ColorCube"
    Obviously, its just running down the line with all of the j3d imports, so i ran through and reinstalled all my j3d files; still didnt work. I can't figure out what's wrong with it. Please help.
    Message was edited by:
    philjoh

    May be, it is not getting the class it is pointing to, in your classpath. Have u put jaxrpc-ri.jar in your classpath, since this jar contains ur class?
    Regards,
    - Tinu

  • How to access COM+ Objects From JSP

    Friends,
    We have a requirement to access COM+ objects from JSP. Please guide me on this.
    Thanks in advance.
    Tarani

    Sanyam wrote:
    if there is any .dll extension file, how can we read that file in labview?
    You can use Call Library Function node to call that dll file and use it in LabVIEW. Read the help and you will get more details.

  • Error:cannot access com.bea.p13n.exceptions.ApplicationException

    hello,
    I wrote an Input Processor class(named HelloIP.java) which extends InputProcessorSupport class. My class has process method which throws ProcessingException. When I tried to compile the class, I got error:connot access com.bea.p13n.exceptions.ApplicationException. My classpath includes pipeline.jar and webflow_servlet.jar. Are there any other packages that I need to include into my classpath?
    Thanks a lot for your help.
    Penny

    Try adding p13n_system.jar. It contains the exception class you need and should
    be in the portal/lib directory.
    Penny <[email protected]> wrote:
    hello,
    I wrote an Input Processor class(named HelloIP.java) which extends InputProcessorSupport
    class. My class has process method which throws ProcessingException.
    When I tried to compile the class, I got error:connot access com.bea.p13n.exceptions.ApplicationException.
    My classpath includes pipeline.jar and webflow_servlet.jar. Are there
    any other packages that I need to include into my classpath?
    Thanks a lot for your help.
    Penny

  • Accessing COM interfaces in AIR

    Is there a way to access Windows COM interfaces through adobe air?  I'm working on an app where I need to be able to interact with another Windows program.  I want to use methods like WScript.CreateObject() in my code, and I can do this when I run the javascript files from the command line with WSH (i.e. cscript filename.js), but not through air.  The error I get  is "Can't find variable: WScript".  Is there any way to access COM interfaces, whether through WScript methods or something else?

    any idea how to do this in AIR 2?  Looking at the documentation, I see that you can run executable files using the NativeProcess class, so I guess could execute something like "cscript filename.js" and then "filename.js" could contain WScript methods.  But does anyone know of a way I can take advantage of COM interfaces more directly using AIR 2?

  • Adobe Plugin not able to access COM object in Protected mode

    We have an adobe plugin for our application. The plugin creates a toolbar button in Adobe and on clicking this button, it invokes one of the form from our application to save the document record for the PDF file in the database. The plugin was working fine till Adobe 9. It stopped working in Adobe X with proctected mode ON. However, if we turn off Protected mdoe, it works fine.
    I did some research and found that we need to modify the policy rules by creating ProtectedModeWhitelistConfig.txt file and appropriate registry for it. I did those steps and now I am not getting "Access denied" error when protected mode is ON but the plugin is still not working. On further debug, I found that it fails while trying to connect to SQL Server. It gives error "SSL Security Error". This is working perfectly fine without protected mode. Also It is not able to access COM objects. I guess both these things might be related.
    Can anyone let me know what are we missing here?

    I would recommend that open a formal support case, as working with Protected Mode is quite complex.

  • Accessing COM/ATL objects

    Hi,
    I need to access COM/ATL objects from a java application (to be run only on Windows), and I'm having a very difficult time finding how to do it.
    Can anyone offer any insight?
    Thanks

    urlhttp://jawinproject.sourceforge.net/jawin.html[/u
    rl]
    wow, that's a great tool, thanks for pointing it out.

  • I have the IPAD3 and have set uip to receive both personal and work emails - I want to password protect both so children cannot access - is this possible ?

    I have the IPAD3 and have set up to receive both personal and work emails - I want to password protect both so children cannot access - is this possible ?

    You can Password protect your iPad, but if you want your children to play games on your iPad, then one you unlock it, they have full access, there is not an option to password apps, such as the Mail app.

  • When i try to sincronized my ipod mini it comes: no possible unknown err

    when i try to sincronized my ipod mini, it comes: not possible unknown error (-50) ???? any help? thanks

    Hello Gonzalo,
    Are you using Windows XP?  If so, I would start with this Apple support document related to your issue. 
    iTunes displays -50 error message when syncing iPod on Windows XP
    It might not also hurt to try plugging the iPod into a different USB port as well as using a different cable.  A removal and re-installation of iTunes may also be in order.
    B-rock

  • Multiple network location servers possible?

    As we all know the network location server is an important part of any Direct Access deployment to ensure that DA clients can know whether they are connected directly to the internal LAN or connecting from external via DA.
    I have seen discussion about deploying the network location server (simple blank IIS/Apache web site) in an NLB  configuration but is there any way to have multiple network location servers for high availability reasons? During the DA configuration
    process you can only input a single dns record for the NLS so it does not appear possible. Has anyone found a way to do this?

    Hi,
    Yes it's a good practice to have NLB in high-availability. So a single FQDN with NLB or HLB as high-availability solution. Major problem is when DirectAccess clients connected on LAN cannot join the Network Location server. They consider they are connected
    on Internet not on LAN and try to activate DirectAccess. In such situation, If users can disable DirectAccess (so no force tunneling) they can solve the problem. Once NLS is back online, computer automatically change the firewall profile to domain.
    BenoitS - Simple by Design http://danstoncloud.com/blogs/simplebydesign/default.aspx

Maybe you are looking for

  • HT201209 Having trouble redeeming my free update for mountain lion OSX..... I entered the content code that was e-mailed to me

    Because I purchased my Macbook air after July 26, 2012 I qualify for the free Mountain lion update. However the content code that they e-mailed to me is coming invalid. Why? and what do I do now. i could buy it for 19.99 but kind of a ripto buy new a

  • Error in File 2 File in PI 7.1

    Hi all,              This is the error i got in smq2(inbound queue)...Apart from cache refresh problem does this signify any other error...Am not getting the output file... <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  XML Validati

  • Create Word Doc from list with multiple items (repeat region)

    I have a document library that creates an invoice document based on another list. The list has multiple items that where purchased and need to appear on the invoice. It is only showing the first purchase item and not the others. How do I get all the

  • Retain Songs After Computer Crash

    The windows PC that I sync my iPod to has crashed, along with the 20GB of song data I have ripped to it. I have the 40GB clickwheel iPod. The NTFS file system will not copy files, so I can't move the songs to an external drive. Is there a way for me

  • 'New Snapshot' only sometimes working CS6

    Hi There, I hope someone can help. I create s new snap shots and am able to work on them by using history brush. However, when I create the new one, suddenly I can't use history brush at all for that snap shot. When I tap on the image with the mouse