LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass data from Labview to Visual C++

Hi,
I'm currently using a DAQ card to aquire a streaming waveform. This is done with LabVIEW. However, I need to pass these acquired data to a C++ program.

I have been advised to use DataSockets for this purpose. I have succeeded in writing the data from LabVIEW into the DataSocket server, and the other way round. The problem is how can I get these data from server in my C++ program, or how can I write data into the server from C++.

For this matter, are there any other way of doing this procedure. Thanks
0 Kudos
Message 1 of 3
(2,895 Views)
As for "alternate solutions", you can try the following:

Create a dll using C++.
Open your LabView block diagram. Select "Advanced" inside the Functions Palette.
Drag the "Call Library Function Node" to the block diagram. Double-click it to open.
Select your dll in "Library Name or Path".
Choose the function name to which you want to pass or obtain a value.
Select or fill-in the "Calling Convention", "Parameter" and "Type".

Wire it up appropriately.

This way, you can call the C++ function directly from LabView.

-JLV-
0 Kudos
Message 2 of 3
(2,895 Views)
Surfer;

You can create a dll in LabVIEW that you can call from your C++ program. Read the following article for more information:

Building DLLs in LabVIEW 6.x or later

At the end of the article are links to other articles on how to call the LabVIEW dll.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 3 of 3
(2,895 Views)