Skip to main content

to_csv

Function to_csv 

Source
pub fn to_csv(channels: &[Channel]) -> String
Expand 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.