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

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