LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using C++ in a CIN & outputting the results using an intensity graph

"As it stands, I have a program that creates 4 files of separate 41x41 matrices. I would like to put the C++ code into LabVIEW to illustrate real time effects using an intensity graph. How do I link my *.cpp file to the intensity graph?"
0 Kudos
Message 1 of 2
(2,167 Views)
> "As it stands, I have a program that creates 4 files of separate 41x41
> matrices. I would like to put the C++ code into LabVIEW to illustrate
> real time effects using an intensity graph. How do I link my *.cpp
> file to the intensity graph?"
>

I'm not sure what you mean by link. If the data is already written to
file, one option is to read it in using file I/O. I suspect what you
are looking for is a way to invoke the C++ code from LV. The most
obvious option is to build a DLL from the C++ code, if it isn't already,
and use the Call Library Function to call the DLL. You can pass a
pointer to the DLL and have it filled in. Other options are ActiveX,
TCP, building the DLL from LV, etc.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,167 Views)