摘要
针对嵌入式软件的运行能耗评估问题,设计一种基于LabVIEW和NI多功能数据采集卡的嵌入式软件能耗测量方法。利用编写的数据采集程序,直接对测量目标的电流电压通道以及用于标记状态的数字通道进行同步能耗数据采集。目标程序被封装成测量单元,通过GPIO端口向数字通道发送状态。该状态用于区别采集到的电流电压数据样本是否为目标程序执行时的样本,并采用近似能耗计算方法处理样本数据。通过对真实平台的能耗测量结果表明,该方法所得测量数据的最大差值保持在0.2 mJ左右,具有较高的精准性。
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.
出处
《计算机工程》
CAS
CSCD
2013年第1期85-88,共4页
Computer Engineering
基金
国家自然科学基金资助项目(61003032)
计算机体系结构国家重点实验室开放基金资助项目(CARCH201104)
人工智能四川省重点实验室开放基金资助项目(2011RYJ04)
中央高校基本科研业务费专项基金资助项目(ZYGX2011J061)
关键词
嵌入式软件
LABVIEW平台
能耗测量
近似计算
数据采集
embedded software
LabVIEW platform
energy consumption measurement
approximate calculation
data acquisition