摘要: 针对嵌入式软件的运行能耗评估问题,设计一种基于LabVIEW和NI多功能数据采集卡的嵌入式软件能耗测量方法。利用编写的数据采集程序,直接对测量目标的电流电压通道以及用于标记状态的数字通道进行同步能耗数据采集。目标程序被封装成测量单元,通过GPIO端口向数字通道发送状态。该状态用于区别采集到的电流电压数据样本是否为目标程序执行时的样本,并采用近似能耗计算方法处理样本数据。通过对真实平台的能耗测量结果表明,该方法所得测量数据的最大差值保持在0.2 mJ左右,具有较高的精准性。
关键词:
嵌入式软件,
LabVIEW平台,
能耗测量,
近似计算,
数据采集
Abstract: Aiming at the energy consumption evaluation for embedded software while running, this paper discusses an energy consumption measurement method which is based on LabVIEW and NI multifunction data acquisition card. The method is directly to acquire the data of voltage and current channel and a digital channel that is used to identify the state. The measured program is encapsulated as unit that sends state to digital channel by GPIO ports. That state determinates which program snippet a sample belongs to. An approximate calculation method is presented to evaluate the energy consumption. Energy consumption measurement result through real platform shows that the max difference is about 0.2 mJ which indicates the accuracy and effectiveness.
Key words:
embedded software,
LabVIEW platform,
energy consumption measurement,
approximate calculation,
data acquisition
中图分类号:
郭真林, 桑楠, 江维, 宋元凤. 基于LabVIEW的嵌入式软件能耗测量方法[J]. 计算机工程, 2013, 39(1): 85-88.
GUO Zhen-Lin, SANG Nan, JIANG Wei, SONG Yuan-Feng. LabVIEW-based Measurement Method of Energy Consumption for Embedded Software[J]. Computer Engineering, 2013, 39(1): 85-88.