I need to add a pause to my Skill script

V

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

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

Joel



On Jan 28, 1:41 pm, vtcad <Roland.Fonta...@gmail.com> wrote:
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,
 
vfcad wrote:
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)
 
On Fri, 1 Feb 2008 22:51:13 -0800 (PST), electromigratory@gmail.com
wrote:

vfcad wrote:
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)
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top