Home > Community > Forums > PCB SKILL > Autorun function on Allegro start

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: *

 Autorun function on Allegro start 

Last post Thu, Sep 27 2012 7:19 AM by Kadar. 4 replies.
Started by Kadar 19 Sep 2012 05:14 AM. Topic has 4 replies and 1394 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Sep 19 2012 5:14 AM

    • Kadar
    • Top 500 Contributor
    • Joined on Mon, Jun 6 2011
    • Haifa, Israel
    • Posts 26
    • Points 370
    Autorun function on Allegro start Reply

    Hi All,

    Can somone explain to me how can I run my SKILL function on Allegro PCB

    On tool start up. Calling the function from allegro.ilinit can't be performed.

     

    Thank You in advance,

    Kadar 

    • Post Points: 20
  • Wed, Sep 19 2012 1:02 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 750
    • Points 16,220
    Re: Autorun function on Allegro start Reply

    You will have to be a bit more specific.

    allegro.ilinit should run if it's in the correct path. Check your ALLEGRO_SITE environment variable.

    Dave 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Sep 20 2012 2:03 AM

    • Kadar
    • Top 500 Contributor
    • Joined on Mon, Jun 6 2011
    • Haifa, Israel
    • Posts 26
    • Points 370
    Re: Autorun function on Allegro start Reply

    Hi Dave,

    Thank You for reply.

    My "ALLEGRO_SITE" variable defined correctly - all my functions are loaded from inside "ALLEGRO_SITE/skill/allegro.ilinit".

    I wrote the next lines in "ALLEGRO_SITE/skill/allegro.ilinit.

    load("ALLEGRO_SITE/skill/My_Func_file.il")

    axlCmdRegister("CMD_Name" 'Func_Name ?cmdType "general")

    To autorun the function I added (In the End of allegro.ilinit)

     CMD_Name (or Func_Name() ):

     But it caused the tool to fail on startup. What is done wrong?

    Thanks,

    Kadar

     

     

     

    • Post Points: 20
  • Thu, Sep 20 2012 1:41 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 750
    • Points 16,220
    Re: Autorun function on Allegro start Reply

    This is an example of what your ilinit file should contain:

    axlCmdRegister("tidy folder" 'tidyFolder ?cmdType "general")

    tidyFolder.autoload = "tidyFolder.il" 

    To run this routine I need to type tidy folder in the console window.

    If you want a routine to run every time you start Allegro you should look at the axlTriggerSet command. This is a command that I have in our ilinit file:

    axlTriggerSet('open 'tait_OpenAllegroTrigger)

    tait_OpenAllegroTrigger is a Skill function. 

    Dave 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Sep 27 2012 7:19 AM

    • Kadar
    • Top 500 Contributor
    • Joined on Mon, Jun 6 2011
    • Haifa, Israel
    • Posts 26
    • Points 370
    Re: Autorun function on Allegro start Reply

    Hello Dave,

    After some code changes and using "axlTriggerSet" function

    My function runs on tool statup.

    THANK YOU!!!!!! 

     

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Kadar at 19 Sep 2012 05:14 AM. Topic has 4 replies.