This is very strange and I cannot work out what is doing it. I noticed that one of my stopwatch gauges had stopped working, so I put all it's variables into a text element for debug. Turns out that the time variable has gone crazy!
The following code should just give the P: / E: absolute time values, as per the SDK, but instead the returned values are .(-*,( in each case. The same is returned for any calculations that use those terms so if anyboby knows (excusing my language) WTF is going on, please give me a clue?
Geoff
Edit: I should add, the same gauge quite happilt shows all manner of other variables and even long strings...
The following code should just give the P: / E: absolute time values, as per the SDK, but instead the returned values are .(-*,( in each case. The same is returned for any calculations that use those terms so if anyboby knows (excusing my language) WTF is going on, please give me a clue?
Code:
<Gauge Name="GC_DEBUG" Version="1.0">
<Element>
<Position X="0" Y="0"/>
<FormattedText X="240" Y="300" Font="Arial" FontSize="14" Adjust="Left" Color="red" BackgroundColor="Black"
VerticalAdjust="Center" Bright="Yes" LineSpacing="5">
<String>
DEBUG DATA\n
\n
Logic P00 = %((P:ABSOLUTE TIME,seconds))%!5.5f!%\n
Logic P01 = %((E:ABSOLUTE TIME,seconds))%!5.5f!%\n
\n
</String>
</FormattedText>
</Element>
</Gauge>
Geoff
Edit: I should add, the same gauge quite happilt shows all manner of other variables and even long strings...