- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- Erwin的使用.doc
- ESD教育训练教材.ppt
- esProc Assists Report Development – Dynamically Relate Multiple Data Sources to a Master Report.pdf
- Estimation of Collision Impact Parameter.pdf
- EPON系统中基于VLAN的组播设计.pdf
- ESSBASE的使用及优化.doc
- Evaluation of battery energy storage system for frequency control in microgrid system.pdf
- Evaluation of a novel access and closure device for NOTES.pdf
- Evaluation of concrete spall repairs by pullout test.pdf
- Evaluation of Multimodal Input for Entering Mathematical Equations.pdf
最近下载
- 福彩市场管理员培训.pptx
- 7.2化石能源的合理利用教学设计---2024-2025学年九年级化学人教版(2024)上册.docx
- 35kv电缆头制作监理旁站记录.docx
- Unit 4 Plants around us Part C Make a paper garden(课件)人教PEP版(2024)英语三年级上册.pptx
- 中班综合《有趣的螃蟹》PPT课件.ppt
- 顺丰快递企业运作模式探析论文.pdf VIP
- 幼儿园课件:婴幼儿主被动操(1).ppt
- 《PCB设计与制作》课程标准.doc VIP
- 2020明辉学校开展“读书月系列活动”简讯美篇(可编辑).pdf VIP
- 行车轨道更换施工方案.docx
文档评论(0)