I'm trying to follow some LV design advice, but can't really get it to work properly.
I'm using the "State Diagram Editor" to create state machines. This gives a while loop with a Case inside. Variables are changed in some states and read in another.
The LV design advice seem to be that shift registers should be used to pass data through this state machine. As there are many variables I would then have to pack them into a cluster which is made into a strict typedef. Data can then be bundled and unbundled by name - so far so good.
Then occurs the problem that a variable is changing unexpectedly. I now have quite a few states where it may be changed - how do I find a listing of all these places without having to look through my entire code? (I also have old programs I edit that use a lot of stacked sequences, so it can really be a nightmare to find where the data is altered or used).
My solution to this is actually to use local variables - they are easy to get a listing of, and they don't have a wider namespace than my cluster in a shift register. But this is directly contrary to the LV lore.
Any comments?