I need to add a pause to my Skill script

  • Thread starter Thread starter vtcad
  • Start date Start date
V

vtcad

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,
 
Maybe hiRegTimer would work?

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

Joel
 
vfcad said:
I need a way to add some sort of pause or delay to a script

Two things come to mind for you to try
1. Invoke ipcSleep(10) to sleep for 10 seconds.
or
2. Use gets(a stdin)
 
Two things come to mind for you to try
1. Invoke ipcSleep(10) to sleep for 10 seconds.
or
2. Use gets(a stdin)

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
solution.

Regards,

Andrew.
 
Back
Top