LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

implement visual basic Activex control in CVI

Hello

 

I have a ocx developed in Visual Basic 6.0 which I am now implementing in LabWindows CVI 8.5. this Ocx contains a user interface with command buttons and checkbox's which the operator uses in order to manually configure the instrument. Now I added some Public Functions in this ocx that can be called from LabWindows code in order to configure the instrument automatically.

the ocx works perfectly in LabWindows by using the command buttons but does not respond to any of the functions exposed by the function panel and even when shows me the functions correctly.

1.- Create Activex ocx in VB6.0
2.- Register the ocx (Run/regsvr32 C:\myActivex.ocx)
3.- Open Labwindows and select the Activex Object by menu Create\Activex
4.- insert the control ocx in to UIR
5.- Right Click mouse and select Generate Activex Control Driver and run the Windos wizard pop-up.

 

I'm doing something wrong?

 

0 Kudos
Message 1 of 2
(3,320 Views)

Hi Delt!

 

It seems you are doing everything all right. I would like to know what public functions are you trying to insert, it seems as if they are simply not beign recognized somehow. I would like you to post your ocx so i can test it myself and try to reproduce the issue and then solve it.

 

There is several information on the subject but it might be too much and thi seems like an specific issue.

 

http://forums.ni.com/ni/board/message?board.id=180&message.id=8299&requireLogin=False

 

Please post your code and ill make sure to check it.

 

Have a great day, thanks!

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