12 char buf[G_SMALL_BUFFER];
13 cout <<
"***************************************************************\n";
14 cout <<
"Example GMessage() usage\n";
15 cout <<
"***************************************************************\n";
36 while ((rc = GMessage(g, buf, G_SMALL_BUFFER)) == G_NO_ERROR)
40 while (buf[b] !=
'\0')
48 cout <<
'<' <<
message <<
">\n";
62 e(GProgramDownload(g,
"i=0\r" 80 while ((rc = GMessage(g, buf, G_SMALL_BUFFER)) == G_NO_ERROR)
84 while (buf[b] !=
'\0')
94 cout <<
"Standard Line: ";
96 cout <<
"Crashed Code: ";
98 cout <<
"Trace Line: ";
116 e(GUtility(g, G_UTIL_GCAPS_KEEPALIVE, NULL, NULL));
118 return GALIL_EXAMPLE_OK;
void e(GReturn rc)
A trivial, C++ style return code check used in Galil's examples and demos.
GReturn message(GCon g)
Demonstrates how to receive messages from the controller and detect differences in Trace and crashed ...