摘要
针对外部模式不足,基于实时工作箱(RTW)实时仿真系统,采用访问C文件应用程序接口(C-API),修改主程序并访问model_pt.c文件中的参数信息,可在线调整参数。其过程是:内嵌参数、生成model_pt.c文件、访问参数结构,并在目标机端主程序的仿真循环中添加代码接收数据包并解析得到参数序号和新值。
Because of the shortage of external mode, the real-Time simulation systems based on RTW (Real-Time Workshop) interviewed the application program interface of C-file (C-API) to modify the main process, interview the parameter information in model_pt.c file, and adjust parameters on line. Its process includes: embedding parameters, creating the model_pt.c file, interviewing the parameter structure, and adding code to receive data package and parse data to achieve parameter sequence number and new value in main program of target computer simulation.
出处
《兵工自动化》
2006年第1期87-88,90,共3页
Ordnance Industry Automation
关键词
C文件应用程序接口
在线调参
实时工作箱
Application program interface of C-file (C-API)
Parameters online adjustment
RTW (Real-Time Workshop)