作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2013, Vol. 39 ›› Issue (1): 85-88. doi: 10.3969/j.issn.1000-3428.2013.01.018

• 软件技术与数据库 • 上一篇    下一篇

基于LabVIEW的嵌入式软件能耗测量方法

郭真林,桑 楠,江 维,宋元凤   

  1. (电子科技大学计算机科学与工程学院,成都 611731)
  • 收稿日期:2011-11-02 修回日期:2011-12-29 出版日期:2013-01-15 发布日期:2013-01-13
  • 作者简介:郭真林(1987-),男,硕士研究生,主研方向:嵌入式系统;桑 楠,教授;江 维,讲师、博士;宋元凤,硕士研究生
  • 基金资助:
    国家自然科学基金资助项目(61003032);计算机体系结构国家重点实验室开放基金资助项目(CARCH201104); 人工智能四川省重点实验室开放基金资助项目(2011RYJ04);中央高校基本科研业务费专项基金资助项目(ZYGX2011J061)

LabVIEW-based Measurement Method of Energy Consumption for Embedded Software

GUO Zhen-lin, SANG Nan, JIANG Wei, SONG Yuan-feng   

  1. (School of Computer Science & Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China)
  • Received:2011-11-02 Revised:2011-12-29 Online:2013-01-15 Published:2013-01-13

摘要: 针对嵌入式软件的运行能耗评估问题,设计一种基于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

中图分类号: