LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus Unit32 starting address

Kevin,

 

No, I'm not getting consistent amounts of bytes. They vary from 0 to over a hundred.

 

Jose

0 Kudos
Message 11 of 12
(576 Views)

Hey Jose,

If you know how many bytes of data you are expecting to receive I would set up your code to wait (at least up to a certain timeout) until there are that many bytes at the port.  It seems like you may just not be waiting long enough after the write to perform your read. 

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 12 of 12
(569 Views)