Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Locking visible cells in data table

I have a program with several data tables of fixed size.  Each data table row corresponds to a boolean control to determine whether the data row is to be included in the current task.  The boolean controls are placed next to the table and aligned with each row.  If you are entering data in the last row of the table (or column) and press enter, the entire table shifts down a row, leaving an empty row at the bottom, and the boolean controls are no longer lined up.  When other users attempt to enter data and use the controls, this can result in major errors if the table is not aligned.

 

I have turned off the vertical and horizontal scroll bars and fixed the number of visible rows and columns and locked the table, but none of these options prevent the user from being able to shift the table view to unused rows or columns.  Please let me know if this can be locked.

0 Kudos
Message 1 of 5
(3,198 Views)

Hi,

 

Yes you can, see code below.

 

Regards,

 

Greg H.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,187 Views)

Hi, 

 

Sorry incorrect code.  I would use the set table size property nodes to just reset the size if it changes.  See attached code.

 

Regards,

 

Greg H.

Applications Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,184 Views)

That works while the vi is running, but is there a way to have it locked the same way before the vi is started?  All of the controls for my tables in my vi are set before starting running.

0 Kudos
Message 4 of 5
(3,180 Views)

Hi,

 

What you could do is just set that property node to run first and it will resize the table as soon as the program starts.

 

Regards,

 

Greg H.

Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,177 Views)