引用本文:闫承志,郭晓丽,陈劲操.基于Simulink的硬件嵌入式实时仿真设计及应用[J].电力自动化设备,2004,(2):73-75
.Design and application of hardware embedded real-time simulation based on Simulink[J].Electric Power Automation Equipment,2004,(2):73-75
【打印本页】   【HTML】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3812次   下载 2 本文二维码信息
码上扫一扫!
基于Simulink的硬件嵌入式实时仿真设计及应用
闫承志,郭晓丽,陈劲操
作者单位
摘要:
为了利用Matlab的强大功能实现在线实时仿真,提出了基于Simulink的硬件嵌入式实时仿真系统。在分析S—Function模块硬件驱动原理的基础上,介绍了用C语言编写S—Function函数,以调用设备驱动程序操作采集卡。论述了调试建立S—Function模块的过程。在仿真模型中该模块作为信源模块,解决了仿真过程中在线实时数据采集的问题,给出基于该模块的IEC推荐的闪变仪的设计模型和实验结果,论证了该仿真系统的可行性。该方法普遍适用于各种数据采集卡。
关键词:  Simulink S—Function 设备驱动 硬件嵌入式仿真
DOI:
分类号:TM743
基金项目:
Design and application of hardware embedded real-time simulation based on Simulink
YAN Cheng-zhi 1  GUO Xiao-li 2  CHEN Jin-cao 1
Abstract:
To complete the on-line real-time simulation using the powerful functions of Matlab,a hardware embedded real-time simulation block based on Simulink is presented.Based on the analysis of the S- Function block hardware driver,an S-Function written in C language is introduced,which is used to call device driver and manipulate data-acquisition card.The procedure of debugging and constructing S-Function block is also discussed,which is used as a signal source block in the simulation model to carry out the on-line real-time data-acquisition.Based on this block,the flicker instrument model recommended by IEC is designed and its results are presented.The feasibility of this simulation system is proved and the technique adapts to all kinds of data-acquisition card.
Key words:  Simulink,S-Function,device driver,hardware embedded simulation

用微信扫一扫

用微信扫一扫