.meas statements seem wrong?

I have tried the following .meas commands on a simple passive BPF, however the results seem very odd.
I would really appreciate it if someone can help me create statements to measure the center frequency and the 3db bandwidth.

TestF returns (nan, nan)
the other one gives a wrong result? unless I am wrong about how it is evaluating

This is the method I used for center frequency and BW for band pass filter.
You can also go to download Command Reference Guideline in this link, and currently at page 18 is example of .meas including Q-factor.
Qspice/Guideline at main · KSKelvin-Github/Qspice

BPF.qsch (3.6 KB)

I discovered that my file somehow got glitched afterwards were the .meas statements simply were not executing? like it gave no error in parsing nor wrong evaluation, it just didn’t output anything.
Anyway after another trial and your help it seems to be working properly now.
Thank you so much. I cannot put into words how much you have helped me.

1 Like