LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I right-justify a numerical indicator in Labview PDA?

I am writing a PDA application where I need some numerical values displayed.
These values should be displayed right-justified.
 
In Windows Labview, it is easy to set the justification to 'Right'.  However, when the application actually runs on the PDA, all the justification settings are removed.
 
One way that I though about doing this is to use a fixed-width font and setting the minimum number of characters for the field, so that they end up right-aligned.  However, that looks terrible since the Courier New font looks really bad.
 
Any other possible solutions?
 
Thank You
0 Kudos
Message 1 of 5
(4,200 Views)
Is this what you are trying to do?
 

Message Edited by miko on 10-17-2005 04:25 PM

Regards,
miko
Message 2 of 5
(4,182 Views)
miko,
 
This was in LabVIEW 7.1 correct?  So right-clicked and select Format & Precision and then click on the checkmark next to "Use minimum field width", then adjusted each numeric control so that they are justified?  Very sneaky.  I attempted to deploy an application using the "normal" method for right-justification, but wasn't able to get anything to work.  To this anything near justification I had to convert the number to a string and add spaces to the front of the number, which is needless to say ugly.  Good job!
 
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 3 of 5
(4,176 Views)

Hi Andy,

Yes the workaround is to use the "Use minimum field width" option in the Format and Precision dialog.

Regards,
miko
Message 4 of 5
(4,170 Views)
Thanks for the input.
I had been playing around with it for some time again, and I just came up with the 'minimum field width' solution as well.
 
Be careful - you are going to need to use a fixed-width font for this to work!
You can use variable width font only if the values on the screen are not changing.  If they are, then the spacing will just shift the text to some unknown end location.
 
I used Courier New - Bold.  Using plain Courier New turns out very ugly.  Bold is better, although not ideal.
 
But it works.
 
 
Thanks for all the suggestions.
0 Kudos
Message 5 of 5
(4,161 Views)