📄 ask_o.mdl
字号:
Model {
Name "ask"
Version 2.09
SimParamPage Solver
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
PaperOrientation landscape
PaperType usletter
PaperUnits inches
StartTime "0.0"
StopTime "0.1"
Solver ode5
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "0.000001"
MaxOrder 5
OutputOption RefineOutputTimes
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg warning
MinStepSizeMsg warning
UnconnectedInputMsg warning
UnconnectedOutputMsg warning
UnconnectedLineMsg warning
ConsistencyChecking off
ZeroCross on
SimulationMode normal
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_vc.tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
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 "ask"
Location [7, 45, 539, 303]
Open on
ScreenColor white
Block {
BlockType Reference
Name "10"
Ports [0, 1, 0, 0, 0]
Position [30, 85, 60, 115]
ForegroundColor blue
SourceBlock "simulink/Sources/Pulse\nGenerator"
SourceType "Pulse Generator"
period "0.001"
duty "50"
amplitude "1"
start "0"
}
Block {
BlockType SignalGenerator
Name "Carrier"
Position [30, 155, 60, 185]
ShowName off
WaveForm square
Amplitude "1"
Frequency "4000"
Units Hertz
}
Block {
BlockType Reference
Name "Error rate2"
Ports [2, 0, 0, 0, 0]
Position [375, 183, 455, 227]
ShowName off
SourceBlock "com_sour/Error rate"
SourceType "Symbol/bit error counter"
K "1"
num_lin "20"
TDelay "0"
Sample "0.001"
}
Block {
BlockType Mux
Name "Mux7"
Ports [2, 1, 0, 0, 0]
Position [375, 89, 410, 136]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux8"
Ports [2, 1, 0, 0, 0]
Position [215, 44, 250, 91]
ShowName off
Inputs "2"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1, 0, 0, 0, 0]
Position [275, 55, 305, 85]
Floating off
Location [7, 329, 411, 593]
Open on
Grid on
TickLabels on
ZoomMode xonly
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1, 0, 0, 0, 0]
Position [430, 100, 460, 130]
Floating off
Location [418, 329, 797, 594]
Open on
Grid on
TickLabels on
ZoomMode xonly
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1, 0, 0, 0]
Position [110, 86, 170, 139]
ShowName off
ShowPortLabels on
System {
Name "Subsystem"
Location [119, 189, 319, 273]
Open off
ScreenColor white
Block {
BlockType Inport
Name "source"
Position [25, 28, 55, 42]
NamePlacement alternate
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "carrier"
Position [25, 43, 55, 57]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [90, 27, 120, 58]
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "ASK"
Position [145, 38, 175, 52]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "ASK"
DstPort 1
}
Line {
SrcBlock "carrier"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "source"
SrcPort 1
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1, 0, 0, 0]
Position [215, 130, 280, 185]
ShowName off
ShowPortLabels on
System {
Name "Subsystem1"
Location [244, 197, 444, 308]
Open off
ScreenColor white
Block {
BlockType Inport
Name "ASK"
Position [60, 25, 90, 40]
Orientation down
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "carrier"
Position [25, 68, 55, 82]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1, 0, 0, 0]
Position [90, 52, 120, 83]
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "^source"
Position [145, 63, 175, 77]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "^source"
DstPort 1
}
Line {
SrcBlock "ASK"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "carrier"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [0, 0, 0, 0, 0]
Position [480, 186, 510, 222]
ForegroundColor red
DropShadow on
ShowName off
ShowPortLabels on
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "Subsystem2"
Location [255, 300, 676, 391]
Open off
ScreenColor white
}
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
Points [65, 0]
Branch {
Points [0, 35]
DstBlock "Error rate2"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Mux7"
DstPort 2
}
}
Line {
SrcBlock "Mux7"
SrcPort 1
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Mux8"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "Subsystem"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 30]
DstBlock "Subsystem1"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Mux8"
DstPort 2
}
}
Line {
SrcBlock "Carrier"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Subsystem1"
DstPort 2
}
Branch {
DstBlock "Subsystem"
DstPort 2
}
}
Line {
SrcBlock "10"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Error rate2"
DstPort 2
}
Branch {
Points [0, -70]
Branch {
Points [110, 0; 0, 25]
DstBlock "Mux8"
DstPort 1
}
Branch {
Points [265, 0; 0, 70]
DstBlock "Mux7"
DstPort 1
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -