Friday, July 28, 2006

Gain Compression 1dB

resbw 3Khz max level 15dBm
rfin_pin= P_in +cal_ary[1,1]

===============================
the following loop will serach the slope Pout vs. Pin

找Pin=-11 dBm 開始 五步(每步增加1dBm) 迴圏內的 最大gain 當作 線性段的斜率


====================



P_=-11
For i=1 to 5 do

P_in=P_in+1
SET RF PORT RFIN_PIN SOURCE TO LEVEL (P_IN+CAL_ARY[1,1]) freq RF_in_Freq
SET RF PORT RFout_PIN measure to scalar with resbw 3Khz max level 15.0dBm freq RF_in_Freq
meaasure rf port rfout_pin scalar level into P1dB_out
MAES_PWR[i]=P1dB_out[1]+cal_ary[1,2]+gain_offset
search_gain[i]=meas_pwr[i]-P_in

if search_gain[i]>max_gain then
max_gain=search_gain[i]
peak_i=i
end if
end_for

0 Comments:

Post a Comment

<< Home