setup_monitoring_version
This function sets the version of the monitoring information transmitted from the robot controller.
This function is only available in M2.5 version or higher.
The monitoring version returns to 0 when the connection ends. Call setup_monitoring_version again after every open_connection.
Definition
DRFLEx.h within class CDRFLEx, public section
bool setup_monitoring_version(int iVersion) {
return _setup_monitoring_version(_rbtCtrl, iVersion);
};
Parameter
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
iVersion |
int |
Version information |
Return
Value |
Type |
Description |
|---|---|---|
0 |
int |
Failed |
1 |
int |
Success |
Example
drfl.setup_monitoring_version(1); // Set monitoring data version information to 1
Setting the monitoring version to 1 enables use of the extended monitoring data functions, such as set_on_monitoring_data_ex() and set_on_monitoring_ctrl_io_ex(), which provide higher-resolution and additional state information from the controller.