| gclib 2.0.7 Communications API for Galil controllers and PLCs |

gcl_simple.cpp
Go to the documentation of this file.
1
4 //g++ test.cpp -lgalil -lgclib -lgclibo -o test
5
6 #include "Galil.h"
7 #include <iostream>
8
9 using namespace std;
10
11 int main()
12 {
13 try
14 {
15 cout << Galil::libraryVersion() << '\n';
16 Galil g("10.1.3.169");
17 cout << g.connection() << '\n';
18 return 0;
19 }
20 catch(string s)
21 {
22 cout << s << endl;
23 return 1;
24 }
25 }
Galil.h
Galil
Definition: Galil.h:26
main
int main(int argc, char *argv[])
Main function for Commands Example.
Definition: commands_example.cpp:18