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?
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?
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:
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:
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.