matlab角随动系统,基于Matlab的随动系统半实物仿真平台设计

第27卷第6期2006年12月

青 岛 科 技 大 学 学 报Jo urnal of Qingdao U niversity of Science and Technology Vol.27No.6

Dec.2006

文章编号:167226987(2006)0620540203

基于Matlab 的随动系统半实物仿真平台设计

隋树林,于 镭,邵 巍

(青岛科技大学自动化与电子工程学院,山东青岛,266042)

摘 要:设计了一种基于Matlab 与DSP 的随动系统仿真平台。系统利用Matlab 对

DSP 端口进行访问,并对实时数据进行分析、处理和显示。软件部分采用Matlab 进行程序编写,发挥了Matlab 强大的数据处理功能,克服了VC 与Matlab 混合编程工作量大,结构复杂的缺点,又弥补了单独用VC 编程处理数据能力弱的不足,较好的实现了对随动系统的半实物仿真和校验。

关键词:Matlab ;DSP ;随动系统;半实物仿真中图分类号:TP 211 文献标识码:A

Design of T racking System H ardw are 2in 2loop

Simulation Platform B ased on Matlab

SUI Shu 2lin ,YU Lei ,SHAO Wei

(College of Automation and Electronic Engineering ,Qingdao University of

Science and Technology ,Qingdao 266042,China )

Abstract :The design of a t racking system simulation platform based on Matlab and DSP is p resented in t his paper.In t he system ,Matlab is used to access DSP port ,analyze and p rocess t he real 2time data as well as show t he result s.In order to overcome t he shortcoming of complex st ruct ure and make up t he weakness on processing data using VC language only ,t he software of t he system is programmed wit h Matlab t hat has pow 2erf ul f unction to process data.This system has been tested using hardware 2in 2loop sim 2ulation and a good result has been achieved.

K ey w ords :Matlab ;DSP ;tracking system ;hardware 2in 2loop

simulation

620665e7663db0565ff302b8d759bfb5.png

半实物仿真是计算机在进行仿真时引入部分硬件实物进行软硬结合的仿真,是对各种复杂控制系统进行初步测试的常用方法。本工作将Matlab 引入到随动系统仿真回路中进行半实物仿真,并对控制参数进行在线调整,改善系统的性能,为系统的开发和校验提供了一个良好的平台。

1 系统结构

基于Matlab 串口操作的实时PID 参数调节

随动系统的结构见图1。

图1 系统结构图

Fig.1 System structure

操作指令、PID 参数、采样频率、点数以及运动模式等参数由Matlab 的交互式界面通过串口传入DSP ,DSP 结合主动、从动电机经过位置编

收稿日期:2005212202

作者简介:隋树林(1958~),男,教授.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值