LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication reading bytes

HI

 

 

I am transmitting 5 Analog channels on Com port of crio. On the receiver end, only sometimes my data gets corrupted. Can anybody tell me whats the problem.

 

Thanks

0 Kudos
Message 1 of 3
(2,582 Views)

 

 

Here is my updated VI.

0 Kudos
Message 2 of 3
(2,553 Views)

Without a more detailed description of the characteristics of your problem it's hard to say exactly especially with only the cRIO code available for perusal. 

 

If I were you I would look at the receiver side code, and be sure that a buffer overflow was not happening.  Your code appears to be sending a minimum of 142 bytes per second.  The unconstrained conversions of floating point to strings can get long.  After 10 seconds 1420+ bytes would have been transmitted.  If your receiver code is not emptying the buffer at the same rate (or higher) as the transmitter is filling it eventually the buffer will overflow and bytes will be lost corrupting your data.

 

I hope this helps.  It's the best I can do with the information you have shared so far.

 

Jason

Wire Warrior

Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!
Message 3 of 3
(2,532 Views)