setup_monitoring_version
This is a function for setting version information of monitoring information transmitted from the robot controller.
This function is only available in M2.5 version or higher.
Definition
DRFLEx.h within class CDRFLEx, public section (line 991)
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.