📄 pntongbu.mdl
字号:
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
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 "pntongbu"
Location [2, 82, 1014, 726]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Compare\nTo Constant"
Ports [1, 1]
Position [615, 205, 645, 235]
SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo "
"Constant"
SourceType "Compare To Constant"
ShowPortLabels on
relop ">="
const "1"
LogicOutDataTypeMode "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion1"
Position [160, 196, 215, 224]
NamePlacement "alternate"
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion2"
Position [180, 396, 235, 424]
NamePlacement "alternate"
OutDataTypeMode "double"
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [440, 202, 470, 238]
LowerSaturationLimit "0"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [785, 204, 815, 236]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [495, 276, 525, 309]
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [2, 1]
Position [865, 211, 895, 244]
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator4"
Ports [1, 1]
Position [984, 295, 1016, 325]
Orientation "down"
NamePlacement "alternate"
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [45, 188, 125, 232]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 0 1]"
ini_sta "[1 1 1 0]"
shift "0"
Ts "0.001"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [370, 202, 400, 233]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.001"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [525, 202, 555, 233]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.001"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Ports [0, 1]
Position [410, 268, 455, 302]
PulseType "Time based"
Period "0.001"
PulseWidth "50"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Ports [0, 1]
Position [425, 13, 470, 47]
PulseType "Time based"
Period "0.015"
PulseWidth "50"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [170, 269, 200, 301]
Location [5, 54, 1445, 869]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-5~-5~-5"
YMax "5~5~5"
DataFormat "StructureWithTime"
SampleTime "0.001"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [175, 119, 205, 151]
Location [5, 54, 1445, 869]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [540, 14, 570, 46]
Location [5, 54, 1445, 869]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleInput on
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [175, 454, 205, 486]
Location [5, 283, 1445, 809]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleInput on
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [765, 149, 795, 181]
Location [5, 298, 1445, 689]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [555, 309, 585, 341]
Location [5, 503, 1445, 894]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope8"
Ports [4]
Position [630, 119, 660, 151]
Location [5, 54, 1445, 869]
Open off
NumInputPorts "4"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
SampleInput on
}
Block {
BlockType Step
Name "Step"
Position [420, 330, 450, 360]
Time "0.001"
SampleTime "0"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [240, 188, 320, 232]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter1"
Ports [1, 1]
Position [255, 388, 335, 432]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType SubSystem
Name "pntongbu"
Ports [1, 1]
Position [85, 380, 125, 440]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "pntongbu"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "input"
Position [80, 443, 110, 457]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion"
Position [265, 346, 320, 374]
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion1"
Position [125, 276, 180, 304]
NamePlacement "alternate"
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion2"
Position [91, 95, 119, 150]
Orientation "down"
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [315, 83, 390, 117]
OutDataTypeMode "boolean"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [500, 92, 530, 123]
Operator "OR"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [420, 84, 450, 116]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [600, 281, 630, 314]
Operator "XOR"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [2, 1]
Position [210, 396, 240, 429]
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator4"
Ports [1, 1]
Position [75, 274, 105, 306]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Ports [0, 1]
Position [90, 388, 135, 422]
PulseType "Time based"
Period "0.001"
PulseWidth "50"
}
Block {
BlockType Reference
Name "Queue"
Ports [3, 1]
Position [260, 157, 355, 223]
SourceBlock "dspbuff3/Queue"
SourceType "Queue"
depth "8"
trigger "Rising edge"
overflow "Dynamic reallocation"
pes "Warning"
eso off
fso off
nso off
clr off
clrOutport off
}
Block {
BlockType Reference
Name "Queue1"
Ports [3, 1]
Position [400, 157, 495, 223]
SourceBlock "dspbuff3/Queue"
SourceType "Queue"
depth "8"
trigger "Rising edge"
overflow "Dynamic reallocation"
pes "Warning"
eso off
fso off
nso off
clr off
clrOutport off
}
Block {
BlockType Reference
Name "Queue2"
Ports [3, 1]
Position [535, 157, 630, 223]
SourceBlock "dspbuff3/Queue"
SourceType "Queue"
depth "8"
trigger "Rising edge"
overflow "Dynamic reallocation"
pes "Warning"
eso off
fso off
nso off
clr off
clrOutport off
}
Block {
BlockType Reference
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -