Control PostFEKO Using Matlab

Zakaria
Zakaria Altair Community Member
edited June 2021 in Community Q&A

Hi,

Is there a way to control PostFEKo Using Matlab?

I am trying to import different time-domain pulses to POSTFEKO (one by one) and extract the time domain response from POSTFEKO using Matlab. I have too many pulses so it will be easy to do it automatically.

Tagged:

Best Answer

  • Mel
    Mel Altair Community Member
    edited June 2021 Answer ✓

    POSTFEKO can be controlled through the API. See section "I: User Interface Tools" in the Altair_Feko_User_Guide.pdf in the help folder.

    To run a POSTFEKO script from the command line, you can use e.g.

    postfeko --run-script myscript.lua

    You can also make changes to the script variables by using e.g.

    postfeko --run-script myscript.lua --configure-script "exportData=true; height=3" --non-interactive

    The command line options are given when you type:

    postfeko -h

    image

    From Matlab I am not sure about the exact syntax for executing command line commands. Best you refer to Matlab for help on that.

Answers

  • Mel
    Mel Altair Community Member
    edited June 2021 Answer ✓

    POSTFEKO can be controlled through the API. See section "I: User Interface Tools" in the Altair_Feko_User_Guide.pdf in the help folder.

    To run a POSTFEKO script from the command line, you can use e.g.

    postfeko --run-script myscript.lua

    You can also make changes to the script variables by using e.g.

    postfeko --run-script myscript.lua --configure-script "exportData=true; height=3" --non-interactive

    The command line options are given when you type:

    postfeko -h

    image

    From Matlab I am not sure about the exact syntax for executing command line commands. Best you refer to Matlab for help on that.

  • Zakaria
    Zakaria Altair Community Member
    edited June 2021
    mel_21333 said:

    POSTFEKO can be controlled through the API. See section "I: User Interface Tools" in the Altair_Feko_User_Guide.pdf in the help folder.

    To run a POSTFEKO script from the command line, you can use e.g.

    postfeko --run-script myscript.lua

    You can also make changes to the script variables by using e.g.

    postfeko --run-script myscript.lua --configure-script "exportData=true; height=3" --non-interactive

    The command line options are given when you type:

    postfeko -h

    image

    From Matlab I am not sure about the exact syntax for executing command line commands. Best you refer to Matlab for help on that.

    Thanks for the replay. I am not really familiar with lua scripting.

    Do you mind helping me to write a simple Lua script that call a text file, which has a time-domain pulse, and save the corresponding time-domain load voltage on other text file?

    I will appreciate it if you can also refer to the documentation to help understand Lua scripting.