Dear sir,
I am trying to run a servo motor with following set of commands using gclib and Galil.h. Can you please suggest me what is error in this code.
#include "iostream"
#include "gclibo.h"
#include "Galil.h"
using namespace std;
GCon g=0;
int main ()
{
//GOpen();
Galil g("COM8 115200");
g.connection();
return 0;
}
Everything still works fine with Galil Tool Terminal. I'm using DevC++ 5.3
Thank you for your support.
troym_galil on 11/10/2016 - 15:56
Hello,
You are referencing two different Galil APIs. Galil.h is the older GalilTools API and gclibo.h is the newer gclib API.
http://galil.com/downloads/api
Please start with the gclib examples and use gclib only. Look in your gclib installation path for the example cpp files.
http://galil.com/sw/pub/all/doc/gclib/html/windows.html
We have several examples for various C/C++ compilers. Please select the one that works for you.
http://galil.com/sw/pub/all/doc/gclib/html/ccpp.html
Thanks,