Skip to content

add option to take waveform with multi channels in a single shot #12

@jbaltes

Description

@jbaltes

def take_waveform_word(host, channel):

suggestion:
e.g. list from call: channels = [ 'CHANNEL1', 'CHANNEL2', 'FUNCTION1' ]
ChannelData = namedtuple('ChannelData', 'id name data inc offs')
values = [words_to_values(v, channels, sample_time=1) for v in data_to_matrix(channels)]
return '\n'.join(values)

def chunks_matrix(m, n):
"""Yield successive n-sized chunks from l derived from m."""
for i in range(0, len(m[0]), n):
out = []
for l in m:
out += l[i:i + n]
yield (out)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions