def METHOD_NAME(self, channel, amplitude):
    assert channel > 0, "setAmplitude: channel out of range " + str(channel)
    assert channel <= 8, "setAmplitude: channel out of range " + str(channel)
    cmd = "L" + str(channel) + "D{0:.2f}".format(amplitude)