The AddMeasurements event builder adds measured current and field (if available; only for MBIs) to the CycleData object. It is useful to add measured current to the CycleData object so that it can be used for prediction, however it is recommended to use programmed current.
Trigger
CycleData object.
Buffered Subscriptions
Measured current: For MBI: MBI/LOG.I.MEAS
Measured field: For MBI: SR.BMEAS-SP-B-SD/CycleSamples#samples (B-Train Spare output)
Receiving first updates is crucial for setting initial buffer.
Logic
Measured current and field are buffered in the event builder, and when a new CycleData object is received, the measured values for the acquired selector (either in the CycleData.user or the acquisition header) are added to the CycleData current_meas and field_meas (if applicable),
Output
CycleData object with current_meas and field_meas (if applicable) set.