LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table data justification

I just tested my VI with Courier and it actually doesn't work nearly as well as it does with normal Ap font.

Also, you can find your maximum field length by simply taking the string length of the cells and find the value of the larget one, and maybe add 1 or 2 for good measure.

Richard






0 Kudos
Message 11 of 15
(784 Views)
I'm back on this now.  I have to say, I am really surprised at NI for the lack of flexibility in the table design.  I know I'm using an older version of LV, but I am not using anything close to the 1st version.  Even when we bought V7.0, LV had been around quite a number of years.  Not only is centering the data in each cell cumbersome, but I haven't found a way to dynamically adjust the size of the table to accomidate different size headers.  That is, I want each column to resize horizontally to fix the text in the header.  I see an "autosizing row height" property, but no such property for the width.  When I attempt to so it manually, I run into trouble trying to resize the width of the entire table to match up with the sum of the widths of all the columns.
0 Kudos
Message 12 of 15
(752 Views)

I just checked on LabVIEW 7.1, and it does allow you to center text in a table. It seems if you bought 7.0 and had it for any length of time under maintenance, you would have gotten 7.1. You could probably get 7.1 very cheap, maybe eBay, or maybe NI.

 

Notwithstanding that idea, maybe it's time to consider a plain 2D string array? Can you center the text in it? If so use the 2D array for data and a 1D array located above it for the header. The caveat is, of course, that the "cells" will all be the same size.

 

Richard






0 Kudos
Message 13 of 15
(741 Views)

Actually, we originally bought 7.1, but had to revert back to 7.0 because 7.1 dropped support for W98.  We haven't had any customers ask about Vista yet, so we've been ok using 7.0.

 

I used a 2D string array when crunching the data to generate the tables.  Then, to print the table(s), I created a vi with tables and pass the table arrays to it for printing.  You're right, I can easily center with a 2D string array, but I can't size them differently.

 

I may have to consider 7.1 for this app.  I think dropping W98 for this app may be just fine.  I'll have to check.  Thanks for the 7.1 info.

0 Kudos
Message 14 of 15
(735 Views)

Correction: I don't think you can get 7.1 from NI, you'll have to try the used 2nd-hand method. I know there's a LOT of 7.1 out there somewhere.

 

edit: oops, I see you have already bought it at one time. Good! Smiley Happy

Message Edited by Broken Arrow on 04-22-2010 12:27 PM
Richard






0 Kudos
Message 15 of 15
(732 Views)