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: 

Last array element

Solved!
Go to solution

Hi

 

In run mod, when I add elements in array, I want to see the last element of array automatically.

How can I do this.(without using vertical scrollbar.)

0 Kudos
Message 1 of 5
(6,222 Views)

Set the Index Values property to a value such that you see the index you want.  If you have more than one visible element you'll probably need to use Number of Columns and Number of Rows and some math to figure out which index you want in the top left.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 2 of 5
(6,218 Views)

Check Delete from array, if index is unwired it's automatically the last element selected, and the output Deleted portion is thus the last element.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 5
(6,211 Views)
Solution
Accepted by topic author ömer

Untitled.png

In a thousand words or less.  You use property nodes to programatically access objects properties.

(Yes you have to run it twice to see the result I didn't set a default value)


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 5
(6,210 Views)

Tanks for your answer.

Your example was very illustrative for me.

 

My problem was solved.

 

Thanks.........

0 Kudos
Message 5 of 5
(6,156 Views)