版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 通信系统分析与仿真analysis and simulation of communication system实 验 指 导 书experiment instruction王晓宁编沈阳大学信息工程学院school of information engineering, shenyang university目录实验一 matlab认识3exp.1 matlab learning3实验二 数据流仿真8exp.2 data flow simulation8实验三 时间流仿真11exp.3 time flow simulation11实验四 通信系统设计仿真15exp.4 commun
2、ication system design and simulation15附录:21matlab 程式设计与应用21simulink的库模块26实验四设计说明书模板27课程编号:11215101 课程类别:专业选修课程适用层次:本科 适用专业:通信工程课程总学时:48 适用学期:第5学期 实验学时:20 开设实验项目数:5撰写人:王晓宁 审核人:王丹萍 教学院长:范立南course number:11215101 course type:professional courseapply to:undergraduate major:communication engineeringtotal
3、 period:48 term: no. 5 experiment period:20 number of experiment projects:5writer:wangxiaoning verifier:wangdanpingdean of teching:wanghui 实验一 matlab认识exp.1 matlab learning一、实验目的与要求l 了解对matlab软件的界面、使用方法、常用计算函数l 了解对simulink环境认识的界面、使用方法、常用模块1. experimental purpose and requirementsl get to know the int
4、erface and basic operation of matlab software and how to use normal functions/toolboxes etc.l get to know the interface and basic operation of simulnk functions and how to use normal models.二、实验类型设计型(4学时)2. experimemts typedesign(4 periods)三、实验原理及说明利用matlab软件的help功能,设计常用信号的函数表示方法,加深对matlab软件使用方法的掌握;
5、并通过简单设计对simulink的仿真环境及常用信号和系统的产生、常用模块的使用方法有所了解。3. experimental principle and instructionsdesign representing methods of normal signal by using help functions in matlab software, makes students handle the usage of matlab software; design simple signals and systems in simulink environments to know bet
6、ter about how to use normal modules.四、实验仪器序 号名 称主要用途1pc机为编程仿真提供硬件环境2matlab软件(含simulink及通信工具箱)为编程仿真提供软件平台4. experiment instrumentsserial numbernamemain applications1pchardware environment of simulation2matlab softwaresoftware environment of simulation五、实验内容和步骤实验内容:(一)matlab软件认识1. 认识matlab软件的界面2. 主要的数
7、学函数指令:sin(正弦), cos(余弦), tan(正切), atan(反正切), exp(指数), log(对数), sqrt(平方根), abs(绝对值), angle(相角), conj(复共轭), imag(复数虚部), real(复数实部)等等实验步骤:1. 在实验之前仔细阅读附录中关于matlab软件平台的基本介绍。2. 利用桌面的快捷图标或是从开始-程序-matlab打开matlab软件3. 在命令窗口定义时间变量t4. 将时间变量t代入数学函数指令中,为新变量赋值(如:“x=sin(t)”)5. 利用绘图指令将赋值的函数的图形绘制出来:对于连续时间函数,用plot指令(如:
8、“plot(t,x)”);对于离散时间函数,用stem指令(如:“stem(t,x)”)6. 依次利用上面实验内容中提到的12种函数指令为新变量赋值,构成通信系统中的常见信号,并绘图、将所用的指令和得到的图像记录下来,完成实验报告(二)simulink环境认识1. 认识simulink环境认识的界面2. 认识simulink模块库中的主要常用模块:常用系统模块:derivative(时间微分),integrator(时间积分),state-space(状态空间系统),transfer fcn(线性传输函数),transport delay(输入延时),variable transport de
9、lay(输入可变时间延时),zero-pole(零极点传输函数),hit crossing(检测交叉点),quantizer(量化),rate limiter(限制输入信号的变化比率),relay(继电器),saturation(限制输出信号的范围)数学操作模块:abs(产生输入信号的绝对值),complex to magnitude-angle(计算一个复信号的幅度/相位),complex to real-imag(计算一个复信号的实部/虚部),dot product(产生点积),gain/matrix gain(将输入乘以一个常数),math function(实现某个特定的数学函数),m
10、inmax(产生输入信号的最大值或最小值),product(产生输入的积或商),sign(指示输入信号的符号),sum(计算输入的和或差),sin(实现某一特定的三角函数)实验步骤:1. 在实验之前仔细阅读附录中关于matlab和simulink软件环境的基本介绍。2. 利用桌面的快捷图标或是从开始-程序-matlab打开matlab软件,然后点击simulink快捷按钮。3. 按“新建” 快捷按钮,建立一个新的模型文件。4. 依次用上面提到的模块搭建成模型,运行,并观看结果:5. 完成实验报告例1. 从simulink模块库中的source中选择pulse generator、repeati
11、ng sequence、sine wave和step几个信号源拖拽到新建的模型文件窗口中2. 从simulink模块库中的sink中选择示波器scope拖拽到新建的模型文件窗口中,并复制3. 将continouse中的derivative(时间微分)拖拽到新建的模型文件窗口中4. 将以上模块用信号线连接起来(如下图),同时修改各个模块的参数5. 运行(点击快捷按键“”)6. 观察并记录结果7. 用常用系统模块和数学操作模块中的各个模块依次替换derivative(时间微分)模块并重复以上各个步骤,观察并记录结果5. experiment contents and stepsexperiment
12、 contents:(1)get to know matlab softwarei. knowing the interface of matlabii. main math functions:sin(), cos(), tan(), atan(), exp(), log(),log10(), sqrt(), abs(), angle(), conj(), imag(), real(),etc.experiment and steps:a) read the introduction of matlab in the appendix carefully before the experim
13、ent start. b) start matlab software form the shortcut icon on desktop or start-program- matlab.c) define time variable t in the command window.d) introduce time variable t into different math function expressions,define new signal variable(e.g.:“x=sin(t)”)e) draw signal curves by using appropriate f
14、unction.(e.g.:“plot()” for continuous functions; “stem()” for discrete functions;)f) use 12 functions instructions mentioned former to define new variables, in order to form common communication system signals,then record the instructions you used and the result figures in the experiments,finish the
15、 report.(2)get to know simulinkiii. be familiar to simulink interfaceiv. get to know normal modules in simulink lib.:derivative, integrator, state-space, transfer fcn, transport delay, variable transport delay, zero-pole, hit crossing, quantizer, rate limiter, relay, saturationabs, complex to magnit
16、ude-angle, complex to real-imag, dot product, gain/matrix gain, math function, minmax, product, sign, sum ,sinexperiment and steps:a) read the introduction of matlab&simulink in the appendix carefully before the experiment start.b) start matlab software form the shortcut icon on desktop or start
17、-program- matlab, then click simulink shortcut button or type “simulink” in the command window to run simulink interface.c) click “new” shortcut button to create a new “.mdl” file.d) use modules mentioned former to build system models, run them and observe their results. record main parameters.e) fi
18、nish the report.e.g.a. drag “pulse generator”、”repeating sequence”、”sine wave” and “step signal” modules from “simulink/source” lib. into new “.mdl” file window.b. drag “scope” module from simulink/sink lib. into new “.mdl” file window and duplicate it.c. drag “derivative” module from simulink/conti
19、nuous lib. into new “.mdl” file window. d. link modules like figure shows below, then modify their parameters.e. run the system(click“”)f. observe and record the results.g. alter the “derivative” module with other normal system modules or math modules, repeat the operation process above, observe and
20、 record the results 六、实验数据处理与分析(1) 记录所设计的信号的变量定义以及信号绘制曲线(图形)(2) 与实际理论结果比较验证,并分析异同及原因。6. experiment data recording, processing and analysis(1) record all the variables defined in the design and the curves drawn in matlab.(2) compare the curves with theoretical curves, analysis the reason why there ar
21、e differences between them.七、注意事项(1) 在使用plot命令绘图时,要保证表示横纵轴坐标的数据长度要相等。(2) 在仿真运行之前要仔细检查各个模块的参数的设置,否则运行时可能会出现错误。(3) 仿真步长的设置:要保证仿真运行时的仿真步长<所有模块中最小抽样时间的一半。7. attentionsa) data arrays of the horizontal and vertical coordinates should be the same when “plot” function is used to draw signal curves.b) mod
22、ule parameters should be examined carefully before the simulation running in order to avoid error occurs.c) set simulation step-length carefully: the simulation step-length < minimum sample time/2.八、预习与思考题(1) 一般信号曲线的绘制应该注意什么?(2) 如果在同一个图形窗口中分别绘制多条曲线应该采用哪条指令?(3) 如果想在matlab窗口下查询某一条指令的使用方法,应当使用哪条指令?(
23、4) simulink模块库有哪几个子库?(5) 如果仿真步长设置得太大了会出现什么问题?8. answer before & after experimentsa) what we should pay attention to when we draw signal curves in matlab?d) what functions we may use to draw different signal curves in one figure window? e) what functions we may use to find the usage ways of some
24、function in command window? f) how many simulation module lib.s in simulink.g) what happens if the modulation step-length is too long?实验二 数据流仿真exp.2 data flow simulation一、实验目的与要求l 了解如何利用*.m文件实现数据流仿真l 了解用通信工具箱提供的常用函数实现通信系统仿真的方法1. experimental purpose and requirementsl get to know how to implement dat
25、a flow simulation by using *.m file.l get to know how to implement communication system simulation by using the normal functions in communication toolbox.二、实验类型设计型(4学时)2. experimemts typedesign(4 periods)三、实验原理及说明数据流仿真主要是指在仿真过程中,仿真系统的初始状态和条件、中间状态以及结果输出均以数据块作为基本计算单位。仿真通信系统的信源信号是以整个数据块的形式送入系统的各个仿真环节(调
26、制、发送、信道传输、接受、解调等等)并逐步计算的。matlab软件的*.m文件编辑器是数据流仿真的最佳工具,使用通信工具箱提供的函数仿真通信系统中的常用环节和*.m文件编辑器的各种调试工具可以实现事半功倍的高效编程仿真。3. experimental principle and instructionsdata flow simulation means to take data blocks as the basic compute units for simulation systems initial、middle status and conditions as well as the
27、 output results, which means the source signal of the communication system has been sent into each part (such as modulation parts, sending parts, channel parts, receiving parts, demodulation parts and so on) of the simulation system as a whole data block.the *.m file editor is the best data flow sim
28、ulation tools provided by matlab, it can double the simulation programming efficiency by offering many kinds of running tools and provided functions in communication toolbox for their normal parts simulation.四、实验仪器序 号名 称主要用途1pc机为编程仿真提供硬件环境2matlab软件(含simulink及通信工具箱)为编程仿真提供软件平台4. experiment instrument
29、sserial numbernamemain applications1pchardware environment of simulation2matlab softwaresoftware environment of simulation五、实验内容和步骤实验内容用*.m文件编辑器设计一个简单的am调制解调通信系统的数据流仿真过程。要求所仿真的通信系统要按照以下要求设计各个am调制解调环节:(1)信源:确定信号(2)调制:载波信号取正弦信号,载波频率要在信源信号最高频率3倍以上(3)信道:awgn(4)解调:载波信号取给与(2)中相同的正弦信号,同频同相(5)信宿:输出解调结果实验步骤(
30、1)细化上述各个仿真环节所采用的具体方法或数学表达式以及系统的初始状态(参数),并绘制仿真程序的流程图(2)打开*.m文件编辑器(3)按照流程图编写代码(4)调试(5)记录具体设计方案和参数,实验结果等(6)完成实验报告5. experiment contents and stepsexperiment contents:design a simple am modem system, implement the design in data flow simulation way by using *.m file editor. all the parts of the communica
31、tion system should simulated according to the follow requests:(1)source: determined signal(2)modulation: carrier should be sine signal which frequency should be greater than the maximum frequency of source signal(3)channel:awgn(4)demodulation: carrier should be the same as in (2), not only same freq
32、uency, but also same phase(5)sink:output the demodulation resultsexperiment and steps:a) determine the functions, formulas and initial status (parameters) in all parts of the simulation system, then finish the flow chart. b) open *.m file editor.c) programming according to the flow chart.d) debuggin
33、g.e) record the design plan and parameters, as well as experiment resultsf) finish the report.六、实验数据处理与分析1. 记录定义的仿真变量、参数以及仿真结果。2. 与实际理论结果比较验证,并分析不同的原因。6. experiment data recording, processing and analysis(1) record all the variables and parameters defined in the design and the simulation results.(2)
34、 compare the results with theoretical value, analysis the reason why there are differences between them.七、注意事项1. 在仿真运行之前要仔细检查各个模块的参数的设置,否则运行时可能会出现错误。2. 仿真步长的设置:要保证仿真运行时的仿真步长<所有模块中最小抽样时间的一半。7. attentionsa) module parameters should be examined carefully before the simulation running in order to avo
35、id error occurs.b) set simulation step-length carefully: the simulation step-length < minimum sample time/2.八、预习与思考题1. 你仿真的方法是否为蒙特卡洛方法?2. 你设计的调幅是以下哪一种调制方式?adsb-scb.usbc.lsbd.vsbe.am with carrier3. 你在信道上叠加的噪声信噪比是多少?4. 你解调的方式是相干解调吗?8. answer before & after experimentsa) did you simulate the sys
36、tem by using monte carlo theory?b) what modem functions did you designed in this experiment? choose from below: adsb-scb.usbc.lsbd.vsbe. am with carrierc) how much noise (nsr) did you add in the channel? d) did you demodulate the signal by using coherent theory?实验三 时间流仿真exp.3 time flow simulation一、实
37、验目的与要求l 了解如何利用*.mdl文件实现时间流仿真l 了解simulink提供的模块实现通信系统仿真的方法1. experimental purpose and requirementsl get to know how to implement time flow simulation by using *.mdl file.l get to know how to implement communication system simulation by using the modules in simulink lib.二、实验类型:设计型(4学时)2. experimemts ty
38、pedesign(4 periods)三、实验原理时间流仿真主要是指在仿真过程中设定步长后,仿真系统在每个时间点计算各个环节的状态值。仿真通信系统的信源信号以及其它各个仿真环节(调制、发送、信道传输、接受、解调等等)的信号均是按照步长从一个时间点计算到下一个时间点的。matlab软件的simulink是数据流仿真的最佳工具,使用其模块库提供的模块可以快速搭建仿真通信系统中的常用环节,并且可以仿真系统的实时运行状态。3. experimental principle and instructionstime flow simulation means to compute status valu
39、es of all parts of the simulation system at each time point after the step-length is set. which means signals of each parts of the communication system (including the source, modulation parts, sending parts, channel parts, receiving parts, demodulation parts and so on) are computed one time point to
40、 the next according to the simulation step-length.simulink is the best time flow simulation tools provided by matlab, it can speed up the establishment of the simulation model parts by offering many kinds of modules in simulink lib. and easily simulate real-time statuses of the system model.四、实验仪器序
41、号名 称主要用途1pc机为编程仿真提供硬件环境2matlab软件(含simulink及通信工具箱)为编程仿真提供软件平台4. experiment instrumentsserial numbernamemain applications1pchardware environment of simulation2matlab softwaresoftware environment of simulation五、实验内容和步骤实验内容用simulink设计一个简单的am调制解调通信系统的数据流仿真过程。要求所仿真的通信系统要按照以下要求设计各个am调制解调环节:(1)信源:随机信号(2)调制:
42、载波信号取正弦信号,载波频率要在信源信号最高频率3倍以上(3)信道:awgn(4)解调:载波信号取给与(2)中相同的正弦信号,同频同相(5)信宿:输出解调结果实验步骤(1)细化上述各个仿真环节所采用的具体方法或数学表达式以及系统的初始状态(参数),并绘制仿真程序的流程图(2)打开*.m文件编辑器(3)按照流程图编写代码(4)调试(5)记录具体设计方案和参数,实验结果等(6)完成实验报告例i. 在实验之前仔细阅读附录中关于simulink通信工具箱的基本介绍。ii. 利用桌面的快捷图标或是从开始-程序-matlab打开matlab软件,然后点击simulink快捷按钮iii. 在模块库中打开“c
43、ommunication blockset”通信工具箱模块库iv. 按“新建” 快捷按钮,建立一个新的模型文件v. 打开analog mo/dem模块库,选择上述调制方法中的至少六种调制解调方式(12个模块)依次用上面提到的模块搭建成如下图所示的模型,运行,观看结果,并将所有示波器的输出记录下来。(模块中的参数中,所有的载波频率设成100hz,待传输的正弦信号频率设为1,仿真时间设为10秒,仿真时间步长设为0.001秒,其余参数请根据课上老师讲解内容设置。)vi. 记录结果,完成实验报告5. experiment contents and stepsexperiment contents:de
44、sign a simple am modem system, implement the design in data flow simulation way by using simulink. all the parts of the communication system should simulated according to the follow requests:(1)source: random signal(2)modulation: carrier should be sine signal which frequency should be greater than t
45、he maximum frequency of source signal(3)channel:awgn(4)demodulation: carrier should be the same as in (2), not only same frequency, but also same phase(5)sink:output the demodulation resultsexperiment and steps:a) determine the functions, formulas and initial status (parameters) in all parts of the
46、simulation system, then finish the flow chart. b) open *.m file editor.c) programming according to the flow chart.d) debugging.e) record the design plan and parameters, as well as experiment resultsf) finish the report.六、实验数据处理与分析1. 记录定义的仿真变量、参数以及仿真结果。2. 与实际理论结果比较验证,并分析不同的原因。6. experiment data recor
47、ding, processing and analysis(1) record all the variables and parameters defined in the design and the simulation results.(2) compare the results with theoretical value, analysis the reason why there are differences between them.七、注意事项1. 在仿真运行之前要仔细检查各个模块的参数的设置,否则运行时可能会出现错误。2. 仿真步长的设置:要保证仿真运行时的仿真步长&l
48、t;所有模块中最小抽样时间的一半。7. attentionsa) module parameters should be examined carefully before the simulation running in order to avoid error occurs.b) set simulation step-length carefully: the simulation step-length < minimum sample time/2.八、预习与思考题1. 你仿真的方法是否为蒙特卡洛方法?2. 你设计的调幅是以下哪一种调制方式?adsb-scb.usbc.lsb
49、d.vsbe.am with carrier3. 你在信道上叠加的噪声信噪比是多少?4. 你解调的方式是相干解调吗?5. 与实验二相比,你认为最大的区别是什么?8. answer before & after experimentsa) did you simulate the system by using monte carlo theory?b) what modem functions did you designed in this experiment? choose from below: adsb-scb.usbc.lsbd.vsbe. am with carrierc
50、) how much noise (nsr) did you add in the channel? d) did you demodulate the signal by using coherent theory?e) whats the most different part do you think between this experiment and the last one?实验四 通信系统设计仿真exp.4 communication system design and simulation一、实验目的与要求1. 了解使用matlab对信通信系统仿真的设计方法2. 学习分工合作
51、1. experimental purpose and requirementsl get to know how to design and simulate a communication system.l get to know how to co-operate with each other.二、实验类型:创新型(8学时)2. experimemts typecreative(8 periods)三、实验原理及说明利用matlab软件设计并仿真出你所学过的某一种通信系统。分工合作:本实验为团体性实验,每一组学生若干,同一组的学生自行划分工作任务,每个人完成自己的任务部分,并主要对自己
52、的任务部分作出实验报告。3. experimental principle and instructionsdesign and simulate a communication system youve learn by using matlab.cooperates: this is an experiment works on team, one team can no more than 6 students, each member finish his own task assigned on the whole teams agreements, and make report
53、mainly on his own topics responsible for. 四、实验仪器序 号名 称主要用途1pc机为编程仿真提供硬件环境2matlab软件(含simulink及通信工具箱)为编程仿真提供软件平台4. experiment instrumentsserial numbernamemain applications1pchardware environment of simulation2matlab softwaresoftware environment of simulation五、实验内容和步骤实验内容:(1)实验题目a.基于matlab的pm系统仿真设计与实现b
54、.基于matlab的fm系统仿真设计与实现c.基于matlab的pam系统仿真设计与实现d.基于matlab的pdm系统仿真设计与实现e.基于matlab的数字基带传输系统(snrz)仿真设计与实现f.基于matlab的数字基带传输系统(srz)仿真设计与实现g.基于matlab的数字基带传输系统(dnrz)仿真设计与实现h.基于matlab的数字基带传输系统(drz)仿真设计与实现i.基于matlab的数字频带传输系统(2ask)仿真设计与实现j.基于matlab的数字频带传输系统(2fsk)仿真设计与实现k.基于matlab的数字频带传输系统(2psk)仿真设计与实现l.基于matlab的
55、数字频带传输系统(2dpsk)仿真设计与实现m.基于matlab的am系统仿真设计与实现(dsb-sc调制,相干解调)n.基于matlab的am系统仿真设计与实现(usb调制,相干解调)o.基于matlab的am系统仿真设计与实现(lsb调制,相干解调)p.基于matlab的am系统仿真设计与实现(vsb调制,相干解调)q.基于matlab的am系统仿真设计与实现(am with carrier调制,相干解调)(2)实验说明i. 本实验成绩记入本门课程的平时成绩(占总成绩的20%),本实验没有完成的学生取消期末考试资格ii. 在规定时间内(8个实验学时内)上交完整的仿真文件(模型)设计说明书实
56、验报告,才算完成本实验iii. 每组实验题目不能相同,都采用monte carlo仿真方法iv. 组长由组员推荐产生,未能推荐则由教师指定;组员在经所有相关人员同意后,可以与其它组组员互换,每组总人数<7人v. 组员任务不重叠,任务可以按照功能划分,也可以按照职能划分vi. 设计说明书格式见附录;vii. 实验报告每人重点写其个人负责任务部分即可,实验报告要包含实验总体设计图、实验数据(参数)、实验结果记录;报告不合格者取消期末考试资格实验步骤:自行设计系统结构,自定参数,利用matlab提供的工具箱或模块库构建仿真系统,并将系统结构图、实验步骤、输出波型或记录数据的文件名以及实验中所采用的主要参数如实地记录在实验报告上。1 根据题目确定具体设计方案2 利用桌面的快捷图标或是从开始-程序-matlab打开matlab软件3 打开*.m文件编辑器(或simulink)4 在*.m文件编辑器(或simulink)中输入代码(或模块)5 设置相应的参数6 开始仿真7 观看仿真结果8 记录结果,作仿真效果分析,完成实验报告5. exper
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年软件开发项目经理劳动合同3篇
- 2025年度城市广场草坪修剪与夜间经济合同3篇
- 2024甲乙双方关于区块链技术研发与应用的合同
- 2024年财产分割协议:无共同债权双方自愿离婚协商书3篇
- 2024年环保新材料研发与应用合作协议
- 2024年车间租赁合同:工业用途
- 2025宾馆股权转让与旅游产品开发协议3篇
- 2024年砌墙工程质量检测合同
- 2024年食堂食品安全追溯系统委托运营管理协议3篇
- 2024长租公寓协议标准格式版A版
- 【高一上】【期末话收获 家校话未来】期末家长会
- 滞销风险管理制度内容
- 关于物业服务意识的培训
- JJF 2184-2025电子计价秤型式评价大纲(试行)
- 排污许可证办理合同1(2025年)
- GB/T 44890-2024行政许可工作规范
- 上海科目一考试题库参考资料1500题-上海市地方题库-0
- 二年级下册加减混合竖式练习360题附答案
- (完整版)四年级上册数学竖式计算题100题直接打印版
- 高层住宅(23-33层)造价估算指标
- “千师访万家”家访记录表(共2页)
评论
0/150
提交评论