I want to capture the Sampled PAC/PXF results at a given frequency/sideband using OCEAN command.
For, sampled results, we have to use only spectrum NOT sideband.
I am NOT able to find the OCEAN/SKILL command which can capture the Spectrum results at a given frequency.
In other words, Spectrum gives you values around all sidebands:- k* F_LO + Delta_f. Delta_f is the frequency range given on the PAC Form in absolute sweep mode. Assume Delat_f is varied from 0.1KHz to 0.2KHz in step of 0.1KHz. and F_LO=1GHz
Now, I want capture the values at :- ...-2*1GHz + 0.1KHz, -1*1GHz + 0.1KHz, 0.1KHz, 1*1GHz + 0.1KHz,2*1GHz + 0.1KHz..... and write into a file.
How, I can I get those values using OCEAN command.
Use the harmonic function. So if the total output (with all harmonics) is:
value(v("/out" ?result "pac_sampled") '"eventtime" 2.15e-05)
then you'd use:
harmonic(value(v("/out" ?result "pac_sampled") '"eventtime" 2.15e-05) 6)
where the last argument (6 above) is the sideband number (k in your equation above). You may need to take the value() of this to get a value at a specific frequency - not entirely sure what you're after here.
Thanks Andrew. If I want here the value at 1*1GHz + 0.1KHz (sideband here is 1), what I should do ?
Replace the 6 in the above expression with 1. As I said, the second argument to harmonic is the sideband number (k in your equation). That assumes that 0.1KHz is the PAC input frequency or PXF output frequency (the translation equation is the same in both cases; it gives you the PAC output frequency or the transfer function for that PXF input frequency).
But, here we are also sweeping Delat_f from 0.1KHz to 0.2KHz in step of 0.1KHz. The harmonic of 1 doesn't contain only one frequency. Do you think value(harmonic(value(v("/out" ?result "pac_sampled") '"eventtime" 2.15e-05) 1) 1*1GHz + 0.1KHz ) wiil work ?
Yes. That result will be complex by the way, so you may need to use mag() around the entire thing.
BTW, you can also use:
out=v("/out" ?result 'pac_sampled)sweepValues(out) ; this will give you a list of the eventtime values so you don't have to guess the time of the event