SPICE “V” element with “PWL” and “file” option generates a PWL(Piece-wise Linear) signal.
The syntax of “PWL” and “file” option is as follows.
Berkeley SPICE2, HSpice, PSpice, XSpice, LTspice
Syntax:
Vxxx n+ n- PWL file = <File Name> [chan = <nnn> ]
chan: Cannel Number 0〜65535, which is omissible parameter.
Example:
V1 N001 0 PWL file = wave_01.text
V2 N002 0 PWL file = “¥input_files¥wave_02.txt”
*wave_01.txt
0 0
10n 0
20n 5
100n 5
110n 0
…
*wave_02.txt
0,5
10n,5
20n,0
100n,0
110n,5
…
The symbol of LTspice’s “V” element with “PWL” and “file” option is “voltage” which is in “C:\Users\Username\Documents\LTspiceXVII\lib\sym” directory. If you want to set the parameters of that by GUI, click “Advanced” button on “Component” menu window and write a file name in “PWL FILE” field in “Functions” setting.