View Single Post
  #6   Spotlight this post!  
Unread 08-02-2012, 20:44
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Labview on PC -> C++ on cRIO

I'm just opening a TCP connection in the labview on port 1140, one of the open ones. I take all my values, TCP Write them, and then outside of the dashboard loop I close the TCP connection.

I'm using Java, so I can't exactly help you step by step through the cRIO side, but all you need to do is read from the TCP stream. Make sure to include some tokens in your output string in Labview so you can sort it out in the C++.

If anybody wants to look at my java or labview for the TCP send/recieve code, you can look at all of our Java on our github repository. I'm attaching my TCP loop that handles connection on the Dashboard side in the Labview as well. I can attach the transmitting part too but it gets kinda nasty with all my other blocks. It's my first time doing labview and things aren't always pretty.
Attached Images
File Type: bmp TCPLoop.bmp (652.1 KB, 90 views)