¿ªÔÆÌåÓý

Re: Periodic signal from PWL file


 

¿ªÔÆÌåÓý

That is a "logical OR"? separating two optional forms of the command or of a command's parameters.

There is a formal mechanism for language specification (whose name I can't remember despite using is so many times for so long...).

If I manage to remember, I'll toss it your way.

Donald.

On 2023-07-08 11:56, Christoph wrote:

Fine so far, but using the | (vertical bar) gives an error.

PWL REPEAT FOREVER (file=Z:\Users\kuku\Documents\LTspiceXVII\pulses.txt) ENDREPEAT works, while
PWL REPEAT FOREVER (| file=Z:\Users\kuku\Documents\LTspiceXVII\pulses.txt) ENDREPEAT

doesn¡¯t So what is the purpose of the ?|¡®?

¡ª
Christoph

Am 08.07.2023 um 17:52 schrieb John Woodgate <jmw@...>:

If you look at the other examples on that page, you will see that the | character is only used with a file, not with a sequence of numbers.

======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only

Rayleigh, Essex UK

I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC)


On 2023-07-08 16:40, Christoph wrote:
Thanks. This worked. Though the ?|¡® symbol (pipe) is confusing. If it designates that the data is supposed to be piped from the file, it doesn¡¯t work. OTOH, should it mean an ?or¡°, then the empty left side of the ?|¡® shouldn¡¯t be empty but contain a
list of <time><value> pairs.

¡ª
Christoph



Am 08.07.2023 um 15:11 schrieb John Woodgate <jmw@...>:

There is an undocumented REPEAT feature in the Wiki at: /g/LTspice/wiki/13810

A list of data points or a file reference can be repeated a fixed amount of times <n>, or forever

PWL REPEAT FOR <n> (|<file spec>) ENDREPEAT
PWL REPEAT FOREVER (|<file spec>) ENDREPEAT

======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only

Rayleigh, Essex UK

I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC)


On 2023-07-08 13:51, Christoph wrote:
I have created  a pulse source from a PWL file.
It¡®s 32 samples of a signal.

Is it possible to make this pulse train periodic?

Or do I have to provide the pulse samples for every period by the PWL file?

¡ª
Christoph


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