欢迎访问《中国农学通报》,

中国农学通报 ›› 2007, Vol. 23 ›› Issue (1): 381-381.

• 目次 • 上一篇    下一篇

基于MATLAB的数据采集系统的研究

王海龙,陈珊杰,李 茜,张 鹏,刘 涛,徐大华   

  • 出版日期:2007-01-05 发布日期:2007-01-05

Research on Data-Collection System Based on MATLAB

Wang Hailong, Chen Shanjie, Li Qian, Zhang Peng, Liu Tao, Xu Dahua   

  • Online:2007-01-05 Published:2007-01-05

摘要: 由于MATLAB不能直接对硬件端口进行读写操作,缺乏了实时性,使得工程上的应用受到了极大的限制。而通过MATLAB应用程序接口Mex调用C++语言,可实现在MATLAB环境下对硬件端口信号的读写。为此,笔者对Mex接口文件进行了详细介绍,包括Mex接口的各种特殊功能、详细编写规则和具体编译要求,具体阐述了Mex接口在MATLAB环境下的调用及使用。并根据Mex接口的相关功能,对MATLAB数据采集系统的设计在理论上进行了探讨,以图对MATLAB功能进行进一步的扩展。

关键词: 免耕, 免耕, 根系活力, 产量, 相关系数

Abstract: Since MATLAB can not write directly to hardware available for operation, and it lacks of the feature of real-time, the applications has been significantly hampered. MATLAB applications, through redeployment of C++ language interface Mex, can be achievable in the MATLAB environment for the specific hardware interface signals. Therefore, author of the paper explains in detail about Mex interfaces, including various special functions, and specific translation rules; enunciates the transfer and the use of Mex interface in the MATLAB environment. And in accordance with the relevant function of interface Mex, the design of MATLAB data acquisition system is discussed in theory for further extending the functions of MATLAB.

中图分类号: