def setLimitsRaw(self, lower, upper): """Set the upper and lower limits of the analog trigger. The limits are given in ADC codes. If oversampling is used, the units must be scaled appropriately. :param lower: the lower raw limit :param upper: the upper raw limit """ if lower > upper: raise ValueError("Lower bound is greater than upper") hal.setAnalogTriggerLimitsRaw(self.port, lower, upper)