oms_wp_phy_support_measurement_write()
Abstract
Writes a new value into the given measurement.
Syntax
oms_wp_phy_support_measurement_write (measure_entity_ptr, value_db)
| Argument | Type | Description |
|---|---|---|
measure_entity_ptr |
OmsT_WP_Measurement_Entity* |
Measurement entity |
value_db |
double |
Measured value in dB/dBm |
Return Type
void
Details
The new measurement value is expected in dB/dBm. The corresponding measurement entity processes the value and internally updates the average measurement with the value.
Example
Excerpt from coverage_area_tracker process model, function block.
/* Get the received power from the packet. */
rcvd_power = op_td_get_dbl (pkptr, OPC_TDA_RA_RCVD_POWER);
/* Convert Watts to dB (the next function expects dB). */
measurement_db = 10.0 * log10 (rcvd_power);
/* Write the measure. */
oms_wp_phy_support_measurement_write(m_entity_ptr, measurement_db);