bessib
New Member
Offline
Posts: 2
|
Hello,
i want to model Gain Compression of a mixer caused by insufficient LO-Power with the table_model function. Here is my script and the table file:
V(in) <+ 50*I(in); //50Ohms input Power_LO_Vsquared = pow(V(LO),2)/50; //determining LO-Power Power_LO_dBm = abs(10*log(1e-30+Power_LO_Vsquared/1e-3)); //conversion to dBm Gain_tbl_dB = $table_model(Power_LO_dBm, "mixer_gain_temp2.tbl",""); //loading Gain from file Gain_tbl_V = pow(10,Gain_tbl_dB/20); //conversion of Gain V(out) <+ Gain_tbl_V*V(in); //weighting Input with Gain
#mixer_gain_temp2.tbl # #LO-Power(dBm) Gain(dB) 0 2.6 1 3.6 2 6 3 5.6 4 6.6 5 7.6 6 8.4 7 9.2
The script reads out the correct Gain but unfortunately there must be a problem in mulitplying the Gain with the input voltage. Can anyone help me?
Thanks!
|