02-13-2021 03:23 PM
Is there any way to format the x-axis of a graph to get rid of leading zero's? This is what I have:
And this is what I would like it to look like:
Currently the formatting is <%I %p>t. Is there a way to get rid of that leading zero with formatting, or am I going to have to do this another way?
Solved! Go to Solution.
02-13-2021 07:15 PM
Yes, this is possible using the time format strings. I couldn't find it stated in the LabVIEW help (Fundamentals >> VI and Function Reference >> Programming VIs and Functions >> String Functions >> Format Codes for the Time Format String), but this reference says that placing a # symbol before the relevant specifier will omit leading zeroes, i.e. %#I.
Note that the lower-case t at the end of your specifier indicates relative time. I don't believe you can use %I in this mode.
02-15-2021 10:14 AM
Awesome, thank you so much! I searched through the LabVIEW help, but wasn't able to find it (Not sure why it isn't there as well. And you are correct, small t doesn't work with relative time. I was playing around with relative/absolute and the small t was a left over.