基于matlab和simulink的系统仿真_第1页
基于matlab和simulink的系统仿真_第2页
基于matlab和simulink的系统仿真_第3页
基于matlab和simulink的系统仿真_第4页
基于matlab和simulink的系统仿真_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、基于matlab/simulink的QPSK通信系统仿真课程设计目的: 本课程设计主要是学会运用MATLAB中的Simulink来实现数字基带信号的模拟传输。在知道其传输原理的情况下,将仿真电路到Simulink之中。并且对正交振幅调制、解调过程的频谱和波形的分析,同时在无噪声和有噪声的进行分析,加入高斯白噪声,瑞利噪声,莱斯噪声分析调制解调后的频谱、波形,观察其误码率。(1) 巩固和加深学生对QPSK调制解调技术的基本知识的理解和掌握;(2)掌握编程和程序调试的基本技能; (3)利用MATLAB进行基本的软件设计,掌握软件设计一般方法,了解软件设计的思路;(4)掌握书写程序设计报告的能力;(

2、5)提高运用MATLAB解决实际问题的能力;课程设计仪器:(1) MATLAB7.0 (2)simulink MATLAB是由美国mathworks公司发布的主要面对科学计算、可视化以及交互式程序设计的高科技计算环境。它将数值分析、矩阵计算、科学数据可视化以及非线性动态系统的建模和仿真等诸多强大功能集成在一个易于使用的视窗环境中,为科学研究、工程设计以及必须进行有效数值计算的众多科学领域提供了一种全面的解决方案。相关原理:4PSK常称为正交相移键控(QPSK)。4PSK信号每个码元含有2 比特的信息,现用ab代表这两个比特。两个比特有4种组合,即00、01、10和11。它们和相位qk之间的关系

3、通常都按格雷码的规律安排,如下表所示。 QPSK信号的编码 QPSK信号矢量图格雷码的好处在于相邻相位所代表的两个比特只有一位不同。由于因相位误差造成错判至相邻相位上的概率最大,故这样编码使之仅造成一个比特误码的概率最大2、QPSK调制两种产生方法:相乘电路法 二进制信号码元“0”和“1在相乘电路中与不归零双极性矩形脉冲振幅的关系如下:二进制码元“1” ® 双极性脉冲“+1”;二进制码元“0” ® 双极性脉冲“-1”。符合上述关系才能得到第6章中的B方式编码规则。 3、QPSK解调原理方框图仿真结果:QPSK原理框图调制端的眼图解调端眼图星座图基带信号与调制信号的波形比较无

4、噪声的误码率设计体会:这次的课程设计是在MATLAB的SIMULINK环境下仿真实现QPSK的调试与解调,刚开始是没有完全理解QPSK的的原理,以至于多走了很多的弯路,后来又因为没能正确的使用示波器而导致出现了很多的错误,后来加如噪声后,更是有很多的错误出现了,误码率也很大,星座图也跳跃不停。通过出现的问题,我看到了自己的不足,也学会了SIMULINK模块的运用,更重要的是了解了多进制的调制与解调原理,通过课程设计来巩固本学期的通信原理与数字信号的专业知识内容,同时也运用理论知识与实际电路的设计相结合了起来,通过综合分析,找出了自己学习过程中的不足,为今后的学习提供实践依据,打下了基础。这次实

5、习是运用MATLAB中的SIMULINK仿真出8PSK的调制与解调,这是多进制的调制与解调,我开始没能完全理解多进制的调制与解调,错误的使用了二进制的方式去调制与解调,输入了二进制的正弦波,也使用了只能显示二进制的示波器,导致实验过程中一直都有错,没能正确的运行,再一次次的失败后,仍然找不到出错点在哪。后来老师来给我讲解了多进制的原理后,我明白了原来自己的专业知识不够扎实,原理没有理解透再接下来就是如何正确的调制了,由于没有波形,我一直没能正确的算出延时,导致误码率的居高不下,后来经老师提点,知道了,其实可以将多进制进行转换,转换为二进制的方式在示波器上显示,于是,我使用了一个转换器,成功的显

6、示了多进制的波形。在此次课程设计中,我掌握了SIMULINK软件的使用,虽然不是很熟悉,但是,以后我将会更加努力的学习,还有专业知识的加强,在这次课程设计中,问题出现的如此多,主要在于专业知识的不够完善,幸亏老师一次次的细心指导,才能完成此次设计,今后一定加强学习。参考文献【1】 张 琨,高思超,毕靖,MATLAB 2010 从入门到精通,电子工业出版社,2011【2】 赵景波,逢锦梅,MATLAB控制系统仿真与设计,机械工业出版社,2010【3】 孙屹,Simulink通信仿真开发手册,国防工业出版社,2004【4】 樊昌信,曹丽娜,通信原理,国防工业出版社,2006【5】 钟麟,MATLA

7、B仿真技术与应用教程,国防工业出版社,2003 附录:代码: Model Name "fengzhiyue" Version 6.0 GraphicalInterface NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.4" NumModelReferences 0 NumTestPointedSignals 0 SavedCharacterEncoding "ibm-1386_P100-2002&quo

8、t; SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off Sho

9、wLinearizationAnnotations on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovC

10、umulativeReport off CovReportOnPause on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersData

11、Tip off BlockDescriptionStringDataTipoff ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Dec 27 15:37:29 2012" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "lenovo" ModifiedDateFo

12、rmat "%<Auto>" LastModifiedDate "Wed Jan 02 14:47:54 2013" ModelVersionFormat "1.%<AutoIncrement:4>" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile &q

13、uot;accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement &quo

14、t;any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtMode

15、WriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array Type "Handle" Dimension 1 Simu

16、link.ConfigSet $ObjectID 1 Version "1.0.4" Array Type"Handle"Dimension7Simulink.SolverCC $ObjectID 2 Version "1.0.4" StartTime "0.0" StopTime "10.0" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "

17、-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode45" ZeroCrossControl "UseLocalSettings" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTim

18、eConstraint "Unconstrained" RateTranMode "Deterministic"Simulink.DataIOCC $ObjectID 3 Version "1.0.4" Decimation "1" ExternalInput "t, u" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000&

19、quot; LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputT

20、imes" OutputTimes "" Refine "1"Simulink.OptimizationCC $ObjectID 4 Array Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode&quo

21、t; Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" Version "1.0.4" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on ConditionalExecOptimization "on_for_testing" InlineParams off InlineInvariantSignals on OptimizeBlockIOStorage on B

22、ufferReuse on EnforceIntegerDowncast on ExpressionFolding on FoldNonRolledExpr on LocalBlockOutputs on ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on

23、NoFixptDivByZeroProtection off OptimizeModelRefInitCode off LifeSpan "inf"Simulink.DebuggingCC $ObjectID 5 Version "1.0.4" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning"

24、 CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsgoff SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "warning" Inherite

25、dTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloat

26、ConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConn

27、Msg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" RootOutportRequireBusObject "warning&qu

28、ot; AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off U

29、nknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning"Simulink.HardwareCC $ObjectID 6 Version "1.0.4" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undef

30、ined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess

31、"Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget onSimulink.ModelReferenceCC $ObjectID 7 Version "1.0.4" UpdateModelReferenceTarge

32、ts "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences offSimulink.RTWCC $BackupClass "Simulink.RTWCC" $ObjectID 8 Arr

33、ay Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" Version "1.0.4" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog of

34、f RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off Array Type "Handle" Dimension 2 Simulink.CodeAppCC $Obje

35、ctID 9 Array Type"Cell"Dimension9Cell"IgnoreCustomStorageClasses"Cell"InsertBlockDesc"Cell"SFDataObjDesc"Cell"SimulinkDataObjDesc"Cell"DefineNamingRule"Cell"SignalNamingRule"Cell"ParamNamingRule"Cell"InlinedPrmAcces

36、s"Cell"CustomSymbolStr"PropName"DisabledProps" Version "1.0.4" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComme

37、nts off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on CustomSymbolStr "$R$N$M" MangleLength 1 DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on En

38、ableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off Simulink.GRTTargetCC $BackupClass "Simulink.TargetCC" $ObjectID 10 Array Type"Cell"Dimension12Cell"IncludeMdlTerminateFcn"Cell"CombineOutputUpdateFcns"Cell"SuppressErrorStatus&quo

39、t;Cell"ERTCustomFileBanners"Cell"GenerateSampleERTMain"Cell"MultiInstanceERTCode"Cell"PurelyIntegerCode"Cell"SupportNonFinite"Cell"SupportComplex"Cell"SupportAbsoluteTime"Cell"SupportContinuousTime"Cell"SupportNonIn

40、linedSFcns"PropName"DisabledProps" Version "1.0.4" TargetFcnLib "ansi_tfl_tmw.mat" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTe

41、rminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportCon

42、tinuousTime on SupportNonInlinedSFcns on ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off PropName "Components" PropName"Components" Name "Configuration" SimulationMode "normal" Curren

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论