LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build an array dynamically based on content of another array?

Solved!
Go to solution

Hi everyone ,

Let's say i have a boolean array of 6 rows (Input array) . I want to dynamically build another array (output array) that contains the indecies of the zeros/Falses in the input array. I made a block diagram for you to understand what i mean.

hus_505_0-1584011829017.png

 

0 Kudos
Message 1 of 10
(2,514 Views)
Solution
Accepted by topic author hus_505

Capture.PNG

Certified LabVIEW Architect
0 Kudos
Message 2 of 10
(2,498 Views)

Thanks ! . The problem is , i am using an old LabView that doesnt have tunnel mode ? How would it be like without the tunnel mode ?

0 Kudos
Message 3 of 10
(2,488 Views)

I don't understand, where the output array is .

Also , what happens in the false case ?

0 Kudos
Message 5 of 10
(2,465 Views)
Solution
Accepted by topic author hus_505

@hus_505 wrote:

I don't understand, where the output array is .

Also , what happens in the false case ?


The shift register output is the output array.

 

In the false case, the array is wired form left to right.

 

Are you aware of the (free) courses?

0 Kudos
Message 6 of 10
(2,461 Views)

@hus_505 wrote:

I don't understand, where the output array is .

Also , what happens in the false case ?


I don't understand either, because the output does not contain any indices as requested: 😮

 

Here's the correct solution (not using a conditional tunnel, i.e. for ancient LabVIEW versions only).

 

altenbach_0-1584030710315.png

 

 

Message 7 of 10
(2,412 Views)

@altenbach wrote:

@hus_505 wrote:

I don't understand, where the output array is .

Also , what happens in the false case ?


I don't understand either, because the output does not contain any indices as requested: 😮

 

Here's the correct solution (not using a conditional tunnel, i.e. for ancient LabVIEW versions only).


🌴😐 (:palmface:)

 

Should have run it at least once.

0 Kudos
Message 8 of 10
(2,362 Views)

wiebe@CARYA wrote:
🌴😐 (:palmface:)

Should have run it at least once.


"Once" is statistically irrelevant. 😄

 

(What bothered me more about your snippet is that the integers are a much lighter blue. Why is that?)

0 Kudos
Message 9 of 10
(2,341 Views)

@altenbach wrote:

wiebe@CARYA wrote:
🌴😐 (:palmface:)

Should have run it at least once.


"Once" is statistically irrelevant. 😄


But inf times more then none 😊

 


@altenbach wrote:

(What bothered me more about your snippet is that the integers are a much lighter blue. Why is that?)


At some point I was curious what "ModernBD=True" did.

 

I didn't hate it so much that I turned it off, or maybe I figured it gave me a head start getting used to NXG look.

Message 10 of 10
(2,332 Views)