LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can labview send data to visual c++ via windows event message ?

Hi.
I have lebview 7.0 and visual c++ 6.0.
The question is , like the titile, that can labview send data to visual c++ via windows event message ?
I know it can be done by activeX technologies but I'm looking for more simple way.
My Labview continously acquire data and program coded with visual c++ mean to recieve the data and handle it.
It have to be done real time ...
If the answer is NO, what is the simplest solution to that problem?

0 Kudos
Message 1 of 6
(3,272 Views)
Use PostMessage (WinAPI).
 
 
George Zou
George Zou
0 Kudos
Message 2 of 6
(3,258 Views)
Thanks for your reply zou.
But I'm not looking for the method to post event message from visual c++.
I'm looking for how to post message from labview which parameters can be set by users.
Any idea ?

메시지가 08-30-2005 09:18 PM에 ishraq에 의해 편집되었음

0 Kudos
Message 3 of 6
(3,253 Views)
LV can call external DLL functions by using the Call Library Function node. There is documentation about this in the LV bookshelf (Help>>Search the LabVIEW Bookshelf). If you want VIs which already do the dirty work, try searching for something called "LabVIEW toolbox", either on this site or on google. Another option for continuous communication is using TCP, which will probably be faster as a data type than the windows messaging (although that is just a guess). You can find some tutorials and examples about using TCP in LV on this site.

___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,242 Views)

hi there

you also could create a dll with LabVIEW that does the datatransfer with DataSocket or TCP and call that from your VC app. should be easier than writing the same code in VC.

best regards

chris 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 5 of 6
(3,240 Views)
Thank you all. It was very helpful. 🙂
0 Kudos
Message 6 of 6
(3,222 Views)