|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#7
|
||||
|
||||
|
Re: recieve data from cRIO
Thanks, but i figured it out:
(in C#.net just to irritate you VB bigot) Code:
buffer= client.Receive...
string endresult = "";
foreach (byte databit in buffer)
{
endresult+=((buffer==0)?"":((char)databit).ToString());//I love () to make sure thigs execute as i want (as well as ; semicolins;)
}
textBox1.Text+="\n"+endresult;
?hs\0546d\0jos\0MYDATAHERE\0jsfjnn\0 and it cut off after the \0 (or null (buffer = 0) (Nothing for you VB bigot)) i just had to set a breakpoint, see the data, and realize what was happening (the string was being chopped up!); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data delay between Crio and DS | Tom Line | NI LabVIEW | 9 | 17-02-2009 08:40 |
| Capture Data from the cRio | goodsky | Programming | 2 | 13-01-2009 21:27 |
| Sending data from RC to OI | Nathan | Programming | 7 | 03-02-2008 22:32 |
| Did we recieve MS Front Page from FIRST | Mr.G | Website Design/Showcase | 2 | 28-01-2006 15:12 |
| Programming Vex Starter Kit To Recieve From Serial Port | firetrap | FIRST Tech Challenge | 0 | 26-09-2005 17:27 |