01-28-2011 06:33 PM
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
01-31-2011 10:40 AM
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.
01-31-2011 11:27 AM
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
02-01-2011 10:03 AM
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.
02-01-2011 01:06 PM
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
02-02-2011 10:42 AM
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