Example #1
0
 def measure_vs_pump_power(self, pump_powers, analyze=True):
     timestamp_start = a_tools.current_timestamp()
     self.on()
     label = f'pump_power_scan_pf{self.pump_freq() / 1e9:.3f}G_' + \
             f'sf{self.signal_freq() / 1e9:.3f}G'
     self._measure_1D(self.pump_power, pump_powers, label, analyze)
     self.off()
     label = f'pump_power_scan_off_sf{self.signal_freq() / 1e9:.3f}G'
     self._measure_1D(self.pump_power, pump_powers[:1], label, analyze)
     if analyze:
         timestamps = a_tools.get_timestamps_in_range(
             timestamp_start, label='pump_power_scan')
         ca.Amplifier_Characterization_Analysis(timestamps)
Example #2
0
 def measure_vs_signal_freq_pump_freq(self,
                                      signal_freqs,
                                      pump_freqs,
                                      analyze=True):
     timestamp_start = a_tools.current_timestamp()
     self.on()
     label = f'signal_freq_pump_freq_scan_pp{self.pump_power():.2f}dB'
     self._measure_2D(self.signal_freq, self.pump_freq, signal_freqs,
                      pump_freqs, label, analyze)
     self.off()
     label = f'signal_freq_pump_freq_scan_off'
     self._measure_1D(self.signal_freq, signal_freqs, label, analyze)
     if analyze:
         timestamps = a_tools.get_timestamps_in_range(
             timestamp_start, label='signal_freq_pump_freq_scan')
         ca.Amplifier_Characterization_Analysis(timestamps)