07-16-2012 04:41 PM
Hey everyone, I have something I have been trying to figure out but cannot find a work around for it. I have a number (5) which I use initially for current iterations, then after some random time or iterations a new number comes in a replaces it (when case structure goes true) and continues to display once the structure goes back false. I am trying to avoid shift registers because the data is not dependant upon loop iterations. The VI I am working with is shown which uses arrays. Here, the selector always goes back to the inital number (5) after the case structure exectues, however I need it to store and display the value from the case structure (Result) once it goes true, and continue to use it at the on going iterations, even after the case structure goes false. I know this may seem trivial, but I am unsure how to store data in an array and use that rather than going back to the inital. Any suggestions would be good.
Solved! Go to Solution.
07-16-2012 04:43 PM - edited 07-16-2012 04:47 PM
Your solution is to use a shift register. Why do you want to avoid it?
Here is a typical piece of code that we use. Notice there are lots of shifts registers.
07-16-2012 04:45 PM
This is the ideal situation for a shift register. Why avoid it? Just wire the value straight through in the false case.
07-16-2012 07:29 PM
Thank you. For some reason I was under the impression that yuo can only have one shift register per loop (besides stacking teh left side). Thanks.