Tutorial: How to pass variables in Agilent ADS from the schematic capture and layout to the data display
You pass variables in Agilent ADS through the simulation controller. For example, if you are simulating S-parameters, you will most likely have an S-parameter controller inserted into your schematic with a start, stop, step, etc. Double click on the simulation controller and click on the output tab. Here you can choose which particular variables you want to pass to the data set.
As an example of how this works, below I show a simple schematic of a rectangular waveguide. Instead of using a port with constant impedance (like 50 Ohms), I set the port impedance (denoted Z_not in the schematic) to be the wave impedance of the dominant (TE10) mode in rectangular waveguide. Z_not is the variable I want to pass into the data set.

Once you click on the S-parameter simulation controller, you get the following dialog box:

Click on the output tab, and you will get the following dialog box:

Click on the Add/Remove button and you will get the following dialog box that allows you to choose which variables you want passed to the data set:

Select the variable you want to pass and click the Add button. In my case, I add the variable Z_not:

Now, click OK, and simulate your design. In the data display box, you will find your variable waiting for you and ready to plotted or used as a variable in another equation.

Here I plot the variable Z_not:
