Matlab realtime windows目标使用方法.pdf

  1. 1、本文档共8页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Matlab realtime windows目标使用方法

USING REAL TIME WINDOWS TARGET TO COMPILE AND EXECUTE A SIMULINK PROGRAM When you log onto the PC assigned to your group, open up Matlab 6.1 Next type in simulink in the Matlab command window, this opens up the Simulink library which contains all the blocks for constructing a simulink program. The test program stgsample1.mdl should already be present under the c:\Matlab6p1\work directory , if not it can be downloaded from the ECE496 website (In the ECE 496 Administration Web Simulink Model Example For Windows) Copy the test program onto your PC using a floppy disk as there is no network connection for any PCs. Now through Simulink the stgsample1.mdl can be opened and used as a test program to check your hardware OR also as a means to build your control program on it. A picture of the sample program is shown in Figure 1. Typing in stglib at the MATLAB command prompt will bring up the software library for the ServoToGo Board. The different hardware blocks (ADC, DAC etc) in the sample program have been taken from stglib The options for using the ADC, DAC, Read Encoder and Digital Output blocks have been shown in figures 2 through 5. They can be accessed by double clicking on each block. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 The settings for all of the respective blocks should be set as shown in the above figures. You can specify the channel you want to use in the blocks above but the change should be reflected in the hardware too (i.e the connector to the break out board of the Servo To Go or any other board should also be switched to the respective channel). After all the settings are set in the control program, the Real Time Workshop and RTWT settings must be set also. The procedure to do this is given b

文档评论(0)

yaobanwd + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档