📄 am_sys.mdl
字号:
Model {
Name "am_sys"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "999999"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "1e-3"
Refine "1"
MaxStep "0.001"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Wed Jan 05 22:14:16 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Jan 05 22:30:00 2000"
ModelVersionFormat "1.%<AutoIncrement:2>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "am_sys"
Location [41, 84, 544, 404]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "标准AM调制与解调\n(包络检波)"
Ports [0, 0, 0, 0, 0]
Position [30, 69, 135, 146]
DropShadow on
OpenFcn "am_sys1"
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskDisplay "disp('Standard\\nAM System')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "标准AM调制与解调\n(包络检波)"
Location [-10, 380, 117, 533]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "非同步调制/解调系统\n(包络解调)1"
Ports [0, 0, 0, 0, 0]
Position [75, 497, 157, 551]
DropShadow on
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskDisplay "disp('AM\\nSystem - 1')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "非同步调制/解调系统\n(包络解调)1"
Location [19, 84, 531, 451]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType ZeroPole
Name "Butterworth\n低通滤波器"
Position [350, 263, 410, 307]
FontName "宋体"
FontSize 12
Zeros "z"
Poles "p"
Gain "k"
MaskType "buttap"
MaskDescription "Analog Butterworth low pass filter.\n\n(Req"
"uires Signal Processing Toolbox)"
MaskHelp "Butterworth low pass filter using MATLAB's "
"butter command."
MaskPromptString "Cutoff frequency (rad/sec)|Order"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "[z,p,k]=buttap(@2); z=@1*z; p=@1*p; k=real("
"prod(-p)); [num,den]=zp2tf(z,p,k); w=logspace(log10(@1/10),log10(10*@1),20); "
"h=freqs(num,den,w); "
MaskDisplay "plot(20*log10(w),20*log10(abs(h)))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5*2*pi|4"
}
Block {
BlockType SubSystem
Name "Diode"
Ports [1, 1, 0, 0, 0]
Position [120, 273, 155, 297]
DropShadow on
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskType "二极管"
MaskDescription "二极管"
MaskDisplay "plot([0 2 2 2],[0 0 2 -2],[2 4],[2 0],[2 4]"
",[-2 0],[4 4 4 6],[-2 2 0 0]);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Diode"
Location [4, 207, 504, 457]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "in_1"
Position [70, 120, 90, 140]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Gain
Name "Gain"
Position [340, 117, 365, 143]
Gain "1/2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [195, 123, 225, 147]
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "Sign"
Ports [1, 1, 0, 0, 0]
Position [120, 117, 150, 143]
ShowPortLabels off
MaskType "Sign"
MaskDescription "y = sign(x)"
MaskHelp "Sign Function:\\n\\t\\t\\ty = 1 if x > "
"0\\n\\t\\t\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
MaskDisplay "plot(-50,-50,50,50,[-50,50],[0,0],[0,0]"
",[-50,50],[-40,0],[-30,-30],[0,40],[30,30])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Sign"
Location [159, 289, 467, 458]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "in_1"
Position [35, 30, 55, 50]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [65, 105, 85, 125]
Value "0"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [140, 32, 170, 63]
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [140, 92, 170, 123]
Operator "<"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [215, 64, 235, 91]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "out_1"
Position [265, 70, 285, 90]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Relational\nOperator1"
DstPort 1
}
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [270, 120, 290, 140]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "out_1"
Position [395, 120, 415, 140]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sign"
DstPort 1
}
Branch {
Points [5, 50; 70, 0; 0, -40]
DstBlock "Product"
DstPort 2
}
Branch {
Points [5, -40; 145, 0; 0, 35]
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "包络检波后波形"
Ports [1, 0, 0, 0, 0]
Position [450, 175, 480, 205]
FontName "宋体"
FontSize 12
Floating off
Location [206, 245, 535, 411]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1.000000"
YMin "-1.000000"
YMax "1.000000"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType TransferFcn
Name "包络解调"
Position [190, 263, 295, 307]
DropShadow on
FontName "宋体"
FontSize 12
Numerator "[R]"
Denominator "[R*C R+1]"
MaskType "单元6"
MaskDescription "单元6"
MaskPromptString "电阻值(欧):|电容值(法):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "R=@1;C=@2;"
MaskDisplay "plot([0 15],[2 2],[8 8 6 10],[2 0 0 0],[6 1"
"0],[-1 -1],[8 8 7 9],[-1 -4 -4 -4],[12.5 12.5 12 13],[2 1 1 1],[12 12],[1 -3]"
",[13 13],[1 -3],[12 13 12.5 12.5],[-3 -3 -3 -4],[12 13],[-4 -4]);"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -