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);

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com