hiRegTimer() - unusual behavior!

Discussion in 'Cadence' started by Manju Arasaiah, Apr 29, 2004.

  1. Hi,

    We have hiRegTimer("MyFunc()" 1) in our .cdsinit

    Sometimes it doesn't completely runs MyFunc() but sometimes it does!
    I mean MyFunc() is 30 line function. My CDS.log shows sometimes I have
    executed upto 20th line of MyFunc().

    The reason I am using hiRegTimer() is to delay the execution of
    MyFunc() while I want the system to continue its normal execution.

    Anyone has used hiRegTimer() successfully?

    thanks, Manju
     
    Manju Arasaiah, Apr 29, 2004
    #1
  2. Manju Arasaiah

    Partha Guest

    Can you try the following simple function and see if you observe the
    expected results,
    procedure(hello()
    println("hello123")
    )
    procedure(CCS_hello()
    hiRegTimer("hello() CCS_hello()" 50)
    )

    I have used hiRegTimer and have not experienced issues in
    straightforward applications..can you duplicate the 20th line
    execution repeatedly?
    Could be something to do with the function( does it involve any human
    interface?)
    Also, try increasing the time from 1 to say, 50. The number is
    actually 1/10th of a second, and 0.1s might not be enough time for
    your function if you perform complex data processing in it?

    Partha
     
    Partha, Apr 30, 2004
    #2
  3. Thanks for your i/p Partha.

    BTW, I think I found why it was executing the function incompletely.
    Whenever it encounters any error in the callback, it doesn't report it
    and just stops at that point. I found that separetely running the
    callback.

    Is there a way I can get the error/warning reported when it runs thru
    hiRegTimer()?

    thanks, Manju
     
    Manju Arasaiah, Apr 30, 2004
    #3
  4. Thanks for your i/p Partha.

    BTW, I think I found why it was executing the function incompletely.
    Whenever it encounters any error in the callback, it doesn't report it
    and just stops at that point. I found that separetely running the
    callback.

    Is there a way I can get the error/warning reported when it runs thru
    hiRegTimer()?

    thanks, Manju
     
    Manju Arasaiah, Apr 30, 2004
    #4
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.