QDAC-II debuggingΒΆ

[1]:
from time import sleep
import pprint
pp = pprint.PrettyPrinter()
import numpy as np
from IPython.display import Image, display
from qcodes_contrib_drivers.drivers.QDevil import QDAC2
qdac_addr = '192.168.8.17'
qdac = QDAC2.QDac2('QDAC', visalib='@py', address=f'TCPIP::{qdac_addr}::5025::SOCKET')
Connected to: QDevil QDAC-II (serial:3, firmware:10-1.7) in 0.21s
[4]:
qdac.start_recording_scpi()
arrangement = qdac.arrange(
        # QDAC channels 1, 2, 3, 4 connected to sample
        contacts={'plunger2': 2, 'plunger3': 3},
        # DMM external trigger connected to QDAC Output Trigger 4
        output_triggers={'dmm': 4})
pp.pprint(qdac.get_recorded_scpi_commands())
['outp:trig4:sour int1', 'outp:trig4:widt 1e-06']
[5]:
sweep = arrangement.virtual_sweep2d(
        inner_contact='plunger2',
        inner_voltages=np.linspace(-0.2, 0.6, 5),
        outer_contact='plunger3',
        outer_voltages=np.linspace(-0.7, 0.15, 4),
        inner_step_time_s=10e-6,
        inner_step_trigger='dmm')
[6]:
qdac.start_recording_scpi()
sweep.start()
pp.pprint(qdac.get_recorded_scpi_commands())
['sour2:dc:mark:sst 1',
 'sour2:dc:trig:sour hold',
 'sour2:volt:mode list',
 'sour2:list:volt '
 '-0.2,0,0.2,0.4,0.6,-0.2,0,0.2,0.4,0.6,-0.2,0,0.2,0.4,0.6,-0.2,0,0.2,0.4,0.6',
 'sour2:list:tmod auto',
 'sour2:list:dwel 1e-05',
 'sour2:list:dir up',
 'sour2:list:coun 1',
 'sour2:dc:trig:sour bus',
 'sour2:dc:init:cont on',
 'sour2:dc:init',
 'sour2:dc:trig:sour int2',
 'sour2:dc:init:cont on',
 'sour2:dc:init',
 'sour3:dc:trig:sour hold',
 'sour3:volt:mode list',
 'sour3:list:volt '
 '-0.7,-0.7,-0.7,-0.7,-0.7,-0.416667,-0.416667,-0.416667,-0.416667,-0.416667,-0.133333,-0.133333,-0.133333,-0.133333,-0.133333,0.15,0.15,0.15,0.15,0.15',
 'sour3:list:tmod auto',
 'sour3:list:dwel 1e-05',
 'sour3:list:dir up',
 'sour3:list:coun 1',
 'sour3:dc:trig:sour bus',
 'sour3:dc:init:cont on',
 'sour3:dc:init',
 'sour3:dc:trig:sour int2',
 'sour3:dc:init:cont on',
 'sour3:dc:init',
 'tint 2']