
/***************************************************************************
*  This script runs transient and saves V(C1), min, max and mean for different 
*  combinations of r1 and c1 into the log file.
*  Trace V(C1) should be added into transient data
*
*  To run the script:
*
*      drag and drop this file onto NL5 icon, 
*  or
*      open NL5
*      open script window (Tools/Script)
*      open script file script1.txt
*      run script
*  or
*      start NL5 from command line with "script2.txt" as a parameter	 
*
***************************************************************************/

open rc.nl5;              // Open schematic file "rc.nl5"

logdata rc.csv,
	r1,c1,left,right,
	v(c1).left,v(c1).right,
	v(c1).min,v(c1).max,v(c1).mean;  // Specify log file name and logged parameters

// Set r1 and c1, run transient and save data into the file
r1=1;
c1=1;
tran 50,10;
logdata;

r1=1;
c1=3;
tran;
logdata;

r1=1;
c1=10;
tran;
logdata;

r1=3;
c1=1;
tran;
logdata;

r1=3;
c1=3;
tran;
logdata;

r1=3;
c1=10;
tran;
logdata;

