LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel table index

1. Place a table on the front panel with some data in it (2x2 table is fine).
2. Right click on the table and choose Visible Items>>Index Display
3. Then type numbers in the indices.  The table will scroll as if the top index controlled the column, and the bottom index controlled the row.
 
This is opposite of all the other indexed controls (that I know of).  Normally the top index corresponds to the row, and the bottom index corresponds to the column. Is this a feature or a known bug?
 
I've checked this behavior in LV 5.1, 6.1, 7.0, 8.0, 8.20, and 8.21 with the same results.
 
Brent
0 Kudos
Message 1 of 6
(3,147 Views)

My guess would be that this is an oversight which no one noticed because using the index display to control the table is rare. I didn't even know it had an index display.

Another option I can think of is that this was done to maintain compatibility to the dialog table, but that would seem more unlikely.


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,128 Views)
Actually, there is a good reason for the difference in the index display from LabVIEW arrays. Take a look at this knowledgebase which discusses the reasoning. Thanks!

Mike D.
National Instruments
Applications Engineer
Message 3 of 6
(3,117 Views)
Very interesting knowledgebase paper.  It basically says in Excel, columns come before rows so the table indexing is related to that.  So if you say  D8 , it means column D row 8.
 
However there is an exception to this.  If you turn on R1C1 reference style in Excel (Tools/Options/ General Tab), then rows come before column.  Thus D8 is now R8C4.  Rows listed before columns.
 
I wouldn't normally use R1C1 reference in the general Excel environment.  But in VB programming in macros, it would be much more common to refer to a particular cell in this way.
0 Kudos
Message 4 of 6
(3,111 Views)

Brent,

If this complicates your life you can always change the arrangement using the control editor.

See attached example (LV 8.2.1).

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 6
(3,099 Views)

Thanks everyone. Good information.

 

0 Kudos
Message 6 of 6
(3,091 Views)