PE6 Simulation SETTING on "TIME System variable" parameter suggestion.

wccronje

New Member
Since PE6, the SYSTEM TIME VARIABLE of a simulation takes into account the number of instructions it would take to execute in the PICAXE before it increases. This is good for some applications but on the other hand, when a program path is dependent on the timer, it can take a long, long time to wait for the TIMER to increment and to see the effect in the program.
Would it be possible to add an option in the settings to "not slow the time system variable" for a specific simulation.
Just a suggestion.
 

BESQUEUT

Senior Member
Since PE6, the SYSTEM TIME VARIABLE of a simulation takes into account the number of instructions it would take to execute in the PICAXE before it increases. This is good for some applications but on the other hand, when a program path is dependent on the timer, it can take a long, long time to wait for the TIMER to increment and to see the effect in the program.
Would it be possible to add an option in the settings to "not slow the time system variable" for a specific simulation.
Just a suggestion.
+1
Was already asked few times, but no answer...

Probleme-de-simulation-avec-la-fonction-time-dans-pe6
Trouble-with-Time-variable simulation
time-command-of-20M2-in-simulator
Pause-running-time-General-question
Time-variable-within-PE6-simulation

And for the todo list :
Feature-request-Named-Pipe-Plugin
 
Last edited:

hippy

Technical Support
Staff member
One option is to add additional PAUSE commands to the program and even to enable those PAUSE commands by controlling them via i/O pins. This code will normally run 'slow' but will be close to real time when pin C.3 is set high ...

Code:
#Picaxe 08M2
Do
  w0 = w0 + 1
  [b]#IfDef SIMULATING
    If pinC.3 = 1 Then
      Pause 1000
    End If
  #EndIf[/b]
  If time > 5 Then
    SerTxd( "Tick" )
    time = 0
  End If
Loop
 
Top