blob: 7087624991812f985d667cf5fb2a0972dd90fd96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
filesource staircase non-interpolating and interpolating
* non-interpolating
.model filesrc filesource (file="my-source.txt"
+ amploffset=[0.1 0.1] amplscale=[3.0 3.0]
+ timeoffset=0 timescale=1
+ timerelative=false amplstep=true)
* interpolating
.model filesrc2 filesource (file="my-source.txt"
+ amploffset=[0.1 0.1] amplscale=[3.0 3.0]
+ timeoffset=0 timescale=1
+ timerelative=false amplstep=false)
A1 %vd([1 0 N_IN 0]) filesrc
Rload N_IN 0 1k
A2 %vd([2 0 N_IN2 0]) filesrc2
Rload2 N_IN2 0 1k
.control
option NOINIT ACCT
tran 1us 100us
display
plot allv
.endc
.end
|