ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared data problem in state machine

I have a state machine with each state reading one byte from serial port. The bytes read in state 1, 2, 3, 4 combines an unsigned 32-bit number.

 

How to store the bytes read from different state and combine them together in the end, without having unwired tunnel problem?

 

Thanks,

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

Shift registers.

 

But why would you read one byte in each of 4 different states?  That's like reading a book a letter at a time.  I would read all 4 bytes in a single state.

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

Yes, I decided to read 4 bytes at a time instead. Thanks.

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