Diff of /branches/Gxsm-2x3-transition-sig/plug-ins/hard/MK3-A810_spmcontrol/python_scripts/mk3_spm_configurator.py [r3528] .. [r3529] Maximize Restore

  Switch to side-by-side view

--- a/branches/Gxsm-2x3-transition-sig/plug-ins/hard/MK3-A810_spmcontrol/python_scripts/mk3_spm_configurator.py
+++ b/branches/Gxsm-2x3-transition-sig/plug-ins/hard/MK3-A810_spmcontrol/python_scripts/mk3_spm_configurator.py
@@ -1214,8 +1214,13 @@
 		    def update_meter(meter_set, _tap, signal):
 #			    [value, v, signal] = self.mk3spm.get_monitor_signal (_tap)
 			    value = self.mk3spm.get_monitor_data (_tap)
-			    v = value * signal[5]
-			    maxdb = 20.*math.log10((1<<31)*math.fabs(signal[5]))
+			    if signal[2] == 'analog.rms_signal':
+				    v = math.sqrt(math.fabs(value) * signal[5])
+				    maxdb = 20.*math.log10((1<<31)*math.fabs(math.sqrt(signal[5])))
+#				    print value, v, maxdb, signal[5], signal[2] 
+			    else:
+				    v = value * signal[5]
+				    maxdb = 20.*math.log10((1<<31)*math.fabs(signal[5]))
 			    # _labsv("%+06.2f " %v+signal[4])
 
 			    if v >= 0: