首页 | 本学科首页   官方微博 | 高级检索  
     

基于LabVIEW和C语言的1553B串行通讯系统
引用本文:赵昶宇,于平,李东景.基于LabVIEW和C语言的1553B串行通讯系统[J].光机电信息,2010,27(6):29-33.
作者姓名:赵昶宇  于平  李东景
作者单位:1. 中国科学院长春光学精密机械与物理研究所,吉林,长春,130033;中国科学院研究生院,北京,100039
2. 中国科学院长春光学精密机械与物理研究所,吉林,长春,130033
摘    要:LabVIEW具有开发效率高、内置函数丰富等优势,但在对底层硬件的驱动方面,却不如C语言功能强大。以1553B串行通讯系统的开发为实例,利用C语言编写中断服务程序,在VisualC++中将C程序转换成动态链接库文件,调用LabVIEW中的库函数节点,解决了在LabVIEW实现硬件中断的技术难点,同时给出了一种提高1553B总线消息传输实时性的方法。实验结果表明,在多种周期消息和非周期消息混合传输的前提下,上述设计方法实时性强、可靠性高、系统可扩展性良好。

关 键 词:虚拟仪器  动态链接库  混合编程  串行通讯

A Serial Communication System of 1553B Based on LabVIEW and C Language
ZHAO Chang-yu,YU Ping,LI Dong-jing.A Serial Communication System of 1553B Based on LabVIEW and C Language[J].OME Information,2010,27(6):29-33.
Authors:ZHAO Chang-yu  YU Ping  LI Dong-jing
Affiliation:1.ChangchunInstituteofOptics,FineMechanicsandPhysics,ChineseAcademyofSciences,Changchun 130033,China;2.Graduate School of the Chinese Academy of Sciences,Beijing 100039,China)
Abstract:LabVIEW had the advantages of high efficiency on development,all kinds of functions and so on.But it was not as good as the C language on hardware driving.Take a serial communication system of 1553B for example,In order to resolve the technical difficulties on hardware interrupt in LabVIEW,the interrupt service routine was programmed by C language,the C program was changed to dynamic link library in the visual C++ and the library function node was called in LabVIEW.At the same time,a kind of method on improving transmission real time characteristic of 1553B was given in this paper.In the condition of transmitting several periodic and aperiodic messages,the experimental results shoed that the method had good performance on real time characteristics and reliability,and the system had good expansibility.
Keywords:virtual instrument  dynamic link library  mixed programming  serial communication
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号