Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 62623

Forum Post: Sweep over frequency and use frequency for calculations

$
0
0
Hello, I have the problem that I want to sweep over frequency (for example with pss) and then use the frequency itself in calculations. The problem: Not only the results traces are a vector but also the frequency variable itself! In the calculations, I would like to use the single frequency (scalar) as argument, not the entire vector. Example: Sweep over input frequency fin Expression: dB20((thd(v("/vod" ?result "pss_td") 0 (1 / VAR("fin")) VAR("NDFT") VAR("fin")) / 100)) Plot this expression vs. fin ADE L accepts this expression but the results are wrong (compared with just a single run). I assume the reason is it supplies the entire array of fin when I use VAR("fin") . instead only the one from the current run. It's a little intricate ... any way around here?

Viewing all articles
Browse latest Browse all 62623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>