/***************************************************************************
*  This script sweeps resistor R1 value and saves V(C1) at t=10 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 "script1.txt" as a parameter	 
*
***************************************************************************/


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

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

for( R1=1; R1<=10; R1+=1 ) // Sweep R1 value
{
  tran;                   // Run transient
  logdata;	          // Log the data
}


