LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help accessing labview 8.0 from C++/C

Hi there,
I was given a task of programming a C++/C program to access data output from labview directly for parallel processing on other computers but I don't know where to start as I don't know how to access labview from C++.
Any suggestion will be very helpful.
Thanks in advance,
0 Kudos
Message 1 of 6
(2,916 Views)
Not too difficult. You need to compile the LabVIEW VIs into a DLL, and then you can call that DLL from C. There's several examples that ship with LabVIEW and there's a section in the manual that discusses this.
0 Kudos
Message 2 of 6
(2,910 Views)
Thanks for your reply,
The problem is I need to run the .vi files on Labview while accessing data output from labview on parallelly from C. I am not sure if the dll method is possible or not.
0 Kudos
Message 3 of 6
(2,909 Views)
Bump
0 Kudos
Message 4 of 6
(2,899 Views)

LabVIEW has an ActiveX server that allows other applications to automate it. You can, for instance, open a reference to LabVIEW from a C++ environment that supports ActiveX, then open a reference to your VI, run it, and so on.

This is an example that does so in CVI, a C-based language geared for virtual instrumentation. You probably won't be able to use this code directly, but it might give you some ideas on how to start. Also, here's an example for VB that does something similar. If your C/C++ environment doesn't support being an ActiveX client, then you'll probably have to build and call LabVIEW DLLs that can act as the ActiveX client for you.


 
Jarrod S.
National Instruments
0 Kudos
Message 5 of 6
(2,890 Views)
Thanks for your help,
I will give it a try.
0 Kudos
Message 6 of 6
(2,886 Views)