def METHOD_NAME(self, on):
    """
    Turn the laser on/off.
    """
    if on and (not self.on):
        self.sendCommand("SOURce:AM:STATe ON")
        self.waitResponse()
        self.on = True
    if (not on) and self.on:
        self.sendCommand("SOURce:AM:STATe OFF")
        self.waitResponse()
        self.on = False