| gclib 354 Communications API for Galil controllers and PLCs |

All Data Structures Files Functions Variables Typedefs Macros Pages

GReturn GCALL GRecordRate | ( | GCon | g,
|  | double | period_ms
| ) |  |

Sets the asynchronous data record to a user-specified period via `DR`.

Takes TM and product type into account and sets the `DR` period to the period requested by the user, if possible.

Parameters

  g | Connection's handle.
  period_ms | Period, in milliseconds, to set up for the asynchronous data record.

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

See x_grecord.cpp for an example.

Definition at line 173 of file gclibo.c.

References G_NO_ERROR, G_SMALL_BUFFER, GCmd(), GCmdD(), and GCmdT().