Post Feko ISAR

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

I am trying to run the ISAR images example from https://www.altair.com/RelatedCaseStudy.aspx?id=10626 . When I run the PF_ISAR.lua script , I get the error - attempt to call field 'GetApplication' (a nil value).

I am kind of stuck on this error, How best can I proceed?

 

Regards,

Nyasha

Tagged:

Answers

  • Dewald Botes_21234
    Dewald Botes_21234 New Altair Community Member
    edited November 2018

    Hi Nyasha,

     

    In which Feko version did you run the script?

    Did you run the script from POSTFEKO? The PF_ISAR.lua is application specific and should be executed from POSTFEKO.

  • Madelé
    Madelé
    Altair Employee
    edited November 2018

    Hello @Nyasha

     

    What steps did you follow to run the script? It should work if you open it in the POSTFEKO script editor and run it from there:

     

    image.png.c8bb88cc3f6a0f5ca1a01aef9f66b4e9.png

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2018

    Hello @MvdM,

    I am executing the script in PostFeko and that is what i did (snippet below) I am using version - 2017.2.5-317065 (x64)

     

    <?xml version="1.0" encoding="UTF-8"?>post_Feko.thumb.png.25f42f44d4f58025756986775d5d2aaa.png

     

  • Madelé
    Madelé
    Altair Employee
    edited November 2018

    Hi @Nyasha

    It is clear from your screenshot that you are using a custom math script. (Note the difference in icons in the tab showing the script's name between my screenshot and your screenshot.) This explains the error message. The script that is provided at the link in your original post is a general application script that calls the application and performs certain actions. A math script, or result script, returns data for visualisation. You cannot call or control the application from within a math script. Please review the chapter 'Scripts and Application Programming Interface (API)' in the Feko User Manual for more detailed information. 

     

    You can try using 'Save As' to save the script in the folder containing the helper utilities (utils folder). I think this action would cause POSTFEKO to detect the script type during saving and then you should be able to successfully run the script. Otherwise, just open the downloaded script in the script editor (not by inserting/editing a custom math script) and it should work.