Skip to main content
Skip table of contents

CDRFLEx.set_on_monitoring_data_ex

Features

This is a function for registering the callback function that automatically checks information on operation data of the robot such as the current location in the robot controller. It is useful when functions that should be executed automatically are made during the change of data.

It is activated when the monitoring data version is changed to 1 using the set_up_monitoring_version function.

This function is only available in M2.5 version or higher.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnMonitoringDataExCB

-

Refer to definition of callback function

Return

None

Example

CPP
void OnMonitoringDataExCB(const LPMONITORING_DATA_EX pData)
{
cout << "joint data "
    << pData->_tCtrl._tUser._fActualPos[0][0]
    << pData->_tCtrl._tUser._fActualPos[0][1]
    << pData->_tCtrl._tUser._fActualPos[0][2]
    << pData->_tCtrl._tUser._fActualPos[0][3]
    << pData->_tCtrl._tUser._fActualPos[0][4]
    << pData->_tCtrl._tUser._fActualPos[0][5] << endl;
}

int main()
{
Drfl.set_on_monitoring_data_ex(OnMonitoringDataExCB);
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.