gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ GRecordRate()

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 342 of file gclibo.c.

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

Referenced by x_dr_motioncomplete(), x_grecord(), and x_nonblocking().