Skip to content

Commit 5377b59

Browse files
committed
Placeholder values for scale factor when only static channels are used.
1 parent d7b0dfc commit 5377b59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

labscript_devices/AD9959DDSSweeper/labscript_devices.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ def generate_code(self, hdf5_file):
228228
dyn_table['phase%d' % i][:] = dds.phase.raw_output
229229

230230
# conversion to AD9959 units is done on the Pi Pico
231+
for connection in stat_DDSs:
232+
dds = stat_DDSs[connection]
233+
dds.frequency.scale_factor = 1.0
234+
dds.phase.scale_factor = 1.0
235+
dds.amplitude.scale_factor = 1.0
236+
231237
static_dtypes = {
232238
'names':['%s%d' % (k, i) for i in stat_DDSs for k in ['freq', 'amp', 'phase'] ],
233239
'formats':[f for i in stat_DDSs for f in ('float', 'float', 'float')]

0 commit comments

Comments
 (0)