<jupyter_start><jupyter_text>QCoDeS Example with R&S HMC 8043 Power Supply<jupyter_code>import qcodes as qc
import qcodes.instrument_drivers.rohde_schwarz.HMC8043 as hmc8043<jupyter_output><empty_output><jupyter_text>Create the instrument (in this case a HMC8043 connected with ethernet to the 10.0.1.1 address)<jupyter_code>ps = hmc8043.RohdeSchwarzHMC8043('ps-1', 'TCPIP0::10.0.1.1::inst0::INSTR')<jupyter_output>Connected to: Rohde&Schwarz HMC8043 (serial:026373828, firmware:HW42000000,SW01.303) in 0.44s<jupyter_text>You can set voltage and/or current to any channel<jupyter_code>ps.ch1.set_voltage(1)
ps.ch1.set_current(0.2)
ps.ch2.set_voltage(10)<jupyter_output><empty_output><jupyter_text>Channel(s) should be turned on, as well as the master on/off<jupyter_code>ps.ch1.state('ON')
ps.state('ON')<jupyter_output><empty_output><jupyter_text>Voltage, current and power can be measured<jupyter_code>print('V1=', ps.ch1.voltage())
print('I1=', ps.ch1.current())
print('P1=', ps.ch1.power())<jupyter_output>V1= 1.0
I1= 0.0
P1= 0.0<jupyter_text>And finally turned off<jupyter_code>ps.ch1.state('OFF')
ps.state('OFF')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1402439024390244, 'fraction_numerical': 0.07926829268292683, 'mean_word_length': 8.820512820512821, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '269475', 'license': 'MIT', 'n_tokens_mistral': 534, 'n_tokens_neox': 486, 'n_words': 79, 'path': 'docs/examples/driver_examples/Qcodes example with Rohde Schwarz HMC8043.ipynb', 'repo_name': 'jakeogh/Qcodes', 'size': '1148'}