Skip to content
Snippets Groups Projects

Draft: channel assignment unsafe hotfix

Closed Max Oberländer requested to merge alazar_issues into main
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -111,7 +111,12 @@ class AlazarATS9xx0(DAQ):
masks = [PeriodicMask("M",
begin=0, end=averaged_samples, period=averaged_samples,
channel=self.hardware_channel, skip=0, take=settings.n_pts)]
#!!! the channel to be inserted in the mask definition does not
# correspond to the 'Channel' from atsaverage.
# The latter is binary-based (A,B,C,D)=(1,2,4,8,),
# the former is integer-0-based (A,B,C,D)=(0,1,2,3),
# -> unsafe hotfix convert for now
channel=bin(self.hardware_channel).count('0')-1, skip=0, take=settings.n_pts)]
operations = [Downsample('M', 'M')]
board_spec = self.card.get_board_spec()
Loading