LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selection of data after initialization

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,303 Views)

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.

 

Shift Registers.PNG



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(2,300 Views)
Solution
Accepted by baseball07

This is the ideal situation for a shift register.  Why avoid it?  Just wire the value straight through in the false case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,296 Views)

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.

0 Kudos
Message 4 of 4
(2,282 Views)