Is it possible to more accurately represent the 'Time' variable within a program under simulation in PE6?
I have a couple of statements along the line of:
Under simulation, after two and a half hours the Time variable had reached 50!
I can accept that it might run slower than on a physical device, but if there is a way of speeding this up I'd like to hear how. I began to wonder if Time was a byte variable as I'd initially tested for Time > 300, thinking that it might never have got to 300 any way. It seems as though that wasn't why things didn't appear to be working.
I have a couple of statements along the line of:
Code:
DisableTime
Let Time=0
EnableTime
Do
Toggle LED
If Switch=1 Then
GoSub SwitchPressed
EndIf
If Time > 120 Then
GoSub NoSwitchPressed
EndIf
Loop
I can accept that it might run slower than on a physical device, but if there is a way of speeding this up I'd like to hear how. I began to wonder if Time was a byte variable as I'd initially tested for Time > 300, thinking that it might never have got to 300 any way. It seems as though that wasn't why things didn't appear to be working.