Add nmake build and capture run example
This commit is contained in:
12
main.cpp
12
main.cpp
@ -1251,7 +1251,17 @@ int run(const Config& cfg) {
|
||||
<< " ADC range: +/-" << range_to_volts(cfg.range) << " V\n"
|
||||
<< " max frames per packet per channel: " << target_frames << "\n";
|
||||
|
||||
CaptureFileWriter writer(cfg.csv_path, cfg.svg_path, cfg.live_html_path, cfg.live_json_path);
|
||||
CaptureFileWriter writer(cfg.csv_path,
|
||||
cfg.svg_path,
|
||||
cfg.live_html_path,
|
||||
cfg.live_json_path,
|
||||
cfg.full_res_live,
|
||||
cfg.live_history_packets,
|
||||
cfg.di1_group_average);
|
||||
std::unique_ptr<TtyProtocolWriter> tty_writer;
|
||||
if (cfg.tty_path) {
|
||||
tty_writer = std::make_unique<TtyProtocolWriter>(*cfg.tty_path);
|
||||
}
|
||||
writer.initialize_live_plot();
|
||||
writer.initialize_csv(cfg.channel_count, cfg.di1_mode == Di1Mode::Trace);
|
||||
std::cout << " live plot html: " << writer.live_html_path() << "\n"
|
||||
|
||||
Reference in New Issue
Block a user