LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update table control

Hi,

 

a part of my program is a test executer (executes a text test script a user has written). The script is shown (line by line) in a table control and during execution the current line is supposed to be highlighted (background color is set to green for the row). This has worked fine upto LabView 8.2, but from LV 8.5 this feature stopped working. By changing the table from an indicator to a control and set KeyFocus to the table when updating to the new line, this made it worked if the window has focus, but it is still not working if the focus is on another window.

 

Anyone knows why/how the table control has changed its behavior and how to go around this? I don't want to force focus to the fp window.

 

/Henrik

0 Kudos
Message 1 of 9
(4,568 Views)

To clearify: it is when the number of the current row of the text script exceeds the the number of lines of the table, the table won't scroll if the window don't have focus.

 

/Henrik

0 Kudos
Message 2 of 9
(4,561 Views)
Which property were you using for the row selection? Did you also update the IndexVals property? Uploading a reduced version of your code would help.
Message 3 of 9
(4,543 Views)

I attach a VI that demonstrates the problem.

 

Using the IndexValues property causes the table to scroll at every row change, so the current row will then always be the first row, I want the table to scroll when the current row exceeds the last row visible on the table (as in the example VI, when the front panel is in focus).

 

Hope this explains a little more...

 

/Henrik

0 Kudos
Message 4 of 9
(4,527 Views)

Use the "index vals" property to set the desired scroll location. See attached quick modification.

 

 

Message 5 of 9
(4,522 Views)

I figured that out just after my last post and that did it. But thanks anyway...

 

/Henrik

0 Kudos
Message 6 of 9
(4,519 Views)

Hi,

 

I am importing a table of 'authorised users' from excel into a LV table. 

When a user inputs his ID he becomes booked 'out' or 'in' if authorised on the LABVIEW table

This booking in/out table then gets saved to a different excel spreadsheet

The problem I have is if one person 'A' books out followed by person 'B', person 'A' gets booked back in automatically.

 

Could anybody please assist? I can't seem to find any similar examples for guidance.

 

I have attached a copy of my attempts, if this help.  Thankyou 

 

My LV version is 8.5 

0 Kudos
Message 7 of 9
(4,271 Views)

If you replace the tunnel for your 1D array of 'OUT' with a shift register, it will store your changes.  I removed your file reading and writing, but you should get the idea.

 

Almost there.png

0 Kudos
Message 8 of 9
(4,252 Views)

Many thanks, that works a treat although now encountered  a smaller problem.  When booked 'IN', unless I stop the program  and re-start they can't be booked back 'OUT', although I am now looking into this!!

 

Once again thankyou for your help

0 Kudos
Message 9 of 9
(4,239 Views)