How to export Cadence plot data into MATLAB
This will describe how to do a Parametric Analysis in Cadence, as well as how to export the data from that analysis into MATLAB for further processing.
The goal of this simulation is to measure the drain current of an NMOS as a function of Vgs for different values of Vds. We will use the circuit shown below. Make sure to enter "Vds" as the value of the DC voltage field for the drain's voltage source.
Next, click "Launch → ADE L" to launch the simulator. In the simulator, select a DC analysis, sweeping Vgs from 0 to 3V. Add the drain current as the output. Next, click on "Variables → Edit" to bring up the variable editor. Enter Vds as the name and click add. Don't worry about the Value, this will be set when the parametric sweep is initialized. It should look like this:
Say OK to close the editor window. Now, click "Tools → Parametric Analysis" to bring up the parametric analysis setup. In the variable name, put Vds. In the range, put From 1 to 3. As the Step Control, select Linear Steps and put a Step Size of 1. The window should look like this: