<jupyter_start><jupyter_text>Example notebook for the Holzworth HS900B RF synthesizer First we need to import our driver and define our source<jupyter_code>from qcodes_contrib_drivers.drivers.Holzworth.HS900 import HS900
source = HS900(name="RF_source", address="TCPIP0::192.168.0.2::9760::SOCKET")<jupyter_output>Connected to: Holzworth Instrumentation HS9002B (serial:#020, firmware:Ver:2.22) in 0.28s<jupyter_text>Now we have access to our driver. Let us first see which channels are available<jupyter_code>source.channel_names()<jupyter_output><empty_output><jupyter_text>Now we can easily access any channel of our RF source by specifying the channel after source. Let's check the state of our two channels.<jupyter_code>source.CH1.state()
source.CH2.state()<jupyter_output><empty_output><jupyter_text>We can also change the state by giving 'ON' or 'OFF' as the argument<jupyter_code>source.CH1.state('OFF')
source.CH1.state()
source.CH1.state('ON')
source.CH1.state()<jupyter_output><empty_output><jupyter_text>Let's get an overview over the different parameters. We can see frequency, phase, power, temperature at the output and the state<jupyter_code>source.print_readable_snapshot(update=True)<jupyter_output>RF_source:
	parameter    value
--------------------------------------------------------------------------------
IDN           :	{'vendor': 'Holzworth Instrumentation', 'model': 'HS9002B', '...
channel_names :	['CH1', 'CH2'] 
ref           :	Internal 100MHz 
ref_locked    :	False 
timeout       :	5 (s)
RF_source_CH1:
	parameter value
--------------------------------------------------------------------------------
frequency :	1.7e+09 (Hz)
phase     :	12.5 (deg)
power     :	7.5 (dBm)
state     :	True 
temp      :	30 (C)
RF_source_CH2:
	parameter value
--------------------------------------------------------------------------------
frequency :	6e+09 (Hz)
phase     :	120 (deg)
power     :	-25 (dBm)
state     :	True 
temp      :	30 (C)<jupyter_text>Frequency is always indicated in Hertz, phase always in degree, power always in dBm and temperature always in C. Except of temperatures all quantities are settable, just by giving the value to be set as an argument.<jupyter_code>source.CH1.frequency(1.7e9)
source.CH2.frequency(6e9)<jupyter_output><empty_output><jupyter_text>As before we can read out the frequency by giving no argument.<jupyter_code>source.CH1.frequency()
source.CH2.frequency()<jupyter_output><empty_output><jupyter_text>Same applies to power and phase<jupyter_code>source.CH1.power(7.5)
source.CH2.power(-25)
source.CH1.power()
source.CH2.power()
source.CH1.phase(12.5)
source.CH2.phase(120)
source.CH1.phase()
source.CH2.phase()<jupyter_output><empty_output><jupyter_text>The temperature at the output can only be gotten and not be set.<jupyter_code>source.CH1.temp()
source.CH2.temp()<jupyter_output><empty_output><jupyter_text>Let's have a look at the summary of our set properties again.<jupyter_code>source.print_readable_snapshot(update=True)<jupyter_output>RF_source:
	parameter    value
--------------------------------------------------------------------------------
IDN           :	{'vendor': 'Holzworth Instrumentation', 'model': 'HS9002B', '...
channel_names :	['CH1', 'CH2'] 
ref           :	Internal 100MHz 
ref_locked    :	False 
timeout       :	5 (s)
RF_source_CH1:
	parameter value
--------------------------------------------------------------------------------
frequency :	1.7e+09 (Hz)
phase     :	12.5 (deg)
power     :	7.5 (dBm)
state     :	True 
temp      :	30 (C)
RF_source_CH2:
	parameter value
--------------------------------------------------------------------------------
frequency :	6e+09 (Hz)
phase     :	120 (deg)
power     :	-25 (dBm)
state     :	True 
temp      :	30 (C)
{'fraction_non_alphanumeric': 0.22456608811749, 'fraction_numerical': 0.03711615487316422, 'mean_word_length': 2.5881226053639845, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '4846', 'license': 'MIT', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1173, 'n_words': 299, 'path': 'docs/examples/Holzworth_HS900.ipynb', 'repo_name': 'janekfleper/Qcodes_contrib_drivers', 'size': '3745'}