14 cout << Galil::libraryVersion() <<
'\n';
16 for (
string s :
Galil::addresses())
20 Galil g(
"192.168.0.100");
31 cout << g.connection() <<
'\n';
32 cout <<
"MGTIME: [" << g.command(
"MG TIME") <<
"]\n";
35 g.programDownload(
"WT 600\rMG \"Message from DMC code\", TIME\rEN");
36 cout <<
'\n' << g.programUpload() <<
'\n' <<
'\n';
40 cout << g.message(700);
44 down.push_back(3.1415);
45 down.push_back(2.7183);
46 down.push_back(1.6180);
48 g.arrayDownload(
down,
"mynums");
51 g.arrayDownloadFile();
53 for (
auto d :
up)
cout << d <<
" ";
61 g.write(
"MG TIME \r");
70 for (
auto s : sources)
73 << g.sourceValue(
r,
s)
76 << g.source(
"Description",
s)
77 <<
", " << g.source(
"Units",
s)
78 <<
", S" << g.source(
"Scale",
s)
79 <<
" O" << g.source(
"Offset",
s)
113 cout <<
"\n\nPress enter to exit...\n";
int main(int argc, char *argv[])
Main function for Commands Example.
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.