gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ 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.