Programming instructions

Source Components
Multisim Component Reference Guide 1-16 ni.com
1.20.1 PWL Source Input Text File Specification
This file must contain a list of time and voltage or current points. Each line of the file
represents one point. The format is:
Time <space(s)> Voltage or Time <space(s)> Current
You can leave any amount of space between the Time and Voltage/Current fields. Here is an
example of an ideally formatted input file:
Please note the following special considerations:
If the earliest input point is not at time 0.0, then the PWL source gives the output of the
earliest time point from time 0.0 to that earliest time.
After the latest input point, the PWL source gives the output of the latest time point in the
file from that latest time until the simulation ends.
Between input points, the PWL source uses linear interpolation to generate output.
The PWL source can handle unsorted data. It sorts the points by time before the simulation
starts.
00
2.88e-06 0.0181273
5.76e-06 0.0363142
1e-05 0.063185
1.848e-05 0.117198
If the PWL source encounters... It will...
non-whitespace at beginning of line ignore the line
non-numeric data following correctly formatted
data
accept data, ignore non-
numeric data
non-whitespace between Time and Voltage/
Current
ignore the line
whitespace preceding correctly formatted data accept data, ignore
whitespace
ComponentRef.book Page 16 Thursday, December 7, 2006 10:12 AM