SIMION®
The field and particle trajectory simulator
Industry standard charged particle optics software
Refine your design: model > simulate > view > analyze > program > optimize it.
About | Documentation | Community/Support | Downloads | Ordering

SIMION 8.0 Issues/Bugs/Enhancements

Filter issues by query:
Issue I462 [enhancement,lua,high,resolved]
  Add simion.sleep(seconds) function.

  The simion.sleep function sleeps (pauses SIMION) for the given
  number of seconds.  seconds is a real number and can represent
  fractions of seconds.  The sleep will be aborted if the user
  presses the ESC key.

  Using sleep is preferrable to a busy wait (e.g.
  "local t0 = os.time(); while os.time() < t0 + seconds do end")
  because sleep processes user input and screen updates during
  the sleep, thereby avoiding a screen freeze during the sleep.

  Note: a workaround in earlier version of SIMION is to define this
  function:

    local function sleep(seconds)
      local t0 = os.time()
      while os.time() < t0 + seconds and simion.key() ~= 27 do end
      -- note: 27 is ESC key
      -- note: fractional seconds are ignored
    end

  Suggested in http://www.simion.com/discuss/viewtopic?p=2092

  Implemented in 8.0.4-TEST25.

Any comments on this web page? (will be sent to IMI Adaptas SIMION Support)
[Optional] Your name: email: phone: