LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Display unsigned value (battery voltage) = 8134 formatted with a decimal point: 8.134

How can I display an unsigned value such as 8134 with an "implied" decimal point e.g. 8.134 without dividing by 1000? Is there a format code that will do this? I have Student Version 8.2.1. Many thanks
0 Kudos
Message 1 of 6
(7,467 Views)
If you just want to display it, you can convert it into a string, separate the first character and the remainder, insert a period after the first character and then insert the remainder of the string.
0 Kudos
Message 2 of 6
(7,462 Views)
It seems silly to force such an arbitrary restriction. A division is cheap, why son't you want to do it??? 😮
 
Of course you could assign a unit such as V and then set the units to kV for the display. 🙂
 
 
I would go with the division!


Message Edited by altenbach on 11-18-2007 04:58 PM
0 Kudos
Message 3 of 6
(7,456 Views)
Of course, you can also make an Xcontrol.
0 Kudos
Message 4 of 6
(7,452 Views)
I doubt that XControls are supported on teh Lego platform Smiley Wink

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 6
(7,448 Views)
LOL, I only saw "I have Student Version 8.2.1" and guessed the post was possibly in the wrong forum. 🙂
0 Kudos
Message 6 of 6
(7,445 Views)