Register the Custom Effect

The process containing your custom effect must register the effect with the cyber-effects manager (CEM) in the process’s parent node. This lets the CEM know that the effect is supported in that node. You register an effect by placing a call to cyber_effects_cmd_register() in the initialization function of the process model.

Because the initialization will be performed in every node that creates an instance of the process containing your custom effect, it is important to confirm that the node contains a cyber-effects manager module before registering effects. You can do this by calling cyber_effects_mgr_handle_get(). If the handle obtained is not OPC_NIL, you can proceed with the registration process.