def format_SCPI_block_data(data):
    """
    Adds a SCPI block data header to the input string.

    :param string data:
    :return: The input string with a SCPI block data header prepended
    """
    l = str(len(data))
    return '#' + str(len(l)) + l + data
