Post Feko ISAR
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
Answers
-
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.
0 -
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"?>
0 -
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.
0