LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree control - <Ensure visible> for children tags with same name

Hi,

 

I have tree control which is displaying the data from multiple MCU registers. Registers have children tags (register fields) and some of the children tags have duplicated names (shown below with red):

Selected.png

When reading the registers values I'm updating the whole table and I want to keep the selected row over the same item and also show it on the screen - in this case <Ensure Visible> is scrolling the tree to the desired tag.

Update.png

 And here is the problem - if I selected some of the children tags which doesn't have unique name (it's repeating several times in the table) and if the table was updated  - <Ensure Visible> is pushing the screen onto the first occurrence of this tag and not the tag I selected.

 

Any ideas how I can solve this problem will be appreciated. Thanks. 

 

0 Kudos
Message 1 of 2
(794 Views)

Just found a working solution - by using  <Top Left Visible Cell> the table correctly shows the desired row on top. Not sure if this is the best solution

 

Working.png

Any ideas for improvements are welcomed. 

 

0 Kudos
Message 2 of 2
(787 Views)