View Single Post
  #4   Spotlight this post!  
Unread 27-01-2014, 21:24
sanelss sanelss is offline
Registered User
FRC #1658
 
Join Date: Dec 2012
Location: saint louis
Posts: 258
sanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to behold
Re: Getting Input from Serial Interface

there are a few ways to deal with serial data. You can read how many bytes were received(there is a vi to tell you this) but that doesn't necessarily mean you are grabbing a complete packet and that it's starting with a packet start.

Another way you can do it is to read a single byte at a time, store it in a buffer, and parse it for the structure of a packet then extract the data you are looking for.
Reply With Quote