
/***************************************************************************
*  This script runs few screens of transient and saves V(C1) at the end 
*  of each screen 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 "script7.txt" as a parameter	 
*
***************************************************************************/

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

logdata rc.csv,
	right,V(c1);  	  // Specify log file name "rc.csv" and logged parameters 

r1=10;			  // Set R1 value

tran;			  // Run transient
logdata; 		  // Log the data

int i;
for( i=0; i<10; ++i ) {  // Perform the loop 10 times
  cont;			  // Continue transient
  logdata;		  // Log the data
}
