summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:01:06 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:01:06 +0900
commite04c556d14aaef9a49dc0635f5cffa4afc4887c5 (patch)
tree4daaec8b479fed24e9145f885521dcbbf36bf14a
parent3bc15db1b4614a3b6992f759fd7b844844fc091a (diff)
only use attenuators in switchable zout units whem zout is 50 OhmsINSTRUMENT_6_4_27b
-rw-r--r--device-functions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c
index 87e67e9..37ad978 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -2983,6 +2983,9 @@ int Set_VI_Control(int parameter,int channel,float new_ampl)
continue;
} else if (globals.Flags.attenuators_enabled == 0) {
continue;
+ } else if (globals.Flash.switchable_zout[channel]
+ && (globals.ChannelState[channel].zout==globals.Flash.zout_min[channel])) {
+ continue;
} else {
use_atten = globals.Flash.attenuators[channel][new_atten_range];
}