I need to add a pause to my Skill script

Discussion in 'Cadence' started by vtcad, Jan 28, 2008.

  1. vtcad

    vtcad Guest

    I need a way to add some sort of pause or delay to a script that I'm
    writing. I've tried the sleep() function, but this freezes Cadence
    while it is executing, I need some way to run it in the background
    (unknown to the user). I'm not running any ipc processes so I don't
    have anything to wait for.

    thanks for the help,
    vtcad, Jan 28, 2008
  2. vtcad

    Joel Guest

    Maybe hiRegTimer would work?

    For example, hiRegTimer("someFunction()" 1) will execute
    someFunction() after 1/10th of a second.

    Joel, Jan 29, 2008
  3. Two things come to mind for you to try
    1. Invoke ipcSleep(10) to sleep for 10 seconds.
    2. Use gets(a stdin)
    electromigratory, Feb 2, 2008
  4. vtcad

    andrewb Guest

    You might also want to look at sourcelink solution 11381132 which I
    wrote a few months ago which encapsulates calls to hiRegTimer and
    makes them easier to manage (particularly if you want to have
    repeating regular "jobs" which you want to be able to stop at
    some point).

    Note that it's not really multi-threaded, so you have to be careful
    not to overdo what you do using this kind of technique. More in the


    andrewb, Feb 6, 2008
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.