Skip to content
Snippets Groups Projects
Commit 73490d09 authored by Sander de Snoo's avatar Sander de Snoo
Browse files

added set_digital_filter_mode

parent 643cc465
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ class MockM3202A(Instrument):
super().__init__(name)
self._slot_number = slot
self._chassis_numnber = chassis
self.digital_filter_mode = 1
self.memory_manager = MemoryManager()
self.channel_data = {}
self.channel_prescaler = {}
......@@ -79,6 +80,9 @@ class MockM3202A(Instrument):
logging.info(f'{self.name}.upload_waveform({slot}, {size})')
return WaveformReference(slot, size, self.memory_manager, data)
def set_digital_filter_mode(self, mode):
self.digital_filter_mode = mode
def set_channel_amplitude(self, amplitude, channel):
logging.info(f'{self.name}.set_channel_amplitude({amplitude}, {channel})')
self.amplitudes[channel] = amplitude
......
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