Skip to content

Commit d7b0dfc

Browse files
committed
Conversion to DDS units is done on Pi Pico for set_output.
1 parent f1985c5 commit d7b0dfc

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

labscript_devices/AD9959DDSSweeper/labscript_devices.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,10 @@ def generate_code(self, hdf5_file):
227227
dyn_table['amp%d' % i][:] = dds.amplitude.raw_output
228228
dyn_table['phase%d' % i][:] = dds.phase.raw_output
229229

230-
# conversion to AD9959 units
231-
for connection in stat_DDSs:
232-
dds = stat_DDSs[connection]
233-
dds.frequency.raw_output, dds.frequency.scale_factor = self.quantise_freq(dds.frequency.raw_output, dds)
234-
dds.phase.raw_output, dds.phase.scale_factor = self.quantise_phase(dds.phase.raw_output, dds)
235-
dds.amplitude.raw_output, dds.amplitude.scale_factor = self.quantise_amp(dds.amplitude.raw_output, dds)
236-
230+
# conversion to AD9959 units is done on the Pi Pico
237231
static_dtypes = {
238232
'names':['%s%d' % (k, i) for i in stat_DDSs for k in ['freq', 'amp', 'phase'] ],
239-
'formats':[f for i in stat_DDSs for f in ('<u4', '<u2', '<u2')]
233+
'formats':[f for i in stat_DDSs for f in ('float', 'float', 'float')]
240234
}
241235

242236
static_table = np.zeros(1, dtype=static_dtypes)

0 commit comments

Comments
 (0)