Skip to main content
Open topic with navigation CAPL Functions » MOST » OnMostAsRegistry

OnMostAsRegistry

Valid for: CANoe DE

Function Syntax

Description

When the Local FBlockList or Bus Registry is changed, the event procedure OnMostAsRegistry() is called. Causes for a change to the Local FBlockList:
  • Registration or unregistration of one or more function blocks
  • Change to the InstID of a function block by the NetworkMaster (NetBlock.FBlockIDs.SetGet).
Causes for a change to the Bus Registry:
  • In a device with NetworkMaster: Change in network status
  • In a device without NetworkMaster: Receipt of the NetworkMaster.CentralRegisrty.Status message
Within this event procedure, the functions mostEventChannel, mostEventTime, and mostEventOrigTime can be used to call up supplemental information. CAPL nodes are transparent to the controller events. Please use the Multibus Filter or MOST Filter to filter these events in nodal sequences. In the Simulation Setup, event procedures are only called if the event occurs on the channel allocated to the CAPL node.

Parameters

Return Values

Example

Read-Out of the Registries In the following example, whenever a registry changes, its contents are output to the Write Window.
mostAsRgGetSizemostAsRgGetRxTxLogmostAsRgGetFBlockIDmostAsRgGetInstID