为实现EFAT/P系列过程控制试验装置在Matla环境下的实时控制,提出了基于C-MEX程序的解决方案。编写C-MEX文件,在C-MEX文件中通过动态链接库的显示链接,调用PC6320数据采集卡的驱动函数,成功驱动数据采集卡,完成了对EFPT过程实验装置的锅炉液位的实时控制。 关键词: Matlab;动态数据库;数据采集;实时控制;MEX文件 Abstract:A plan based on C-MEX program is proposed to solve the real-time control problem of the EFAT/p series process control equipment. By programming the C-MEX file which explicitly link the DLL driving function of the PC6320 labcard, successfully realize the data acquisition from the PC6320 card and solving the real-time control problem of boiler’s level process control. Key Words: MATLAB; Process Control; Data acquisition; Real-time control; MEX文件