Skip to main content
Skip table of contents

CDRFLEx.set_on_monitoring_safety_state

Features

This is a function to register a callback function to automatically check when the safety state of the controller is updated. This is useful when writing functions that should be executed automatically.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnMonitoringSafetyStateCB

-

Refer to definition of callback function

Return

None.

Example

CPP
void OnMonitoringSafetyStateCB (SafetyState iState)
{
    //When sw module is updated
}

int main()
{
    Drfl.set_on_monitoring_safety_state(OnMonitoringSafetyStateCB);
}
JavaScript errors detected

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

If this problem persists, please contact our support.