pub fn to_csv(channels: &[Channel]) -> StringExpand description
A CSV with one column per channel, one row per time any channel changes, and values held between changes.
The first column is time_ns. A channel with analog samples gets a second
column named <name>_volts; a level is written 1, 0 or z.