¿ªÔÆÌåÓý

Re: Calculate average value of a waveform under specific conditions using .meas command


 

On Tue, May 6, 2025 at 06:25 PM, Tony Casey wrote:
The .MEAS trig? targ? syntax may be elegant and efficient, but it is hard to debug. It's usually simpler, and much easier to debug, to split the trig and targ conditions into two separate meas tests, then add a third that uses the results from those, e.g.:

.MEAS StartTime when V(out)=0 rise=1 td=100n
.MEAS StopTime when V(out)=0 rise=2 td=100n
.MEAS Vavg avg V(out) from StartTime to StopTime
Hello Tony,
?
Thank you for participating in this thread. If you look at the 2 images that I have posted in this album, I have to identify specific intervals and then do the operation, however, as there's ringing during the DCM stage I am unable to detect the exact time intervals where I have to perform the intended operation. Is there any intelligent way to automate this process?

With Regards,
Ankit

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