Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Programmatically Change the Display Size of an Array Indicator

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have a program that displays an array.  The array size will vary each time I run the program.  How do I only display the number of values that are in my array?

Solution:
You can set the visible display dimensions of an array by using property nodes.  To create a property node for an array, right-click the indicator and select Create»Property Node»Number of Rows. 

 

After you have created the property node, right-click NumRows and select Change all to Write.  This property node will change the number of displayed rows in the indicator.  Follow the same steps to set the number of columns.  If you want to only display the bounds of the array use the Array Size.vi to determine the input to the property nodes.  This is shown in the figure below.

The Array Size.vi will output a 1-D array with each value being the size of a different dimension.  You can get the different values by using the Index Array.vi.



Related Links:
KB 3EKBKC5L: How Do I Change the Size of a Control Inside an Array Programmatically?

Attachments:





Report Date: 11/24/2008
Last Updated: 12/03/2008
Document ID: 4RNFFTWI

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit