LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call a sequence of VIs (not .exe)) in VB. only LV runtime engine Installed

I am try to reuse my labview vis in VB enviroment. I would like to call a sequecne of vi from VB just like in LV with Call By Reference. This is a production enviroment, only Labview runtime engine installed in the computer. I realize that I can call labview exe file from VB, but then I have to compile every vis (more than hundreds) and have to reference every vis servers in VB.
0 Kudos
Message 1 of 4
(2,743 Views)
Actually, the runtime engine can run any VI--not just ones built into an application. The problem will be getting data in and out of the functions.

If you have much of the code already written in LV why are you messing around with VB? Wouldn't the easiest solution be to write the entire application in LV? Just wondering.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,743 Views)
In order to call a VI from VB, and still pass and receive data, you will need to compile it in one way or another.

One option is to build an ActiveX Server from your application. If you have the Application Builder, look under the Application Settings tab. There is a checkbox for Enable ActiveX Server. Since VB is largely built upon ActiveX technology, this may fit a little better into your application.
J.R. Allen
0 Kudos
Message 3 of 4
(2,743 Views)
Besides the excellent answsers from Mike and JRA, instead of building an exe for each VI, create a single DLL where where each VI is a separate function that you can call.
Message 4 of 4
(2,743 Views)