This script will create a P2D data file, which contains two-port large-signal S-parameters generated as a function of a swept input power and possibly one other variable, from a design in the AWR Design Environment. You must have a schematic with at least two ports for the script to run. When you run the script you will get the dialog below.

Fill in the proper settings to choose the schematic, set power levels, etc. When the settings are correct, click the Generate P2D button. The settings on the dialog are largely self-explanatory, with the possible exception of the following: