View Single Post
  #8   Spotlight this post!  
Unread 09-11-2013, 09:21
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Post Re: Connecting to the robot - C#

I've got a small labview program writing a string to the stream and then on the client side (written in C#), when I read the stream every 20ms, it comes back jumbled after the first read.

For instance, if I wrote a string "a b c" to the stream, it would read like this for the first four iterations (each line is what is read at 20ms):

Quote:
"a b c"
" ca b"
"b ca "
"ca b "
As you can imagine, this is very annoying if I'm splitting up the string on the client side and using the three numbers for calculations.

Do I need to change the speed at which I'm reading the string or what's causing the inconsistency?
__________________
Per Audacia Ad Astra