08-05-2009 04:27 PM
Hi!
Is there a way to change the font in a string indicator?
and is there a font in LabVIEW that has equal spacing for every caracter?
Solved! Go to Solution.
08-05-2009 04:36 PM
Do you mean programmatically?
If yes, then yes there is a way. You can use the PropertyNode.
Do you mean while creating your Front Panel (the UI)?
If yes, then yes there is a way. In the middle of the menu bar, you can find the button for text. Click it and you can select all the properties for the text of the Control that you have selected. I don't have LabVIEW installed, so I cannot show you a screen capture... I will try to find one and circle in red where to find it..
08-05-2009 04:43 PM
Hi!
It is with the property node I mean, but i can't understand how...
08-05-2009 04:47 PM
picture => 1000 words...
08-05-2009 04:54 PM
That means you want to change the font programmatically.
Well... here is a twist.. Typically, this is done using the Caption for the indicator, because it also allow you to be able to change the text (string).
The shortcut way to do this is to:
1. within the block diagram, right-click the indicator and select create property node
2. use the selector to choose the Caption > text > font (It could be Caption.text.font)
Now I do not remember if it is a numeric value that is put in for the font...
Change to Write (right-click on property node and select "Change All to Write" (simply because my memory is not that good + no LabVIEW with me)
Then right click on the bottom box, where it displays the Caption.text.font and select create constant. It should then allow you to select the font. Otherwise, you can click on the question mark ar the upper right corner (Context Help) which will guide you. Context Help can also be found under the Help Menu.
Hope this helps.
R
08-05-2009 10:13 PM - edited 08-05-2009 10:17 PM
Is the OP asking for how to change the font of the label for the string indicator or the actual text that is within the indicator?
It seems you've answered the former by way of a caption. I thought he was asking for the latter.
The Label, Caption, and the text in the indicator itself can all be changed.
And to answer an earlier question, Courier is a common monospaced font. Another is Terminal.

08-06-2009 08:21 AM
Hi Ravens,
I meant that you cannot programmatically change the name (text) of the label itself... for obvious programming reasons..
You might be able to do it from another VI by reference as long as the VI whose label you are changing is not running at the time that you want to change it.. 😉
I've been away from LV for a year, so my memory about the "what's" & "how's" is getting rusty..
Back to vxWorks / C++..
(crawling back to the makefiles and compiler)