14 #define DLL_IMPORT_EXPORT __declspec(dllexport)
17 #define DLL_IMPORT_EXPORT
20 #define DLL_IMPORT_EXPORT
29 static std::string libraryVersion();
30 static std::vector<std::string> addresses();
32 Galil(std::string address =
"");
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();
58 void recordsStart(
double period_ms = -1);
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");
GReturn message(GCon g)
Demonstrates how to receive messages from the controller and detect differences in Trace and crashed ...