LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview activex server registration incomplete.

I made an ActiveX server using LabVIEW. The server should communicate with Excel. During installation of the server I register the server: "Server.exe /RegServer". When I try to call the server from Excel/VBA, it responds with "Run-time error '429': ActiveX component can't create object". The server is only recognized by Excel after I have started and stopped the server once.

When investigating the registry, it appears that the difference between registering with /RegServer and just starting and stopping the server are the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ServerName.Application
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ServerName.Application.6

To my opinion the /RegServer commandline option does not do the whole job.
Also /UnRegServer does not remove the above mentioned registry keys.

Is this a bug or just normal behaviour?
Has it been solved in newer LabVIEW versions (I use 6.0.2)?
0 Kudos
Message 1 of 2
(3,166 Views)

Hi,

I've tried to call a with LabVIEW 7.1.1 created activeX server. This works without any errors. I've attached my code. 

As for the register keys, this seems to be the default behaviour of ActiveX, each server has a key without version number e.g.
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ServerName.Application
And one or more with a version number:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ServerName.Application.6
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ServerName.Application.7

Kind regards,

Karsten
Applications Engineer
National Instruments

Message Edited by KvZ on 07-27-2005 02:37 PM

0 Kudos
Message 2 of 2
(3,137 Views)