29 static std::string libraryVersion();
30 static std::vector<std::string> addresses();
34 std::string connection();
37 std::string command(
const std::string& command =
"MG TIME",
const std::string&
terminator =
"\r",
const std::string&
ack =
":",
bool trim =
true);
38 double commandValue(
const std::string& command =
"MG TIME");
39 std::string
message(
int timeout_ms = 500);
40 int interrupt(
int timeout_ms = 500);
42 std::string programUpload();
43 void programDownload(
const std::string&
program =
"MG TIME\rEN");
44 void programUploadFile(
const std::string&
file =
"program.dmc");
45 void programDownloadFile(
const std::string&
file =
"program.dmc");
47 std::vector<double> arrayUpload(
const std::string& name =
"array");
48 void arrayDownload(
const std::vector<double>&
array,
const std::string& name =
"array");
49 void arrayUploadFile(
const std::string&
file =
"arrays.csv",
const std::string&
names =
"");
50 void arrayDownloadFile(
const std::string&
file =
"arrays.csv");
52 void firmwareDownloadFile(
const std::string&
file =
"firmware.hex");
54 int write(
const std::string&
bytes =
"\r");
57 std::vector<std::string> sources();
59 std::vector<char> record(
const std::string&
method =
"QR");
60 double sourceValue(
const std::vector<char>& record,
const std::string& source =
"TIME");
61 std::string source(
const std::string&
field =
"Description",
const std::string& source =
"TIME");
62 void setSource(
const std::string&
field =
"Description",
const std::string& source =
"TIME",
const std::string&
to =
"Sample counter");