LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Activex Labview 2010 created executable vi

Hello All,

 

I am using LV2010 and Vision Tools 2010 Windows XP and have built an executable with activex enabled which works fine as an executable.  I would like to verify the activex functionality of my executable using LV2010. I have registered the .tlb file but I suspect that I am missing a few more pieces to make this work.  Please advise!

 

Cheers,

Karl

0 Kudos
Message 1 of 6
(2,794 Views)

Hi jkarl,

 

What are you trying to do?   Are you trying to use LabVIEW as an ActiveX server?   Do you get any errors?

 

Regards -- Starla T. 

0 Kudos
Message 2 of 6
(2,762 Views)

Hello Starla,

 

I would like to launch my executable and create a vi in labview to communicate with it, for example by creating a container on the front panel and selecting an object that is my activex executable.

 

Regards,

Karl

0 Kudos
Message 3 of 6
(2,753 Views)

Hi Karl,

 

Take a look at this KB.   It shows how to create a LabVIEW VI that is capable of being called by Visual Basic.   Once you've build executable following the instructions, you will be able to call the VI from Visual Basic and therefore be able to call the VI as an activeX object in LabVIEW.

 

Good Luck!

 

--Starla T.

0 Kudos
Message 4 of 6
(2,739 Views)

Hi Starla,

 

I tried all of that before posting without success so Itried it again once more without success.  I do not get any errors from the command line.  Do I need a .ocx file for my executable if I want to insert an object into a .net container LV?

 

Regards,

Karl

0 Kudos
Message 5 of 6
(2,725 Views)

Hi Karl,

 

You might have better luck using subpanels.   A subpanel will allow you to open a VI inside another VI and show and control that VI from the front panel.  This would be a cleaner approach to your application.   Here is some information on subpanels

 

--Starla

0 Kudos
Message 6 of 6
(2,708 Views)