LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I, from a c++ program, read variables from a running LV application?

I have a C++ program that I want to be able to read some messages from a running LabVIEW application. How do I go about to solve this problem?
0 Kudos
Message 1 of 3
(2,395 Views)
"Mr.Tor" wrote:

> I have a C++ program that I want to be able to read some messages from
> a running LabVIEW application. How do I go about to solve this
> problem?

The way I do this is using a local host ethernet socket. You have labview
program running a TCP/IP (or UDP) connection to your C++ program and visa
versa. Then you can send text based messages back and forth between them.

Jim
0 Kudos
Message 2 of 3
(2,395 Views)
Another option is to use ActiveX to read from the running LabVIEW application. The VI Server technology which LabVIEW uses is based upon ActiveX, so that is an option.

Here is an example program on NI's website which shows how to call LabVIEW code from C++. This should help to get you started.
J.R. Allen
Message 3 of 3
(2,395 Views)