期刊文献+

用Matlab实现硬件端口采集的方法 被引量:2

Method of Data Acquisition for Hardware Port Realized with Matlab
在线阅读 下载PDF
导出
摘要 Matlab实现硬件端口数据采集有Matlab工具箱和Mex文件法。工具箱法用函数实现,其步骤:用serial()、visa()、gpib() 创建设备对象;用set() 设定设备对象属性;用fopen() 实现设备对象与硬件设备的连接;用fprintf()、fscanf() 等实现硬件设备端口数据采集;用fclose() 关闭或用delete() 和clear() 清除设备对象。文件法用Matlab应用程序接口实现,其步骤:用C++/Fortran编写Mex文件,Matlab解释器调用并执行动态链接函数;安装Mex文件编辑器对Mex文件调试与编译;调用Mex文件实现串口的读写。 There are methods of Matlab ToolBox and Mex file for data acquisition of hardware port realized with Matlab. Matlab ToolBox is implemented with function. The procedures are that equipment object is created with serial(), visa() and gpib(), the attribute of equipment object is set with set(), the connection of equipment object and hardware equipment is realized using fopen(), data acquisition for hardware port is realized with fprintf(), fscanf() etc, and equipment object is closed or deleted with delete() or clear(). Mex file method is realized with Matlab application program interface. The procedures are that Mex file is compiled with C++ or Fortran, Matlab interpreter transfers and implements dynamic connect function, install Mex file editor, debug and compile Mex file, transfer Mex file to realize read-write of serial port.
作者 刘秀
出处 《兵工自动化》 2003年第3期58-60,共3页 Ordnance Industry Automation
  • 相关文献

参考文献1

二级参考文献2

共引文献9

同被引文献6

引证文献2

二级引证文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部