Home > Community > Forums > Custom IC SKILL > wait function in SKILL

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 wait function in SKILL 

Last post Tue, Feb 24 2009 2:37 PM by Tongju. 2 replies.
Started by leongec 23 Feb 2009 09:00 PM. Topic has 2 replies and 2157 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Feb 23 2009 9:00 PM

    • leongec
    • Top 500 Contributor
    • Joined on Mon, Feb 2 2009
    • Posts 20
    • Points 265
    wait function in SKILL Reply

    hi all, i am newbie to SKILL and currently face some problem when writing the script. 

    Let me explain my program first, i created a GUI for user to enter some parameter value, then after manipulation, a list of result is outfile to a text file. then,  the data in the text file will be plotted in the wavescan.

    now, i need to load th GUI skill file first, then enter the data. After this, load the waveform skill file. However, i would like to make it in one go, that is, put all the skill codes in the same scipt. Now  my problem is, the waveform window  prompted up together with the GUI; where the user have not enter any data yet. 

    I would like to use wait function to delay the opening of the waveform window. i found that ipcWait is not necessary. How can i do that? or any suggestion??

    thank you 

     

    • Post Points: 20
  • Tue, Feb 24 2009 11:43 AM

    • Tongju
    • Top 200 Contributor
    • Joined on Mon, Jul 14 2008
    • San Jose, CA
    • Posts 38
    • Points 505
    Re: wait function in SKILL Reply

    Instead of a waiting function, I prefer to use "callback" feature in the skill GUI (when you create the application form for GUI, you have option to put  callback functions for actions like "apply" "close" ...).  Is it possible to put your second waveform function as the callback function when user finish parameter input and click on "apply"? 

    • Post Points: 5
  • Tue, Feb 24 2009 2:37 PM

    • Tongju
    • Top 200 Contributor
    • Joined on Mon, Jul 14 2008
    • San Jose, CA
    • Posts 38
    • Points 505
    Re: wait function in SKILL Reply

    Or, you can use hiRegTimer to run your function after a specific time period:

    (defun hello () (printf "I am running now ....\n"))

    hiRegTimer("hello()" 100)

     Then, after 10 second, the hello() function will be called.

    Or, you can even try sleep(10) (to wait for 10 seconds), but It will hold the current process though.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by leongec at 23 Feb 2009 09:00 PM. Topic has 2 replies.