¿ªÔÆÌåÓý

Re: Sine modulated PWM voltage source (PWL file=xxx)


 

On Fri, Apr 25, 2025 at 09:59 AM, Christoph wrote:
could it be that I'm assuming a different file format as I posted in the other email:
File format?? No.? The file formal for a PWL file is ordinary text.
?
Data format?? Possibly.
?
PWL data is always pairs of numbers, where the first number of the pair is time, and the second number is the voltage or current.? This is very well documented and every SPICE since the beginning of time uses the same format.

Syntax: Vxxx n+ n- PWL(t1 v1 t2 v2 t3 v3...)

Note that "t1 v1" is the first pair, "t2 v2" is the second pair, and so on.
?
PWL means "piece-wise linear".? The data points describe a set of points, and then LTspice "connects the dots" between the points, giving you a piece-wise linear waveform.
?
Timepoint ??????????????????????????V0 Trise. ??Von Ton ?????????????????????????????????????V? ?Tfall ??????Toff
0.000000000000000000us 0 ?0.010us 5 ???32.552083333333335702us 5 ??0.010us 0
I don't know where you got that from, but it definitely does not describe PWL.? That is similar to the description of a SPICE "PULSE" source, not PWL.? But it is incorrect for PULSE too.? I think it is not any SPICE syntax.
?

Some (undocumented) data formatting?
PWL is not "undocumented".? What you used above is undocumented, and incorrect, and definitely will not work for a PWL file.
?
Andy
?

Join [email protected] to automatically receive all group messages.