def gen_waveform_name(ch, cw):
    """
    Return a standard waveform name based on channel and codeword number.

    Note the use of 1-based indexing of the channels. To clarify, the
    'ch' argument to this function is 0-based, but the naming of the actual
    waveforms as well as the signal outputs of the instruments are 1-based.
    The function will map 'logical' channel 0 to physical channel 1, and so on.

    """
    return 'wave_ch{}_cw{:03}'.format(ch+1, cw)