针对采用状态空间模型描述的几类无线网络控制系统.介绍了基于TrueTime的无线网络控制系统仿真程序的设计与实现问题。首先介绍了TrueTime工具箱的组成,然后给出了如何利用无线仿真模块实现基于状态空间模型描述的控制系统仿真方法。分别考虑当系统具有单输入多输出、网络诱导时延、数据丢包、时滞脉冲等特性时,利用TrueTime仿真工具箱,如何建立上述系统的无线网络控制仿真模型以及如何编写相应的程序代码。根据上述不同模型的仿真可以看出,对于不同的系统,他们的初始化设置基本相同,而任务代码却有很大的差别。仿真曲线符合理论结果,说明了仿真模型和程序代码的正确性与有效性。
The design problem of simulation programming of wireless networked control systems(WiNCSs) based on TrueTime toolbox is introduced. The state space models and controller design code are given. The composition of TrueTime toolbox is introduced and the method to program the mode based on state space is presented. Using TrueTime simulation toolbox, wireless networked control system model and corresponding control code are described for single input multiple output WiNCS, network induced delay system, data packet dropout system and time-delay impulsive control system respectively. From the simulation models, the initialization settings are the same, but the control codes are different for different WiNCS. The simulation result shows that the proposed method is correct and effective.