AmesimKnowledge

Getting Started with AMEPilot and the Export module > Polynomial integrator

Setting up the export

Setting up the export

Procedure

  1. Create the system.

Create the system shown in Polynomial integrator and name it PolynomialIntegrator.ame.

  1. Go to Parameter mode and select Interfaces > Export setup.

Figure 2: Export setup menu

This will create an Export Parameters Setup dialog box. Figure 3: The Export Parameters Setup dialog box

Note the three tabs. Input Parameters Export setup Input Parameters is currently selected.

  1. Set the parameters needed for the export.

Click on Add three times to create three new export parameters.

Figure 4: Three new export parameters

By default these are Real and this is what we want. These export parameters will be accessible outside of Simcenter Amesim. Edit the Export Name and Default value fields as shown:

Next click on FX00 and drag and drop the text parameter onto the Export Parameters Setup dialog box.

Note that because it is a text parameter, it is classified as Formatted string Formatted string

    Export setup
    Formatted string
    not  Real. 

Set the Export Name field to polynomial and the Default value field to *${a}*x^2+${b}x+${c} respectively.

Note

${a} means the value of a.

The formatted string is actually ax2 + bx + c where x is the input from CLOC which is the time.

The parameters polynomial, a, b and c are accessible from outside Simcenter Amesim using the Export facility. If you run a normal simulation within Simcenter Amesim the text parameter of FX00 is still the default one: x.

Using the Export facility, the text parameter is defined by polynomial.

Click Save.

Do not close the Export Parameters Setup window yet.

The Input Parameters are now complete.

  1. Switch to Simulation mode.

  2. Define the output.

Keep the Export Parameters Setup dialog box open.

Figure 5: Simple Output Parameters tab

Select the Simple Output Parameters tab. You now have two options:

Double-click on the INT0 icon, the Variable List dialog box appears, or

Single-click on the INT0 icon to open the Contextual view.

Select the Output from integrator.

Drag and drop it to the Export Parameters Setup dialog box.

A new line appears in the Simple Output Parameters list.

Change the name of the added parameter to integralValue.

Save the Export setup by clicking on the Save button.

This is a minimum save. If the check box Export to external tool is checked, a Export format menu becomes active which allows you to select a commercial software which uses the Export facility to interface with Simcenter Amesim. Extra files are then created specific for this software

Figure 6: Export format

Results

The Export setup is now complete.

Note

The files

  • polynomialIntegrator_.in.tpl,

  • polynomialIntegrator_.out.tpl, and

  • polynomialIntegrator_.xpt,

have been created. When you save the model, the files will be included in the .ame file.The file with the extension .xpt is needed by AMEPilot and for this reason the model will be loaded into Simcenter Amesim when you use AMEPilot.

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Export/Setting_up_the_export · retrieved 2026-07-17