LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

put visual basic program in labview

I wanted to use the resource in a visual basic program and put it into the
labview program. The problem is that the visual basic program is pretty
complicated to write. I really don't want to rewrite the whole program in
labview because it will take too much time. I was wondering if there is a way
to put the visual basic program in labview in a way that the VI work. Can make
a module out of the visual basic code so I can use the code in labview to reduce
my coding time?

Thank You
Peter
0 Kudos
Message 1 of 4
(3,063 Views)
If you can save your VB program (functions) as DLL's, that could be a good option for you. Here is a link with information about this feature in LabVIEW.

http://zone.ni.com/devzone/devzone.nsf/webcategories/E2A99E7E10D5725D862567AC004F0A53?opendocument

/Mikael
0 Kudos
Message 2 of 4
(3,063 Views)
It depends on the type of your application.
Anyway, you can choose from:
- ActiveX control made in VB
- LabView call for an executable file (your VB application)
- DLL made in VB (as previous answer states)

... if you have a GUI, the first two options are to be considered.

Hope this help ...
0 Kudos
Message 3 of 4
(3,063 Views)
Your suggestion is pretty interesting. I tried the dll method as the previous
post suggested but the visual basic code is not very well orgainzed hence call
one simplie function needs me to understand the whole code. This is because the
code doesn't have a very well orgainzed class. All it have its forms and
modules and they call each other around so it is a real pain to read it. Your
other methods
- ActiveX control made in VB
- LabView call for an executable file (your VB application)
seems reasonable because this program like most visual basic program have a very
extensive GUI built into it. I just needed to find a way to access the controls
during run time so I can change the values in the visual basic program eg.
change number and clicking buttons then I can
do automation testing. Can you
please give me some help on how to implement this with either activex or calling
an executable file.

Thanks
Peter


In article <506500000005000000C8390000-993342863000@exchange.ni.com>, Lab Viewer
says...
>
>It depends on the type of your application.
>Anyway, you can choose from:
>- ActiveX control made in VB
>- LabView call for an executable file (your VB application)
>- DLL made in VB (as previous answer states)
>
>.. if you have a GUI, the first two options are to be considered.
>
>Hope this help ...
0 Kudos
Message 4 of 4
(3,063 Views)