diff --git a/Python_script/VNA_dummy.py b/Python_script/VNA_dummy.py index b1fb7d8067974247d231bd63e8baf0d8c7808d12..e183c5f6a83446df918f324ef756e530b034c370 100644 --- a/Python_script/VNA_dummy.py +++ b/Python_script/VNA_dummy.py @@ -29,7 +29,7 @@ class VnaDummy: self.simulated_state = shared_simulated_state.get_simulated_state() self.last_simulated_time = self.simulated_state.simulated_time self.tau_mag = 25 - self.tau_phase = 50 + self.tau_phase = 35 self.reference_magnitude = 7 # at reference temp and reference hum self.reference_phase = 70 # at reference temp and reference hum self.reference_temp = 25 @@ -94,8 +94,9 @@ class VnaDummy: self.simulated_traces = trace self.result_format = result_format - real_val = self.simulated_magnitude * math.cos(self.simulated_phase) - imaginary_val = self.simulated_magnitude * math.sin(self.simulated_phase) + phase_radian = self.simulated_phase / 180. * math.pi + real_val = self.simulated_magnitude * math.cos(phase_radian) + imaginary_val = self.simulated_magnitude * math.sin(phase_radian) measurment_string = ' ' for i in range(50): diff --git a/Python_script/test_stand_parameter.json b/Python_script/test_stand_parameter.json index f840844ebd8629ccd15c4c3ca71c959e2990505d..fed78928657be2f31d0a7af6302c15d23c8eabde 100644 --- a/Python_script/test_stand_parameter.json +++ b/Python_script/test_stand_parameter.json @@ -1 +1 @@ -{"delta_temp": 0.2, "delta_hum": 0.2, "delta_mag":0.01 , "delta_phase": 0.05, "sleep_time": 1.0} \ No newline at end of file +{"delta_temp": 0.2, "delta_hum": 0.2, "delta_mag":0.01 , "delta_phase": 0.0005, "sleep_time": 1.0} \ No newline at end of file