oms_wp_phy_support_measurement_write()
摘要
向给定测量写入新值。
语法
oms_wp_phy_support_measurement_write (measure_entity_ptr, value_db)
| 参数 | 类型 | 说明 |
|---|---|---|
measure_entity_ptr |
OmsT_WP_Measurement_Entity* |
测量实体 |
value_db |
double |
以 dB/dBm 表示的测量值 |
返回类型
void
详细说明
新的测量值应以 dB/dBm 给出。对应的测量实体处理该值,并在内部用该值更新平均测量值。
示例
coverage_area_tracker 进程模型函数块的节选。
/* 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);