LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial read byte order changing

Solved!
Go to solution

DPac,

 

How often does your application need a new value?  Are you trying to log data at 100Hz or are you updating a front panel indicator every half second?

0 Kudos
Message 11 of 13
(700 Views)

Hi DPac,

 

your device is sending 6 bytes per message. You're reading 1024 bytes from a full buffer, that is 170 messages and 4 bytes of a  message: atleast 2 bytes of a message are left in the buffer, thus giving the warning... Simple math, eh?

 

No, you don't need another VISA-Read. Simply do your reads and collect the read data. Then split the data as is given in your manual: data is synced by MSB set on first byte of message. This was mentioned earlier, you really should listen to what we're telling you...

 

Edited: See attachment for a rough sketch!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 13
(699 Views)

Cheers for your reply guys. I'll try that!

0 Kudos
Message 13 of 13
(675 Views)