Thanks Clyde; that worked. Also, for completeness, here's what I did to get a differential signal working: .model fsrc filesource(file="ip.txt" timeoffset=0 timescale=1 + amploffset=[0] amplscale=[2.0] + timerelative=false amplstep=false) .model fdiff filesource(file="waveform.txt" timeoffset=0 timescale=1 + amploffset=[0 0] amplscale=[1.0 1.0] + timerelative=false amplstep=false) ain %v[input] fsrc aindiff %v[inputp inputn] fdiff R1 inputp 0 1k R2 inputn 0 1k .control destroy all tran 10ns 1000us...
I am having terrible trouble getting filesource to work. I have simplified my circuit to just the input waveform and a resistor, but still the circuit defaults to the zero state. My circuit: * The input source. .model fsrc filesource(file="ip.txt" timeoffset=0 timescale=1 + amploffset=0 amplscale=1.0 + timerelative=false amplstep=false) ain %v(inputp) fsrc * Input buffer - differential amplifier: R1 inputp 0 1k .control destroy all tran 10ns 1000us plot v(inputp) .endc .end The input file looks like...
Fellow ngspice users: I am having trouble getting the basic usage of filesource for a differential input signal. I try to input the waveform, and get a segmentation fault immediately. I've reduced the circuit to as simple as I can make it: a single differential op-amp, driving a 1k load: Here is my code: * The input differential amplifier: .include ../src/models/opamps/ad8429.cir .model input filesource(file="../_out/waveform.txt" timeoffset=0 timescale=1 + amploffset=[0 0] amplscale=[1.0 1.0] +...
Fellow ngspice users: I am having trouble getting the basic usage of filesource for a differential input signal. I try to input the waveform, and get a segmentation fault immediately. I've reduced the circuit to as simple as I can make it: a single differential op-amp, driving a 1k load: Here is my code: * The input differential amplifier: .include ../src/models/opamps/ad8429.cir .model input filesource(file="../_out/waveform.txt" timeoffset=0 timescale=1 + amploffset=[0 0] amplscale=[1.0 1.0] +...