Home > Community > Forums > Custom IC SKILL > ADE-XL print ModelFiles of newly created test Test

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

 ADE-XL print ModelFiles of newly created test Test 

Last post Tue, Jul 29 2014 11:41 AM by tyanata. 2 replies.
Started by tyanata 21 Jul 2014 04:48 AM. Topic has 2 replies and 440 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Jul 21 2014 4:48 AM

    • tyanata
    • Top 75 Contributor
    • Joined on Sun, May 2 2010
    • Posts 89
    • Points 1,480
    ADE-XL print ModelFiles of newly created test Test Reply

    Hello,

     

     Hello I want to print 'ModelFiles of newly created Test in ADE-XL, the printing have to be done during the Test creation.

    I have following routine:

    (axlSessionRegisterCreationCallback 'test_procedure1)


    (defun test_procedure1 (session_name)
        let(()
            (axlSessionConnect session_name "createdTest" 'test_procedure2)
        );let
    );defun

    procedure(test_procedure2(active_session active_test_name)
        let((oSession modelList testSession)

                     
                        oSession = asiGetCurrentSession()
                        println(oSession)
                       
                       
                        modelList = asiGetModelLibSelectionList( oSession )
                        printf("\tModel list print 1 = %L\n" modelList)
                       
                        modelList = asiGetEnvOptionVal( oSession 'modelFiles )
                        printf("\tModel list print 2 = %L\n" modelList)

                        testSession = axlGetToolSession(active_session active_test_name)                 
                       oSession =  sevEnvironment(testSession)


                        modelList = asiGetModelLibSelectionList( oSession )
                        printf("\tModel list print 3 = %L\n" modelList)               

        );let
    );procedure

     

    It is strange that the routine actually prints the 'ModelFiles of the last already existing test in the ADE-XL session.

     

    Can you say what is wrong in my script?

     

    Best regards,

     

    tyanata

    • Post Points: 20
  • Tue, Jul 29 2014 8:40 AM

    Re: ADE-XL print ModelFiles of newly created test Test Reply

    Tyanata,

    I'm not sure what you're trying to do here, The issue is that the test is created as soon as you've picked the design for the testbench - and at that stage the "asi" session has not been created yet (which is why the last approach doesn't work). The asiGet CurrentSession is just telling you whichever session was previously current - so that's not going to tell you anything about the newly created test. 

    You might be better off using the "updatedTest" signal (and then using the axlGetToolSession/sevEnvironment approach, checking that you get non-nil for each of them before trying to get the model info.

    Regards,

    Andrew.

    • Post Points: 20
  • Tue, Jul 29 2014 11:41 AM

    • tyanata
    • Top 75 Contributor
    • Joined on Sun, May 2 2010
    • Posts 89
    • Points 1,480
    Re: ADE-XL print ModelFiles of newly created test Test Reply

     Hello Andrew,

     

    Thanks for the response, the proposed approach works.

     

    tyanata

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by tyanata at 21 Jul 2014 04:48 AM. Topic has 2 replies.