?? enabled.mdl
字號:
Model {
Name "enabled"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "40"
SolverMode "Auto"
Solver "FixedStepDiscrete"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "0.01"
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"
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 "Thu Feb 25 20:34:56 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "pgoddard"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Mar 10 08:28:16 1999"
ModelVersionFormat "1.%<AutoIncrement:6>"
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 "enabled"
Location [14, 74, 487, 374]
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 "Abs\nOutput Reset"
Ports [1, 1, 1, 0, 0]
Position [205, 55, 275, 115]
NamePlacement "alternate"
FontName "Arial"
FontSize 14
FontWeight "bold"
ShowPortLabels on
System {
Name "Abs\nOutput Reset"
Location [516, 310, 758, 441]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [40, 83, 70, 97]
FontName "Arial"
FontSize 14
FontWeight "bold"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports [0, 0, 0, 0, 0]
Position [100, 15, 120, 35]
FontName "Arial"
FontSize 14
FontWeight "bold"
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Abs
Name "Abs"
Position [95, 75, 125, 105]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Block {
BlockType Outport
Name "Out1"
Position [150, 83, 180, 97]
FontName "Arial"
FontSize 14
FontWeight "bold"
Port "1"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [340, 156, 390, 184]
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
Value "[6 4 2 0]"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1, 0, 0, 0]
Position [220, 150, 260, 175]
Orientation "down"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
Operator "NOT"
Inputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1, 0, 0, 0]
Position [335, 53, 340, 137]
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
Inputs "4"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Pulse Generator\nPeriod: 5\nDuty Cycle: 50%"
Ports [0, 1, 0, 0, 0]
Position [125, 115, 155, 145]
FontName "Arial"
FontSize 14
FontWeight "bold"
SourceBlock "simulink3/Sources/Pulse\nGenerator"
SourceType "Pulse Generator"
period "5"
duty "50"
amplitude "1"
start "0"
}
Block {
BlockType SubSystem
Name "Saturation between -0.75 to 0.75\nOutput Held"
Ports [1, 1, 1, 0, 0]
Position [210, 201, 275, 259]
FontName "Arial"
FontSize 14
FontWeight "bold"
ShowPortLabels on
System {
Name "Saturation between -0.75 to 0.75\nOutput Held"
Location [675, 370, 890, 503]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [40, 93, 70, 107]
FontName "Arial"
FontSize 14
FontWeight "bold"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports [0, 0, 0, 0, 0]
Position [100, 20, 120, 40]
FontName "Arial"
FontSize 14
FontWeight "bold"
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Saturate
Name "Saturation\n-0.75 to 0.75"
Position [95, 85, 125, 115]
FontName "Arial"
FontSize 14
FontWeight "bold"
UpperLimit "0.75"
LowerLimit "-0.75"
}
Block {
BlockType Outport
Name "Out1"
Position [150, 93, 180, 107]
FontName "Arial"
FontSize 14
FontWeight "bold"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Saturation\n-0.75 to 0.75"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Saturation\n-0.75 to 0.75"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [425, 79, 455, 111]
FontName "Arial"
FontSize 14
FontWeight "bold"
Floating off
Location [498, 22, 957, 353]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "40"
YMin "-1"
YMax "7"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [30, 70, 60, 100]
FontName "Arial"
FontSize 14
FontWeight "bold"
Amplitude "1"
Frequency "1"
Phase "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [385, 85, 405, 105]
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Saturation between -0.75 to 0.75\nOutput Held"
DstPort enable
}
Line {
SrcBlock "Pulse Generator\nPeriod: 5\nDuty Cycle: 50%"
SrcPort 1
Points [80, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Abs\nOutput Reset"
DstPort enable
}
Branch {
Points [60, 0; 0, -25]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Abs\nOutput Reset"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 145]
DstBlock "Saturation between -0.75 to 0.75\nOutput Held"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
Points [0, -75; 240, 0]
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Abs\nOutput Reset"
DstPort 1
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Saturation between -0.75 to 0.75\nOutput Held"
SrcPort 1
Points [40, 0]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -