基于WPF的虚拟示波器设计
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Design of Virtual Oscilloscope Based on WPF
  • 作者:张博 ; 李黎 ; 何海龙 ; 刘艳行
  • 英文作者:Zhang Bo;Li Li;He Hailong;Liu Yanhang;Xi'an Electronic Engineering Research Institute;
  • 关键词:WPF ; 高精度定时器 ; PingPong缓冲区 ; 多线程
  • 英文关键词:WPF;;high precision soft timer;;PingPong buffer;;multithreading programming
  • 中文刊名:HKLD
  • 英文刊名:Fire Control Radar Technology
  • 机构:西安电子工程研究所;
  • 出版日期:2018-06-25
  • 出版单位:火控雷达技术
  • 年:2018
  • 期:v.47;No.184
  • 语种:中文;
  • 页:HKLD201802020
  • 页数:5
  • CN:02
  • ISSN:61-1214/TJ
  • 分类号:93-97
摘要
随着计算机技术和通信技术的飞速发展,虚拟仪器技术以其高性能、高扩展性、高集成性,和开发周期短等优势,逐渐成为测试测量行业仪器设计的发展趋势。虚拟示波器是虚拟仪器基础平台的重要组成部分,也是应用最广、需求最大的测试软件。本文基于PC平台,在广泛应用的Windows系统下,采用WPF作为软件开发环境,设计并开发了一个经串口录取数据的四通道虚拟示波器软件。该虚拟示波器软件通过对数据流的合理规划和设计,以及PingPong缓冲机制的引用,实现了对高速串口数据的完整录取。运用高精度自旋定时器,使本文虚拟示波器软件与DSP下位机的指令通信达到了200Hz稳定可靠的数据率。
        With rapid development of computer and communication technique,virtual instrument( VI) gradually becomes development trend in measurement field because of its high performance,scalability,integration and short development period. Virtual oscilloscope is an important component of VI platform and it is also the most widely used testing software. A four-channel virtual oscilloscope extracting data via serial ports was designed based on WPF( Windows Presentation Foundation) technique. Through reasonable programming and design to data flow,and introducing of ping-pong buffer mechanism,high-speed serial port data can be extracted completely by the virtual oscilloscope; and by using high precision timer,command communication rate between virtual oscilloscope and DSP can be up to 200 Hz reliably.
引文
[1]程虎.虚拟仪器的现状和发展趋势[J].现代科学仪器,1999(4):6-9.
    [2]乔阿美.关于Silverlight与WPF技术的探讨[J].军民两用技术与产品,2015(24):10-20.
    [3]杨宇晓,宋茂忠,苗雄峰.基于DM642 DSP的网络化数据采集与编程实现[J].计算机技术与发展,2008,18(6):188-191.
    [4]李净,杨俊武,钱旭.用多媒体定时器精确控制采样频率[J].计算机应用,2000,20(12):67-68.
    [5]许毅,冯山.使用C#语言进行多线程程序设计[J].计算机工程,2003,29(5):1-2+130.
    [6]贾广雷,刘培玉,耿长欣.多线程技术及其在串口通信中的应用[J].计算机科学,2002,1(29):148-149+130.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700