LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a COM object that does not have a type library?

Hello,

I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.

Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?

In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
com server.

Any help is greatly appreciated.

73,
Timothy
0 Kudos
Message 1 of 4
(2,553 Views)
Timothy Toroni wrote:

> I've created a com server in python for which I do not have a type
> library. I am able to call functions for this application in Python,
> TCL, I'm sure VB, etc. without the type library.
>
> Must I have a type library registered to use this COM object with
> Labview? I was hoping I could simply supply the name to the refnum
> (or the GUID) then call functions by passings strings to the invoke
> node. This does not seem to be possible - am I missing something?
>
> In the event that I cannot use a com server without a type library.
> Any recommendataions on how to create one? I'm wondering if I can use
> the same GUID and create a shell in LabWindows which generates the
> IDL/TBD file I need for Labview to see my com ser
ver.

There was a discussion on LAVA about Python and LabVIEW with
a link to an example. I hope this helps:

http://forums.lavausergroup.org/index.php?showtopic=173

Michael Aivaliotis
http://mmwis.com
http://forums.lavausergroup.org
http://niweekblog.com


Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 2 of 4
(2,553 Views)
Thanks for the info, however their example is labview server and python client. I'm going the other way. It's good to know about LabPython though...

As of now, it seems to be there is no way to use a COM object without a type library from inside LabView.

73,
Timothy
0 Kudos
Message 3 of 4
(2,553 Views)
Timothy Toroni wrote:

> Thanks for the info, however their example is labview server and
> python client. I'm going the other way. It's good to know about
> LabPython though...
>
> As of now, it seems to be there is no way to use a COM object without
> a type library from inside LabView.

Yes that is true. LabVIEW needs that to configure the Property and
Methode Nodes correctly. Otherwise it would need to have a special
Property and Method Node with a configuration dialog similar to the Call
Library Node, but a LOT more complicated. Not sure many people could
make use of that, and it would be a very tiring experience trying to get
things setup in that way, by going through the edit, test, and crash
cycle over and over again.

Rolf Kalberm
atter
Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(2,553 Views)