*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit de9afd46 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Spectrum: Fixed label of signle tone in buffer for manual replay

parent 87eddeee
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ class SpectrumAWGWorker(Worker):
return{}
elif type(values) is float:
# Stream single frequency
data = SpectrumCard.generate_single_tone(values*1e6,4096,self.sample_rate) # TODO: Set num_samples dynamically
data = SpectrumCard.generate_single_tone(values*1e6,4096*5,self.sample_rate) # TODO: Set num_samples dynamically
self.AWG.transfer_sequence_replay_samples(len(self.smart_cache),data) # Write in next free memory
self.AWG.seq_set_sequence_step(0,len(self.smart_cache),0,1,'on_trigger',last_step=False)
elif type(values) is int:
......@@ -84,7 +84,7 @@ class SpectrumAWGWorker(Worker):
if len(instruction)==2:
# SINGLE TONE
data = SpectrumCard.generate_single_tone(instruction[1],num_samples,self.sample_rate)
initial_values[memory_index] = f"{instruction[0]}Hz"
initial_values[memory_index] = f"{instruction[1]*1e-6:.3f}MHz"
elif (len(instruction)-1)%3 == 0:
# MULTI TONE
num_tones = (len(instruction)-1)//3
......
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