Provides a fresh copy of the controller's data record. Data is cast into a union, GDataRecord.
g | Connection's handle. |
record | A pointer to the user's DataRecord union to hold the copy. |
method | Determines the method for acquiring the data.
|
When using G_DR
, the asynchronous data record must already be set up.
-s DR
must be used in the GOpen() address
string to subscribe to records. The driver will automatically set the second argument of DR
, where applicable.GRecordRate()
should be issued to set DR
to an appropriate interval, n. The interval must be no faster than the rate at which GRecord() is called.GRecord()
is called more slowly than the data record rate, stale data will be returned until GRecord()
has been called once for each record sent by the controller.GRecord() will block until the data record is received, or the transaction times out.
See x_grecord.cpp for an example. See x_nonblocking.cpp for an example of non-blocking usage.
Referenced by x_dr_motioncomplete(), x_grecord(), and x_nonblocking().