From e04c556d14aaef9a49dc0635f5cffa4afc4887c5 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:01:06 +0900 Subject: only use attenuators in switchable zout units whem zout is 50 Ohms --- device-functions.c | 3 +++ 1 file changed, 3 insertions(+) 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]; } -- cgit