LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to dynamically size a front panel indicator?

Hi everyone, I was wondering if there is a way in LabVIEW to dynamically size a front panel indicator text box.  My issue is that sometimes this indicator can be fed more text than the indicator text box can fit.  Is there a way to make this indicator text box dynamically size itself based on how much text there is sent into it?

 

Thanks so much!

0 Kudos
Message 1 of 5
(2,793 Views)

Right click the indicator, create, propery node, size.

 

But I would just make the indicator large enough to hold the largest amount of text you are expecting.  If you place other controls or indicators near it you could cover them with the text indicator.  You also only want to write the new size based on the 1st time you see each new message, not on every iteration of your program.

Message 2 of 5
(2,764 Views)
There is absolutely a way of doing that. For an example, look inside the Simple Error Handler. Own inside is you will find an error dialog box VI that resizes a string indicator.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 5
(2,749 Views)

I generally make the Text indicator a bigger size and make it transparent, also I would add a scroll bar to it. So now it can accomodate larger size of text and also the smaller one.

-----

The best solution is the one you find it by yourself
Message 4 of 5
(2,730 Views)

Hey,


Take a look at this:

https://decibel.ni.com/content/docs/DOC-26783

 

It is a reference design for resizing objects depending on your settings. You might not be able to use the library, but maybe you can use parts of it.

 

Thanks,

Daniel

0 Kudos
Message 5 of 5
(2,685 Views)