LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer data from c++ to labview and plot real time

Hi Guys,

I'm new to labview. I have been looking at the forum for similar questions, but couldn't find any. Could someone tell / hint me what the best way is for transporting data (An array of integers) from a C++ function and plot it real time? I mean, the data (array) within the C++ function changes about ten times a second. Should I open a UDP connection between my C++ and labview and transfer a whole array and update this 10 times a second? Is this the best way to do so? If so, could someone hint me on how to do this.


Thanks,

Teun van Berkel

0 Kudos
Message 1 of 2
(2,951 Views)

i've done some applications to transfer datas. 

there are some way:

1. socket.

some use the tcp or udp socket. one is server, others are client.

2. file read/write.

one writes into file, and the others keep read content. if new content comes, treat it.

...

In LabVIEW, you need to build a sub vi as a thread, which keeps to watch the socket or file.
 and use the queue or self-define event to notice the main treater.

hope it will help you.

帖子被longzhi在07-25-2007 02:03 AM时编辑过了

----------------------------------------------------------------------
Too much works make Longzhi a Tom.
Thanks god, the weekend is coming.
And my lovers are always here with me.
Anything better? ^_^
----------------------------------------------------------------------
0 Kudos
Message 2 of 2
(2,938 Views)