Pranav Sailesh Hi Pranav, great question! Functionally, local variables can pass data between states, however there are a ton of reasons why it's not a good idea, especially as your code expands and you get into parallel operations. See VI High 42 for more information on the race conditions that can result from using variables. Additionally, local variables use more memory. For those reasons, we standardize on the data cluster in a shift register.
can local variables be used to pass data between states??
Pranav Sailesh Hi Pranav, great question! Functionally, local variables can pass data between states, however there are a ton of reasons why it's not a good idea, especially as your code expands and you get into parallel operations. See VI High 42 for more information on the race conditions that can result from using variables. Additionally, local variables use more memory. For those reasons, we standardize on the data cluster in a shift register.