Originally posted by documentation Instead of specifying a frequency, you schedule when the next clock pulse should occur using "schedule(50)", which will cause the next clock pulse to occur in 50 milliseconds. To continually keep it executing as it would with an external pulser use "interval(50)" instead and put it at the top of the expression, this function has basically the same functionality as schedule, however it does not override previously scheduled clock pulses, instead it just ignores the call. As far as the documentation is concerned, interval(1000) should keep triggering clk() every 1000 ms when you call the function.
So the way I understood it,
triggers clk() once in ms milliseconds, and
keeps triggering clk() in ms millisecond intervals.
Did I miss something? You better rephrase how exactly interval() works.
So actually, I'd just write it like this:
Code:
O@Out
interval(1000)
clk() -> Out = !Out;
And according to your documentation, that should work.
Bookmarks