Export Time Domain results using lua script

User: "Zakaria"
Altair Community Member
Updated by Zakaria

Hi,

I have a  time-domain excitation pulse (generated using Matlab as a .txt file). this excitation needs to be imported to PostFeko, calculate the time domain voltage across the load (in postfeko), then export the TD voltage to .dat or .txt file. I need to run all of this through Lua script. If I can do so then instead of reopening postFEKo every time I change the excitation pulse I can run the script through Matlab.

I have attached a basic Lua script that reads the current across the load and exports the data to the .dat file. However, it exports the Frequency domain data, not the Time domain. I have a very very basic knowledge of LUA scripting. I would really appreciate it If anyone has an idea of how to modify the script to perform the above tasks.

attached the FEKo Files and the Lua script.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Mel"
    Altair Employee
    Updated by Mel

    You could use ExportTraces:

    graph=app.CartesianGraphs[1]
    graph:ExportTraces("mydata.txt",101)

    User: "Zakaria"
    Altair Community Member
    OP
    Updated by Zakaria

    You could use ExportTraces:

    graph=app.CartesianGraphs[1]
    graph:ExportTraces("mydata.txt",101)

    Thanks for the replay. What command can I use to import the time domain signal file?
    User: "Mel"
    Altair Employee
    Updated by Mel

    Unfortunately automation and data set access for Time Analysis are not supported in POSTFEKO. 

    So you would not be able to automate everything that you are after.