• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > ADS > ADS FAQ > Reading 'design variables' in 'Data display'

Reading 'design variables' in 'Data display'

录入:edatop.com    点击:
How to read variables/equations declared in schematic window after simulation in 'Data Display'?

I have to read few parameters from a file in to some component parameters and variables.
After simulation I want to verify if correct values are picked up from the file.

How to access the value of the variables that were defined in design file after simulation?

You need to export the value that you read from the file into the dataset when you run your simulation. How to do that depends on how you read in the file data into your schematic.

Scenario 1
-----------

Using a DataAccess component and assigning a variable in the schematic to a value from the file:

VAR
Rx = file{DAC1,"Rx"}

Then using this variable as a component value, something like this:

R
R1
R = Rx Ohm

To export the value of Rx to the dataset just do the following:


  • Double-click on your simulation controller

  • Select the Output tab

  • Click on Add/Remove...

  • Add the Rx variable and click OK

  • Simulate the circuit again


Rx is now in the dataset and can be plotted/listed in the data display.

Scenario 2
-----------
Assume you use assign the value from the fil directly to a component parameter:

R
R1
R = file{DAC1,"Rx"} Ohm

Now you don't have any variable to export to the dataset. How to do now? You could of course change your schematic to use a variable as in Scenario 1 but there is a way to do this, which works in most cases. You can use the old Other=OutVar method:


  • Double-click on your simulation controller

  • Go to the Display tab

  • Check Other to be displayed on the schematic

  • Click OK to dismiss the edit dialog

  • You should now see the "Other" parameter on the schematic. Use on-screen editing to enter the following syntax:

    Other=OutVar="R1.R"

    (Case Sensitive!)

    This will send the resistance value of resistor R1 to the dataset.


If you want to send multiple variables to the dataset using this method then the syntax is as follows:

Other=OutVar="x1" OutVar="x2" OutVar="x3"

Note! This is the old method and is not fully supported. It will NOT work when doing optimization. The new Output tab's in the simulation controllers is the recommended way to send variable values to the dataset.

Thanks. I usually use scenario 1 of sending variables to data set by the output tab.

Although the sent variable is a single fixed number, it is saved for every single time point multiplied by all sweeps which blow off the data set size. any idea how to send it as a single value not a sweep over all dimensions?

Thanks

申明:网友回复良莠不齐,仅供参考。如需专业帮助,请学习易迪拓培训专家讲授的ADS视频培训课程

上一篇:oscilloscope ADS
下一篇:Package component (artwork) not found for layout generation

ADS培训课程推荐详情>>

  网站地图