📄 pulse_signal.mdl
字号:
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime 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"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Memory
X0 "0"
InheritSampleTime off
LinearizeMemory off
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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 SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
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 "Pulse_Signal"
Location [544, 309, 1124, 602]
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 "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [65, 98, 145, 142]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "12345"
Ts "30"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [430, 113, 480, 157]
Location [277, 233, 950, 643]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-0.2~-0.2~-0.2"
YMax "1.2~1.2~1.2"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "1"
}
Block {
BlockType SubSystem
Name "Upedge"
Ports [1, 1]
Position [200, 86, 250, 154]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Upedge"
Location [463, 233, 961, 533]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 63, 70, 77]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [130, 170, 160, 200]
Value ".5"
}
Block {
BlockType Memory
Name "Memory"
Position [130, 120, 160, 150]
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [235, 62, 265, 93]
InputSameDT off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [345, 72, 375, 103]
Operator ">"
InputSameDT off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator2"
Position [255, 162, 285, 193]
InputSameDT off
}
Block {
BlockType Outport
Name "Out1"
Position [410, 83, 440, 97]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [10, 0; 25, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Memory"
DstPort 1
}
}
Line {
SrcBlock "Memory"
SrcPort 1
Points [60, 0; 0, 35]
DstBlock "Relational\nOperator2"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator2"
SrcPort 1
Points [15, 0; 0, -85]
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Relational\nOperator2"
DstPort 2
}
Branch {
Points [0, -100]
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 1
}
}
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [320, 101, 355, 139]
SampleTime "15"
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Upedge"
DstPort 1
}
Branch {
Points [0, 90; 235, 0; 0, -60]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Upedge"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
Points [0, 60; 105, 0; 0, -45]
DstBlock "Scope"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -