LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initilizing shift registers on a while loop that is within a while loop.

I attached a simplified version of my program with LabVIEW 8.2.  I am trying to build an array inside my inner while loop whenever the case is true and then use it elsewhere in my outer while loop.  I want to keep the array stored until a button is pushed to clear everything in the array and then be able to run the "test" again.  I need to have both while loops for my actual application.  I have tried using the first call function without much luck and also tried making a case structure in the inner while loop that reinitializes the array to zeros.  If you have any ideas please let me know.
 
Thanks,
Dave
0 Kudos
Message 1 of 2
(3,169 Views)

Hi Dave,

create another shift register on your outside loop and use a shift register. Connect an empty constant in the true case to the output. See the attached example.

Hope this helps.

Mike

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