09-22-2011 01:32 AM
Labview is removing trailing zero's at the left. It's working numerical.
But I want to do binary conversions and don't want the trailing zero's to be touched because I use it for vesion numbering.
How to keep them?
09-22-2011 01:53 AM
Please explain your problem better, are you converting between string and datatype? Do you want to see all 0's in a indicator?
For the indicator you can change it's Properties to show extra zeroes, for conversion there's a bunch of ways.
/Y
09-22-2011 02:09 AM
Following example removes the left zero's.
09-22-2011 02:47 AM
Hi JoVMo,
You can right click the numberic indicator and click on "Display Format..."
There is a tick box that says "Use minimum field width".
Tick that and select the number of digits you want to display.
There is then a drop down menu that allows you to select:
Pad with spaces on the left
Pad with spaces on the right
Pad with zeros on the left
Steve
09-22-2011 02:59 AM
And a conversion back to string let it drop the zero's. ??
09-22-2011 03:15 AM
Use the "Format Value" function with a format specifier of %08B (8 binary characters).
Hope this helps.
Steve