gclib  423
Communications API for Galil controllers and PLCs

◆ GRecordRate()

GCLIB_DLL_EXPORTED 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
gConnection's handle.
period_msPeriod, 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 199 of file gclibo.c.

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