スカラー・ネットワーク・アナライザが出来た?(2)

ステップアッテネータを、1dB間隔で変化させています。

暫定的に、こんな関数で変換を行っています。

def s_meter2db(s_meter): # S0=000, S9=120, S9+60dB=240; S9=-73dBm
	if s_meter < 120:
		s_meter_db = 0.2 * (s_meter - 120.0) - 73.0
	else:
		s_meter_db = 0.5 * (s_meter - 120.0) - 73.0
	return s_meter_db
6 / 11
: Change settings and Hit return to continue..
irep =  5
freq[kHz] = 6000.0 170 -48.0 [dBm]
freq[kHz] = 6200.0 170 -48.0 [dBm]
freq[kHz] = 6400.0 170 -48.0 [dBm]
freq[kHz] = 6600.0 170 -48.0 [dBm]
freq[kHz] = 6800.0 170 -48.0 [dBm]
freq[kHz] = 7000.0 170 -48.0 [dBm]
freq[kHz] = 7200.0 170 -48.0 [dBm]
freq[kHz] = 7400.0 170 -48.0 [dBm]
freq[kHz] = 7600.0 170 -48.0 [dBm]
freq[kHz] = 7800.0 170 -48.0 [dBm]
7 / 11
: Change settings and Hit return to continue..
irep =  6
freq[kHz] = 6000.0 168 -49.0 [dBm]
freq[kHz] = 6200.0 168 -49.0 [dBm]
freq[kHz] = 6400.0 168 -49.0 [dBm]
freq[kHz] = 6600.0 168 -49.0 [dBm]
freq[kHz] = 6800.0 168 -49.0 [dBm]
freq[kHz] = 7000.0 168 -49.0 [dBm]
freq[kHz] = 7200.0 168 -49.0 [dBm]
freq[kHz] = 7400.0 168 -49.0 [dBm]
freq[kHz] = 7600.0 168 -49.0 [dBm]
freq[kHz] = 7800.0 168 -49.0 [dBm]
8 / 11
: Change settings and Hit return to continue..
irep =  7
freq[kHz] = 6000.0 166 -50.0 [dBm]
freq[kHz] = 6200.0 166 -50.0 [dBm]
freq[kHz] = 6400.0 166 -50.0 [dBm]
freq[kHz] = 6600.0 166 -50.0 [dBm]
freq[kHz] = 6800.0 166 -50.0 [dBm]
freq[kHz] = 7000.0 166 -50.0 [dBm]
freq[kHz] = 7200.0 166 -50.0 [dBm]
freq[kHz] = 7400.0 166 -50.0 [dBm]
freq[kHz] = 7600.0 166 -50.0 [dBm]
freq[kHz] = 7800.0 165 -50.5 [dBm]

これは、5dB間隔です。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.