From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Divide 2d array row- wise and display frames

Solved!
Go to solution

Hello everybody,

 

For using in image construction, I need to divide a large 2D array into groups of rows and show one block at a time.

 

As an example;

In attached .vi, I get only the last 2 rows and can not see any intermediate step.

 

How can I display these steps?

Any other idea for dividing the array?

 

Thanks in advance,

 

Mittani

0 Kudos
Message 1 of 5
(3,317 Views)

I think you may want to wire your index and length to "i" not "N".  Doing this causes the length of the subarray to vary also.  

 

You do not need the sequence structure or the local variable.  Just use a wire.

 

Lynn

 

Divide Array.png

0 Kudos
Message 2 of 5
(3,313 Views)

 

How can I keep the size of the sub array constant?

The subarray should contain only two rows. In this case the subarray size increases and in the end becomes equal to the source array.

 

Regards,

 

Mittani

 

0 Kudos
Message 3 of 5
(3,302 Views)
Solution
Accepted by topic author Mittani HD

@Mittani HD wrote:

How can I keep the size of the sub array constant?


By wiring a constant to the size terminal, maybe? Seems obvious! 😄

 

Download All
Message 4 of 5
(3,296 Views)

 

Yes, you are is rigt:)

Thanks a lot.

0 Kudos
Message 5 of 5
(3,289 Views)