@@ -47,8 +47,40 @@ The number is assigned by the controlling computer and will need to be determine
4747Usage
4848~~~~~
4949
50+ An example connection table with the default settings of the sweeper:
5051
51- An example connection table that uses the PrawnBlaster and sweeper with an external, 100 MHz clock:
52+ .. code-block :: python
53+
54+ from labscript import start, stop, add_time_marker, AnalogOut, DigitalOut, DDS , StaticDDS
55+ from labscript_devices.PrawnBlaster.labscript_devices import PrawnBlaster
56+ from labscript_devices.AD9959DDSSweeper.labscript_devices import AD9959DDSSweeper
57+
58+ # prawnblaster for external timing
59+ prawn = PrawnBlaster(
60+ name = ' prawn' ,
61+ com_port = ' COM7' ,
62+ num_pseudoclocks = 1
63+ )
64+
65+ AD9959 = AD9959DDSSweeper(
66+ name = ' AD9959' ,
67+ parent_device = prawn.clocklines[0 ],
68+ com_port = ' COM11' ,
69+ )
70+
71+
72+ chann0 = DDS( ' chann0' , AD9959 , ' channel 0' )
73+ chann1 = DDS( ' chann1' , AD9959 , ' channel 1' )
74+ chann2 = StaticDDS( ' chann2' , AD9959 , ' channel 2' )
75+ chann3 = StaticDDS( ' chann3' , AD9959 , ' channel 3' )
76+
77+
78+ start()
79+
80+ stop(1 )
81+
82+ An example connection table that uses the PrawnBlaster and sweeper with an
83+ external, 100 MHz clock and pll multiplier of 5:
5284
5385.. code-block :: python
5486
@@ -67,7 +99,8 @@ An example connection table that uses the PrawnBlaster and sweeper with an exter
6799 name = ' AD9959' ,
68100 parent_device = prawn.clocklines[0 ],
69101 com_port = ' COM11' ,
70- ref_clock_external = 1 ,
102+ pico_board = ' pico2' ,
103+ ref_clock_external = 1 ,
71104 ref_clock_frequency = 100e6 ,
72105 pll_mult = 5
73106 )
0 commit comments