Changed AnalogSwitch to use an AnalogChannel as constructor parameter