‎05-21-2009 02:20 AM
‎05-21-2009 07:09 AM
You could transform the VB exe into an ActiveX object (you will need to publish all calls that are made from and to your VB FP), which you then call from LV.
Felix
‎05-21-2009 07:16 AM
^ ^
Can you please explain me this in some more detail?
Thanks.
‎05-21-2009 07:19 AM
Not really, as I'm no VB programmer. But take a look in the ActiveX examples, how you would do the calls from LV.
As a note, this won't be a simple task, as you will need to rewrite the VB code to fit in. And then wrap it all inside LV.
Felix
‎05-21-2009 07:46 AM
Can we convert VB .exe assemblies to Activex objects?
‎05-22-2009 05:15 AM
maybe this will help
http://www.insteptech.com/techLibrary/vbClassic/vb6_active.htm
‎06-02-2009 01:54 PM
It has been quite a while since I did this but here goes. You can start a new VB project. You should see a window that allows you to select the type of project. Some of the choices are ActiveX, DLL, and others. I've worked with DLLs before but not with ActiveX components. After opening the new project, you can copy your code from its original project to the new one. You may have to make a few modifications. With a DLL, any functions defined in VB can be called from Labview. Compiling the VB code will produce a DLL file if you chose a DLL project. In Labview you can use the Call Library Node function and specify the DLL name and function name and parameters. If you want to display your VB forms, I think you would have to compile the code into an ActiveX com module instead of a DLL. I'm not sure how you would call the forms from Labview though. Like I said, its been a long time since I've done this. Maybe someone else could chime in.