I must be missing something when trying to schedule a function to run. Following is an annotated listing of how I tried to schedule something. The // comments were added post test…
>new // clear out the user region
>list() // make sure it is empty
>$ // go into recording mode
$fn HHH()
$println(“Hello!”)
$fend
$> // End recording mode
>list // list what was recorded
fn HHH()
println(“Hello!”)
fend
>hhh() // enter function in immediate mode to verify operation
Hello!
>sstart(“HHH”, 1000, 5) // schedule to run every second for five times
// ***** NOTHING HAPPENS SStat returns nothing
I tried this on several different modules with identical results?
Yes sir, you are correct. The docs have been fixed.
It’s the SStat(“func”) that returns how many times the scheduler still needs to run and in this case a value of -1 means forever with 0 being completed.