LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resize array width programmatically?

Solved!
Go to solution

So you are talking about both images.

Here they are:

 

LinkTo.PNGSizingProperty.PNG

 

hope this helps,

Norbert 🙂 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 11 of 15
(2,322 Views)

Missing the point...

 

I don't need to see the images. I know how to do it. What about the other folks in the world outside of NI that don't, and need to see the images, but can't because they point to ae.natinst.com? Are you expecting them to scour the forums to see if somebody happened to post the images in a thread?

 

Instead, of, oh, I don't know, fixing the KB article? As well as all the other ones in the KB that are like this?

0 Kudos
Message 12 of 15
(2,318 Views)

Saverio,

 

I can see the KB article.  Are there some missing images that you are referring to?

 

Below is what I see from that link:

 

How Do I Change the Size of a Control Inside an Array Programmatically?

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

Problem:
I would like to change the size of a control inside an array using property nodes just like I would any other control that is not inside an array. If I create a property node and go to Array Element»Bounds»All Elements, I cannot change the property to write. Hence, I cannot change the size.

Solution:
The property node Array Element»Bounds»All Elements of an array is read only. Therefore, while you can read the size of a control, you cannot write to it using this method. In order to change the size of a control inside an array, you need the property node for that control, not the array.
  1. In order to do this, create a property node for the array as usual by right-clicking on the array in the block diagram and selecting Create»Property Node»Visible (or any other property) 
  2. Right-click on the property node and select Link To»Pane»Array»Numeric Value
  3. Now you can use the sizing property of the control itself to change the size by clicking on the property node and selecting Numeric Text»Size»Height

     

Note: You cannot have different sizes for each element within an array - they must all be the same size.

 

0 Kudos
Message 13 of 15
(2,310 Views)

Ray.R wrote:

Saverio,

 

I can see the KB article.  Are there some missing images that you are referring to?


Yes. All you need to do is look at the page source HTML. This is a problem that has been raised many times in the forum regarding KB articles. Am I the only one who was listening? 

Message 14 of 15
(2,298 Views)

Oh yes..  I see..

 

Euh... I mean I don't see the missing images.

 

 

0 Kudos
Message 15 of 15
(2,282 Views)