<!channel> An extension to the question I asked ab...
# xschem
s
<!channel> An extension to the question I asked above: I have 2 different trials of the input data, each stored as a separate .cir file. I want to run the circuit simulation for each of the trial and store the circuit output for each trial in a separate output file. Here is my circuit where I am using pwl() function as a voltage source:
s
Please stop tagging the whole channel
s
If you need to load data from an external file it is better to remove the voltage source from the schematic, add a
.include vsource.cir
line or something similar and the vsource.cir file should contain:
Copy code
vvin vin gnd pwl
+ time1 value1
+ time2 value2
+ time3 value3
...
This simple file should be generated from the csv file by using a simple script (awk, tcl, python)
in the SPICE code block remove the
.end
line.
.end
marks the end of the netlist. Xschem appends the .end line at the very end. if you put a .end anything that follows will be ignored.