LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

start external activeX (COM) server

I am trying to use an external application (123.exe) as ActiveX server using with the 'automation open' module. (Labview8.0)

Unfortunately the application is not directly in the list of library types.

 

The application is an executable and with VB the methods are working as expected.

I think that in the registry the settings are correct.

(My computer\HKEY_CLASSES_ROOT\CLSID\{ B3015EF4-39AB-11D5-B174-0060970DEA11}

 

A way to start the object in Visual basic:

Public Umap123 As Object

 

      Private Sub Form_Load()

      Set Umap123 = CreateObject("Micromap123.Instrument")

      End Sub

 

Is there any possibility of using this directly in Labview or should I write in VB or C++ a new .dll?

 

 

 

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

Hello,

Can you take a look at the following Knoledge Base to see if the metioned steps solve your issue?

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

Regards,

RikP - National Instruments Applications Engineering

 

Rik Prins, CLA, CLED
Software Development Engineer
Message 2 of 7
(3,984 Views)
Dear RikP and aother readers,
 
Yes, I tried those solutions as well but still no reference in the 'automation open'.
I'm not experienced with ActiveX but might it be something is missing in the executable or in the registry?
If the program works with VB or C++ should it alway's work with Labview as well?
 
Thanks in advance,
Erik
 
0 Kudos
Message 3 of 7
(3,976 Views)

Dear Erik,

Does LabVIEW accept the 123.exe when you browse to it from the Select Object from Type Library Dialog? Using browse, you should change the file type to all files.

Just to verify running 123.exe /Register was succesful?

You could try and first do 123.exe /Unregister and the register again it again with 123.exe /Register

Does the server show up in the VB COM list? this is basicly the same list that LabVIEW Shows.

Hope this Helps

Thanks

Karsten

0 Kudos
Message 4 of 7
(3,955 Views)

Dear Karsten,

I tried to link to the 123.exe with select object browsing. That one did not work.

In the VB COM list it does not show up after using the /register and /regserver arguments.

Maybe its something basic like a filename with only numbers.

Well, I will use a VB application in Laview to control the program.

Thanks for support.

 

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

Hi Erik,

could you solve the problem you describe above? I'm facing exactly the same problem now. Please give me some feedback.

 

Thanx

0 Kudos
Message 6 of 7
(3,691 Views)

Hello Michael,

Unfortunately I did not manage to get it running in Labview. With other programs like catman from HBM the trick with /regserver works well (see installation procedure below). I think the software was to old and these COM applications might not run in activeX.

Well, good luck with your problem.

 

To be able to use activeX catman server should be registered.
If not registered automatically run:
C:\program files\catman32\catman.exe /regserver
(registration only visible in Labview)
Open activeX reference : browse
HBM catman application version 44.0
catman._catInterface (catman.ACQInterface)

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