摘要
基于MATLAB、NS2、Visual C++,采用软件组件设计思想,设计并实现了网络控制系统实时仿真平台NCS-RS(NCS-RealTime Simulation).NCS-RS主要包括Simulink控制器/被控对象模块、MATLAB数据接口模块、Visual C++网络接口模块以及NS2网络仿真模块,既发挥了NS2的网络仿真优势,又利用了MATLAB强大的控制系统仿真功能,很好的实现了对网络控制系统的实时仿真.最后,在仿真平台上进行了倒立摆网络控制系统的仿真实验,并分析了时延对控制品质和稳定性的影响.
Based on MATLAB, NS2, Visual CA++ and component technology, we designed and realized NCS-RS (NCS-RealTime Simulation) for networked control systems. NCS-RS, including Simulink controller/plant, MATLAB data interface, Visual C++ network interface and NS2 network simulation software, combined the virtues of NS2 and MATLAB, and implemented real-time simulation for NCS. Finally, a simulation example of networked inverted pendulum system was given on the simulation platform to analyse the influence of time delays on system performance and stability.
基金
安徽工程科技学院青年基金资助项目(2005yq002)