📄 vco111.mdl
字号:
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Signum
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
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 "vco"
Location [2, 70, 798, 552]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [125, 225, 155, 255]
Value "0.1"
}
Block {
BlockType Reference
Name "Discrete-Time\nVCO"
Ports [1, 1]
Position [225, 288, 305, 332]
FontName "Arial"
FontSize 10
SourceBlock "commcontsrc2/Discrete-Time\nVCO"
SourceType "Discrete-Time VCO"
Ac "1"
Fc "10"
Kc "0.1"
Ph "0"
ts "1"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [60, 53, 140, 97]
FontSize 10
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 0 1]"
ini_sta "[1 1 1 1]"
shift "0"
Ts "1"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator1"
Ports [0, 1]
Position [60, 133, 140, 177]
FontSize 10
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 0 1]"
ini_sta "[1 0 1 1]"
shift "0"
Ts "14/15"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [200, 96, 245, 129]
InputSameDT off
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [290, 74, 320, 106]
Location [1, 49, 801, 571]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-5~-5~-5"
YMax "5~5~5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [395, 241, 425, 274]
Location [1, 49, 801, 571]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Signum
Name "Sign"
Position [315, 215, 345, 245]
}
Block {
BlockType Reference
Name "Voltage-Controlled\nOscillator"
Ports [1, 1]
Position [210, 208, 290, 252]
FontName "Arial"
FontSize 10
SourceBlock "commcontsrc2/Voltage-Controlled\nOscillator"
SourceType "Voltage-Controlled Oscillator"
Ac "1"
Fc "0.1"
Kc "0.1"
Ph "0"
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
Points [20, 0; 0, 5]
Branch {
Points [0, 25]
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "PN Sequence\nGenerator1"
SrcPort 1
Points [20, 0; 0, -35; 15, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -30]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Voltage-Controlled\nOscillator"
SrcPort 1
DstBlock "Sign"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [15, 0; 0, -10; 15, 0]
Branch {
DstBlock "Voltage-Controlled\nOscillator"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Discrete-Time\nVCO"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nVCO"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Sign"
SrcPort 1
Points [30, 0]
DstBlock "Scope1"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -