
/***************************************************************************
*  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"

// Specify log file name and logged parameters
logdata rc.csv,R1,C1,
	left,right,
	V(C1).left,V(C1).right,
	V(C1).min,V(C1).max,V(C1).mean;  

// 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;

