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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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