📄 rs.mdl
字号:
Model {
Name "RS"
Version 3.00
SimParamPage "Diagnostics"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "10.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
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 "none"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "none"
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 "Sun Dec 23 19:25:26 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Dec 31 16:55:25 2001"
ModelVersionFormat "1.%<AutoIncrement:23>"
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 "RS"
Location [8, 93, 1028, 728]
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 Clock
Name "Clock"
Position [245, 104, 270, 126]
FontSize 20
DisplayTime off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [195, 33, 270, 67]
FontSize 20
Value "0"
}
Block {
BlockType Constant
Name "Constant1"
Position [200, 218, 275, 252]
FontSize 20
Value "1"
}
Block {
BlockType SubSystem
Name "Pulse\nGenerator"
Ports [0, 1, 0, 0, 0]
Position [377, 25, 453, 55]
Orientation "down"
FontSize 20
ShowPortLabels on
MaskType "Pulse Generator"
MaskDescription "Pulse Generator"
MaskHelp "Pulse generator which ensures pulse transitions"
" are hit. Provides a vector of pulses when the height is entered as a vector."
" Unmask to see how it works."
MaskPromptString "Period (secs):|Duty cycle (% of period):|Amplit"
"ude:|Start time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskVariables "period=@1;duty=@2;amplitude=@3;start=@4;"
MaskInitialization "\n"
MaskDisplay "plot(0,0,100,100,[95,90,90,75,75,60,60,45,45,30"
",30,15,15,5],[25,25,75,75,25,25,75,75,25,25,75,75,25,25]); \n "
" "
" \n "
" "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|50|1|0"
System {
Name "Pulse\nGenerator"
Location [205, 368, 544, 559]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "Constant1"
Position [40, 135, 60, 155]
Value "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [35, 83, 65, 107]
Amplitude "1"
Frequency "2*pi./period"
Phase "-2*pi*(start./period + duty/200 - 1/4)"
SampleTime "-1"
}
Block {
BlockType Step
Name "Step"
Position [35, 27, 65, 53]
Time "start"
Before "0"
After "amplitude"
SampleTime "-1"
}
Block {
BlockType Switch
Name "Switch"
Position [120, 65, 155, 125]
Threshold "sin(pi*(0.5 - duty/100))"
}
Block {
BlockType Outport
Name "out1"
Position [250, 88, 280, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0; 20, 0]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "out1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Step"
SrcPort 1
Points [20, 0; 0, 35]
DstBlock "Switch"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [7, 0, 0, 0, 0]
Position [765, 126, 825, 364]
FontSize 20
Floating off
Location [83, 39, 974, 709]
Open on
NumInputPorts "7"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "CLK"
axes2 "S"
axes3 "R"
axes4 "Q1"
axes5 "Q2"
axes6 "Q"
axes7 "/Q"
}
Grid "on"
TimeRange "10"
YMin "0~0~0~0~0~0~0"
YMax "1.2~1.2~1.2~1.2~1.2~1.2~1.2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [200, 288, 265, 322]
FontSize 20
Time "4.2"
Before "1"
After "0"
SampleTime "-1"
}
Block {
BlockType Step
Name "Step1"
Position [200, 153, 270, 187]
FontSize 20
Time "4.2"
Before "0"
After "1"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "SubSystem"
Ports [3, 4, 0, 0, 0]
Position [460, 133, 535, 242]
FontSize 20
ShowPortLabels on
System {
Name "SubSystem"
Location [24, 93, 1044, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "S"
Position [75, 32, 125, 58]
FontSize 20
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "R"
Position [75, 296, 115, 324]
FontSize 20
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -