View Single Post
  #4   Spotlight this post!  
Unread 10-07-2009, 23:24
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Monitering C++ Code With A LabVEIW Dashboard

its relatively simple... as long as you know how to broadcast UDP packets in c++ (shouldnt be too bad)

basically you create a data structure that holds the data you want to send over, then you typecast it into a character array ( senddata = (char *)data ) or something like that.

once its sent, you can build an identical data structure in labview (make sure you pack it correctly in c++), unflatten it from a string (see the documentation on that vi), and shazam you now have a data structure filled with data.

im sure there may also be libraries in c++ to do complete communications with labView, allowing real time updates too, but thats basically the reverse of the process described above.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
Reply With Quote