摘要
为了实现瞬态信号集中式测量系统数据的实时传输,设计了基于PCIe总线接口的瞬态信号集中式测量系统。瞬态信号集中式测量系统PCIe总线接口的设计包括PCIe从设备设计和PC机驱动设计,本文仅对该系统PCIe接口的PC机驱动进行研究。PCIe总线的PC机驱动程序采用NI公司的NI-VISA和LabWindows开发环境设计,首先采用NIVISA Driver Wizard软件配置PCIe设备相关信息和中断检测寄存器,生成INF驱动配置文件,接着使用LabWindows软件通过NI-VISA相关库函数对PCIe设备进行初始化和DMA数据传输设计,最后完成对PCIe总线的PC机驱动验证。实验结果表明:采用NI-VISA和LabWindows开发环境设计的PCIe总线驱动传输速率可以达到300 MB/s。NI公司的NI-VISA和LabWindows开发环境设计的PCIe总线驱动,不仅满足瞬态信号集中式测量系统的数据传输要求,而且降低了PCIe总线的开发难度,缩短了开发周期。
In order to realize the real-time transmission of the transient signal centralized measurement system,a centralized measurement system based on the PCIe bus is established.The design of the PCIe bus interface of the transient signal centralized measurement system consists of the design of the PCIe slave device and the PC driver.The design of the PC driver is only researched in the paper.NIVISA and LabWindows development environment are used to design the PC driver program of PCIe bus.First of all,NI-VISA Driver Wizard is used to configure PCIe equipment informations and inter-rupt detection registers to generate an inf driver configuration file.Then,the PCIe bus is initialized and the DMA data transmission is designed with the LabWindows.Finally,the PC driver of the PCIe bus is tested.Experimental results indicate that the PCIe bus driver transmission rate can reach 300MB/s with the NI-VISA and LabWindows development environment.The PCIe bus driver designed by NI-VISA and LabWindows development environment,not only meets the data transmission requirements of centralized measurement system for transient signal,but also reduces the development difficulty of the PCIe bus and shortens the development cycle.
出处
《液晶与显示》
CAS
CSCD
北大核心
2017年第1期29-34,共6页
Chinese Journal of Liquid Crystals and Displays
基金
国家重点项目(No.267110)~~