Thanks, Dennis, for pointing that out. At the moment I'm trying to get the points row defined by fixed time points with relative steps between each new pulse.
It is allowed to change between absolute and relative timepoints, right? Is the unit "u" or "us" in the format of the time values?
It seems that the error occurs after 64 steps:
0.00423177 is not before 0.00423177
I uploaded the project file and a little explanation. Thanks.
Am 25.04.2025 um 16:31 schrieb Dennis <dennisc@...>:
On Fri, Apr 25, 2025 at 07:49 AM, Christoph wrote:
I'm assuming that the file format is ...
The file format is described in the LTspice help (Help->LTspice Help or F1) under Circuit Elements -> Voltage Source in the section Arbitrary Piece-Wise Linear Voltage Source.
?
There is no structure to the sequence of datapoints. Each point defines the voltage at a point in time. LTspice connects these points with straight lines from the previous point. The PWL source has no knowledge of Trise, Ton, Tfall, or Toff. It's just a sequence of (time, voltage) pairs.?
?
The FILE=<filename> format just allows the (time, voltage) pairs to be read in from a file rather than included directly on the spice line that defines the voltage source.
?
There are a few features which allow easier definition of the time points, most importantly, a "+" before the time value defines a relative time, the given value is the difference between the new time point and the previous time point. There is also an option for a TIME_SCALE_FACTOR parameter on the PWL source which could be set to 1u to define all your times in microseconds rather than seconds, so you don't? need the "u" multiplier on each time point value.??
?
As others have said, if you want to define pulsed waveforms you should perhaps look at the section Time-Dependent Pulsed Voltage Source earlier in the same help page.