| Pirate programe |
11-02-2012 11:15 |
Re: Sending Data from Dashboard to Robot?
Quote:
Originally Posted by Greg McKaskle
(Post 1123986)
First off, that is quite the error message, but to answer the question.
It looks to me like the flatten and unflatten nodes do not match. You turned off the prepend size on one and left it unwired and on on the other. My suggestion would be to delete the False constant and leave it default. The case where you decide not to send size info is when it is a fixed amount in the protocol and the size is just extra overhead.
|
That actually worked! the Periodic Tasks VI is receiving the information.
Quote:
Originally Posted by Greg McKaskle
(Post 1123986)
Kinda like in the other threads about comms, rather than delay your read loop, you can just let the read control the speed of communications. If you aren't careful, your read gets a little behind and cannot catch up.
I can't see a delay in the write loop, but hopefully something throttles how often it sends data.
Greg McKaskle
|
I'm not sure, but it does seem like the UDP Read is slowing down the rest of the code (we're getting a whole lot of watchdog expirations and the Driver Station is acting pretty wonky, and it doesn't appear to be updating the Global variable I've wired it to.
Also, the UDP Read Vi is still receiving information when the code isn't running at all. WTF?
|