09-19-2008 08:22 AM
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
09-19-2008 08:48 AM
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
09-19-2008 09:59 AM
09-22-2008 02:17 AM
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
09-22-2008 02:42 AM
Use the "index vals" property to set the desired scroll location. See attached quick modification.
09-22-2008 02:47 AM
I figured that out just after my last post and that did it. But thanks anyway...
/Henrik
10-06-2009 03:16 PM
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
10-06-2009 03:49 PM
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.
10-06-2009 04:18 PM
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