LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing LabVIEW 7 Express with VC

My colleague has developed a Data aquisation software using VC++. I am required to build the user interface for it. How is it possible to call VC exe using LabVIEW 7. How can I pass parameters between the two. Please give some suggestions.
0 Kudos
Message 1 of 4
(2,894 Views)
Hi,
First of all what type of interface are you looking for Your Exe, what i mean is does the user need to feed in some vaues at the command prompt or is it reading any file for getting values,so if you are clear with all this then you will be able to call the exe from LV using the system exex.vi, and pass the values from LV to VC
0 Kudos
Message 2 of 4
(2,894 Views)
Preeti_India wrote:

> My colleague has developed a Data aquisation software using VC++. I am
> required to build the user interface for it. How is it possible to
> call VC exe using LabVIEW 7. How can I pass parameters between the
> two. Please give some suggestions.

A better approach in many ways although more elaborate in the beginning
is to have the software being compiled as DLL and call it as such.

Or have an Active X interface added to the VC++ app (not something I
would recommend but your mileage may be different) and access it through
that.

System Exec.vi is fine to call external applications but passing
parameters back and forth does get a little cumbersome in this way.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 4
(2,894 Views)

I think the best way to do this will be through a DLL. That is the most effective and best documented route. There is a very good document called Using External Code in LabVIEW that answers lots of questions on DLLs and external code in general.

You can also go to http://www.ni.com/examples to look for some example DLLs and VIs to cal them.

I hope this helps.

Regards,

Juan Carlos
N.I.

0 Kudos
Message 4 of 4
(2,894 Views)