Skip to content
Snippets Groups Projects
Commit c8f58cea authored by Stephan's avatar Stephan
Browse files

test keysight

parent 1213e1da
No related branches found
No related tags found
No related merge requests found
File added
......@@ -21,6 +21,12 @@ class pulselib:
self.backend = 'keysight'
self.frequency = 1e9
self.devices = []
def add_awgs(self, awg):
for i in awg:
self.devices.append(i)
def mk_segment(self, name):
return self.segments_bin.new(name)
......@@ -176,6 +182,7 @@ class segment_bin():
return False
p = pulselib()
seg = p.mk_segment('test')
# append functions?
......@@ -204,30 +211,31 @@ seg.B1.plot_sequence()
# seg.insert_mode()
# seg.clear()
# class channel_data_obj():
# #object containing the data for a specific channels
# #the idea is that all the data is parmeterised and will be constuceted whenever the function is called.
# # class channel_data_obj():
# # #object containing the data for a specific channels
# # #the idea is that all the data is parmeterised and will be constuceted whenever the function is called.
# self.my_data_array = np.empty()
# # self.my_data_array = np.empty()
# add_data
# # add_data
# # class block_pulses:
# # # class to make block pulses
# class block_pulses:
# # class to make block pulses
# # how to do pulses
# # -> sin?
# # -> pulses?
# # -> step_pulses
# how to do pulses
# -> sin?
# -> pulses?
# -> step_pulses
# # p = pulselin()
# p = pulselin()
# # seg = pulselib.mk_segment('manip')
# # seg.p1.add_pulse(10,50, 20, prescaler= '1')
# # seg.p3.add_pulse(12,34, 40,)
# # seg.k2.add_pulse_advanced([pulse sequence])
# # seg.add_np(array, tstart_t_stop
# # seg.p5.add_sin(14,89, freq, phase, amp)
# seg = pulselib.mk_segment('manip')
# seg.p1.add_pulse(10,50, 20, prescaler= '1')
# seg.p3.add_pulse(12,34, 40,)
# seg.k2.add_pulse_advanced([pulse sequence])
# seg.add_np(array, tstart_t_stop
# seg.p5.add_sin(14,89, freq, phase, amp)
# # pulse
# pulse
import qcodes.instrument_drivers.Keysight.SD_common.SD_AWG as keysight_awg
import qcodes.instrument_drivers.Keysight.SD_common.SD_DIG as keysight_dig
awg1 = keysight_awg.SD_AWG('awg1', chassis = 0, slot= 2, channels = 4, triggers= 8)
awg2 = keysight_awg.SD_AWG('awg2', chassis = 0, slot= 3, channels = 4, triggers= 8)
awg3 = keysight_awg.SD_AWG('awg3', chassis = 0, slot= 4, channels = 4, triggers= 8)
awg4 = keysight_awg.SD_AWG('awg4', chassis = 0, slot= 5, channels = 4, triggers= 8)
awg1.set_channel_frequency(50e6,1,True)
awg1.set_channel_frequency(50e6,2,True)
awg2.set_channel_frequency(50e6,1,True)
# set_channel_phase
awg1.set_channel_amplitude(1,1)
# set_channel_offset
awg1.set_channel_wave_shape(4,1)
# load_waveform
# load_waveform_int16
# reload_waveform_int16
# flush_waveform
# awg_queue_waveform
# awg_queue_config
# awg_flush
# awg_start
# awg_start_multiple
# awg_stop_multiple
# awg_config_external_trigger
# import base_pulse
# p = base_pulse.pulselib()
# p.add_awgs([awg1,awg2,awg3,awg4])
# seg = p.mk_segment('test')
# # append functions?
# seg.B0.add_pulse([[10,5]
# ,[20,5]])
# seg.B0.add_pulse([[20,0],[30,5], [30,0]])
# seg.B0.add_block(40,70,2)
# seg.B0.add_pulse([[70,0],
# [80,0],
# [150,5],
# [150,0]])
# # seg.B0.repeat(20)
# # seg.B0.wait(20)
# # print(seg.B0.my_pulse_data)
# # seg.reset_time()
# seg.B1.add_pulse([[10,0],
# [10,5],
# [20,5],
# [20,0]])
# seg.B1.add_block(20,50,2)
# seg.B1.add_block(80,90,2)
# seg.B1.plot_sequence()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment