LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access value from inside while loop outside of the loop

for the first suggestion, I cannot  dequeue the whole 1D Array because I enqued it one by one.(And if I enqueue it as array I will get a cluster of arrays which will be hard to deal with).

 

For the second one I tried but cant get it to work yet.

 

the third one seems good, except how do I access the counter in the consumer loop? this is my main problem.

 

the counter in the producer loop is the output of a sub vi, and it goes froom 0-50 and resets.

If I just use a shift register in the consumrt and increment it each time it will not reset when it reaches 50 and keeps increasing.

 

Thanks!!

0 Kudos
Message 11 of 12
(567 Views)

 I cannot  dequeue the whole 1D Array because I enqued it one by one.(And if I enqueue it as array I will get a cluster of arrays which will be hard to deal with).

 

Work with Single Element Queue.  

 

For the second one I tried but cant get it to work yet.

 

Just Reshape your Array to desired dimensions. Where is the difficult here?

 

the third one seems good, except how do I access the counter in the consumer loop? this is my main problem.

 

the counter in the producer loop is the output of a sub vi, and it goes froom 0-50 and resets.

If I just use a shift register in the consumrt and increment it each time it will not reset when it reaches 50 and keeps increasing.

 


Assuming if ur array will "Not Stop"  after build 2D Array process. Here's simple counter logic with Shift Register: Eternal loop between 0 and 50.


 

 

 

0 Kudos
Message 12 of 12
(556 Views)