Forums › SA Series Discussions › How to get the power in the specific frequency with api? › Reply To: How to get the power in the specific frequency with api?
Andrew
Hello David,
What is the frequency of the bin you are sampling? You can determine the frequency of any point in the resulting sweep with the formula
f = start + index * bin_size;
Replace index with sweepLen/2 for your example. The center point is not necessarily the center frequency of the sweep. Use the equation to get the index of the frequency you desire.
Also, without knowing your specific application, you will likely want to sample the returned ‘max’ array. Depending on RBW and VBW they are not necessarily the same when the SA_MIN_MAX detector is selected.
Let me know if this does not resolve the discrepancy you are seeing.
Regards,
A.J.
