Example Code

Automatically Adjust Table Width Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example shows a quick way to assert the text and adjust the table width.


Description
This VI allows the user to input text. Normally, you would need to manually adjust the cell widths. However, with this VI, the cell widths are automatically adjusted based on the text rectangle and "fudge" factor.

 

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Run the program

 

Additional Information or References
VI Snippet

3-344.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Best regards,
Rohan B

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
GriffinRU
Member
Member
on

I haven't had a chance to load vi itself, do not have 2010 at home yet.

But, it would work better if you calculate text rectangle also based on font type, size and style. And adjust cell width after entire row filled to maximum width, in case cell's data is wider than header.