LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Map Input Size

Solved!
Go to solution

Hi, I am wondering how I can reduce the Map input shown below. I can successfully increase the size of it but I cannot find the way of reducing its size (number of Rows and Columns) . Thanks in advance.

Download All
0 Kudos
Message 1 of 7
(3,141 Views)

Hi Roberto,

 

how I can reduce the Map input shown below.

Reduce in which way?

To show less elements on the frontpanel you can grab the array border and make the array indicator smaller. This only reduces the visible area of the array…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,133 Views)
Solution
Accepted by Robertocima

if i assume correctly you have a 2D-array-control, use a property node and set "NumCols" and "NumRows", that changes the displayed 2d-array

change-size.png


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 3 of 7
(3,129 Views)

hi, yes I tried that way but I want to reduce the actual area of the array. For example if the original array is 50x50 I would like it to be 40x40. If I do what you just said I will be able to see a smaller array but it is still 50x50.

0 Kudos
Message 4 of 7
(3,126 Views)

see the last frame of my snippet, the function's name is "Reshape Array"


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 5 of 7
(3,123 Views)
Solution
Accepted by Robertocima

Hi,

 

I would use ArraySubset to get a subset of the current array data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,103 Views)

gerdw is right, if you want to have like the "middle portion", the "reshape array" will not give you that


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 7 of 7
(3,100 Views)