| gclib 367 Communications API for Galil controllers and PLCs |

All Data Structures Files Functions Variables Typedefs Macros Pages

GReturn GCALL GCmd | ( | GCon | g,
|  | GCStringIn | command
| ) |  |

Wrapper around GCommand for use when the return value is not desired.

The returned data is still checked for error, e.g. `?` or timeout, but is not brought out through the prototype.

Parameters

  g | Connection's handle.
  command | Null-terminated command string to send to the controller.

Returns
  The success status or error code of the function. See gclib_errors.h for possible values.

See x_gcommand.cpp for an example.

Definition at line 106 of file gclibo.c.

References G_SMALL_BUFFER, and GCommand().

Referenced by GRecordRate(), and H_DownloadArraysFromList().