LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question, sorry...

What's the best way of passing data from an LabVIEW application to a (C++
written) Windows application. The LabVIEW app would be running in the
background with the C++ prog with focus in the foreground. (There is no need
for data to go back the way from the C++ app to LabVIEW).

Any advice or links would be appreciated.

Barry.
0 Kudos
Message 1 of 3
(2,348 Views)
Too vague a question. Is it a commercial C++ application or one you're
writing yourself? Is it an application that is to run continuously and
process messages from Labview as they become available, or something that
runs, gets all the data at the start and quits when it finishes?

Mr Fisto wrote in message
news:96bnf6$1t1$1@sun-cc204.lut.ac.uk...
> What's the best way of passing data from an LabVIEW application to a (C++
> written) Windows application. The LabVIEW app would be running in the
> background with the C++ prog with focus in the foreground. (There is no
need
> for data to go back the way from the C++ app to LabVIEW).
0 Kudos
Message 2 of 3
(2,348 Views)
I'm doing a similar thing right now. The best way I have come up with
is to set up a File Mapping Object that both programs can share. This
is basically a place in memory (that acts like a file) where both apps
can read from and write to. You can achieve this in LabVIEW by making
calls to Windows DLL's. Take a look at this site:

http://msdn.microsoft.com/library/psdk/winbase/filemap_61d3.htm

regards,
stephen

Mr Fisto wrote:
>
> What's the best way of passing data from an LabVIEW application to a (C++
> written) Windows application. The LabVIEW app would be running in the
> background with the C++ prog with focus in the foreground. (There is no need
> for data to go back the way from the C++ app to LabVIEW).
>
> Any advice or links would be appreciated.
>
>
Barry.
0 Kudos
Message 3 of 3
(2,348 Views)