On 04/08/2015 11:55 AM, John Larkin wrote:
> On Wed, 08 Apr 2015 04:49:30 -0400, Phil Hobbs
> <
pcdhSpamM...@electrooptical.net> wrote:
>
>> Awhile back we were trying to figure out how to make a voltage-variable
>> delay line in LTspice. Turns out there is a way to use one signal to
>> delay another: there's an undocumented function delay(x,y). Unlike the
>> documented one, delay y can be a simulation variable, like so:
>>
>
>
> It avoids complications by refusing to do negative delay.
>
> We're about to ship the first unit of an 8-channel waveform playback
> box. It stores big waveform files on an SD card and each channel has a
> DDS-clocked FIFO and a DAC. We added a programmable time-shift
> parameter per channel, that allows us to tweak time alignment, up to
> +-999.999 samples, fractional part interpolated, with obvious
> causality concerns. We pad the waveform data with 1024 zero samples,
> when we open the file and again at EOF.
>
> How did you find the delay() function? I bet LT Spice has all sorts of
> undocumented tricks. Even the documented features aren't usually very
> well documented.
>
>