LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX class not available

Solved!
Go to solution

Hi All,

 

I have a program, let's call it Application, that provides an OLE/COM server. I can access the respective method with a vbs script and it returns correct data.

 

However, when I try to use Automation Open in labview and try to assign an ActiveX class to the automation refnum, I don't find anything that looks like it was referring to the 'Application' in the list of ActiveX classes. Also browsing into the installation directory of the 'Application' doesn't provide a type library. Where else could I look?

 

Am I missing something?

 

Cheers

Edgar

0 Kudos
Message 1 of 7
(3,219 Views)

Hi Edgar,

 

the creator of this Application should provide you a tib-, olb, osx or dll-file that you can than can select as ActiveX Class within the "Automation Open.vi".

 

Compare following link:

 

How Can I Access an ActiveX Server in LabVIEW?

http://digital.ni.com/public.nsf/allkb/85C2A1BE2B3AC3C18625754B006C23F1?OpenDocument 

 

Also the ActiveX services should be registered on your OS, for this see following links:

 

How Do I Register or Unregister An ActiveX Control?

http://digital.ni.com/public.nsf/allkb/A7BCE80DF6B5D82B86257110005F7B53?OpenDocument

 

How Do I Register Type Libraries, ActiveX Controls, and ActiveX Servers?

http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A?OpenDocument

 

 

Also following link could be interesting for you:

 

Difference between LabVIEW ActiveX Object Versions

http://digital.ni.com/public.nsf/allkb/CF799BE635B6A26986256F03007BCA94?OpenDocument 

Kind regards
Tobias S.
0 Kudos
Message 2 of 7
(3,198 Views)

Hi TLB,

 

thanks for your response. Yes the problem appears to be that no type library is available and also registering the application's .exe file is no solution.

Obviously Visual Basic doesn't need a type library. The GetObject(,"Application.Document") is doing the job. I was wondering if Labview has a similar capability.

It will be impossible to get anything from the developer. Is it possible to somehow use a VB script in between?

 

Regards

Edgar

0 Kudos
Message 3 of 7
(3,195 Views)

Hi Edgar,

 

if you can work with this Application in VBS just by calling it as I understood your last post,

than it is already registered on yours OS and should be available within LabVIEW.

 

LabVIEW uses OS registries as the VBS does to locate the Sources of this Application.

 

Can you maybe describe which is this "Application"?

Or is it possible to provide this application to me, than I could do some tests for you!

 

Maybe your LabVIEW installation as a corruption and a reparation of it helps.

Kind regards
Tobias S.
0 Kudos
Message 4 of 7
(3,191 Views)

Hi Tobias,

 

you can find the program on http://www.coaa.co.uk/sondemonitor.htm They provide a 21 day test version. It is an application that reads digital data transmissions from weather ballon sondes from the soundcard. The direct download link is http://www.coaa.co.uk/sondemonitor6_1_6_6.exe

 

The vbs script (Sonde.txt, please change the extension into .vbs) is attached. The Sondemonitor program must be running and the vbs returns some data. It will probably look like

 

"0 0 0 0 0 1970-01-01 00:00:00UTC 0 0 0 undef 0"

 

because the program has no input in your case. In the real case it returns coordinates and some meteorological data.

My Labview installation is fairly fresh. The Sondemonitor program was installed after Labview was installed.

 

Thanks and kind regards

Edgar

0 Kudos
Message 5 of 7
(3,187 Views)

Hi Tobias,

 

did you find some time to try something?

 

Any help would be very much appreciated,

Edgar

0 Kudos
Message 6 of 7
(3,168 Views)
Solution
Accepted by topic author ejkaiser

 

In the meanwhile I received a type library from the software manaufacturer and this solved the issue.

0 Kudos
Message 7 of 7
(3,152 Views)