LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with autoindexing array of boolean indicators.

Solved!
Go to solution

@Seiryuu90 wrote:

Thank you for the information and your advice! But I'd like to learn a way for this particular block diagram (autoindexed array) to just read the value when the last boolean is true.


Your question is incomplete, because you don't define "what value". The last Boolean is available at a "last value" tunnel, so you can take that and do whatever you need to do with it right after the loop has completed (since it is the last value, the loop will of course stop right there, else it would not be the last, right?)

 

For example you could OR or AND it with some other scalar Boolean.

 

altenbach_0-1681227555785.png

 

Message 21 of 31
(836 Views)

What are you using here?

Screenshot (2).png

cause mine looks like this and doesn't do anything.0.png

It should be true after the 5 iterations but that "value out" switch does nothing and I can't use it.

Also, what if I wanted to just use the "live" value of the indicator while it is being processed inside the second loop?

0 Kudos
Message 22 of 31
(821 Views)

Well, you get the last reference out, so just read the value via another property node (yuk!).

 

You really (really!!!) need to start using data wires, not reference wires!

Message 23 of 31
(818 Views)

Oh! Didnt know that! 
Ok which do I use to read for property node?

Screenshot_2.png

0 Kudos
Message 24 of 31
(787 Views)
Solution
Accepted by Seiryuu90

"Value", but change to read.

 

As mentioned so many times, this is NOT the right way to do this!

Message 25 of 31
(782 Views)

How to get only LAST reference out?Screenshot_3.png

0 Kudos
Message 26 of 31
(764 Views)

You. Need. To. Listen. To. All. Of. Us. And. Drop. These. Seriously. (Seriously!!!). Bad. Coding. Habits. This. Is. Not. Scalable!

 

Really!

0 Kudos
Message 27 of 31
(754 Views)

@Seiryuu90 wrote:

How to get only LAST reference out?Screenshot_3.png


You are getting 'only the last ref out'. If you don't want to do the stuff in the loop, disable or put it in a case.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 28 of 31
(742 Views)

@Yamaeda wrote:
You are getting 'only the last ref out'. If you don't want to do the stuff in the loop, disable or put it in a case.

Getting the last value at the end of the loop was the "requirements", other things happen in the other iterations. I have given up of the "why???" long ago in this thread. It's like watching somebody using chopsticks to fold a shirt. 😮

0 Kudos
Message 29 of 31
(730 Views)

@altenbach wrote:

I have given up of the "why???" long ago in this thread. It's like watching somebody using chopsticks to fold a shirt. 😮

I honestly felt like we were being trolled. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 30 of 31
(725 Views)