?? exp5_10.mdl
字號:
Model {
Name "exp5_10"
Version 3.00
SimParamPage "WorkspaceI/O"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "10.0"
SolverMode "SingleTasking"
Solver "ode45"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "t"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "y"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "yy"
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 off
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_vc.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 Nov 22 21:30:45 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Dec 28 14:26:14 2001"
ModelVersionFormat "1.%<AutoIncrement:17>"
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 "exp5_10"
Location [14, 93, 1034, 770]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [685, 160, 695, 220]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [775, 175, 805, 205]
FontSize 22
Floating off
Location [95, 108, 729, 618]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "10"
YMin "-2"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [155, 160, 185, 190]
FontSize 22
Amplitude "1"
Frequency "1"
Phase "0"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1, 0, 0, 0]
Position [345, 150, 530, 200]
FontSize 22
ShowPortLabels on
MaskType "comparater"
MaskDescription "The block will translate the input signal to sq"
"uare wave. If the checkbox 'threshold on' is selected then threshold is 0.5, "
"otherwise, there is no threshold."
MaskHelp "Select the checkbox 'threshold on' to access th"
"e threshold function."
MaskPromptString "threshold on"
MaskStyleString "checkbox"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskVariables "t=@1;"
MaskInitialization "if t\nth=0.5;\nelse\nth=0;\nend"
MaskDisplay "disp('The Comparater')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "on"
System {
Name "Subsystem"
Location [2, 89, 1022, 766]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [325, 86, 370, 104]
FontSize 20
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [335, 202, 385, 228]
FontSize 20
Value "th"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1, 0, 0, 0]
Position [630, 38, 725, 82]
FontSize 20
Operator "AND"
Inputs "2"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [510, 114, 560, 176]
FontSize 20
Operator ">="
}
Block {
BlockType Outport
Name "Out"
Position [780, 48, 840, 72]
FontSize 20
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [20, 0; 0, -75]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [55, 0; 0, -55]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "In"
SrcPort 1
Points [65, 0]
Branch {
Points [0, 35]
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Logical\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [0, 120; 360, 0; 0, -90]
DstBlock "Mux"
DstPort 2
}
}
Annotation {
Position [483, 73]
Text "問題:設計一個有臨界值(采用Checkbox選擇框)的"
"比較器,該臨界值為輸入的變量。\n當輸入信號大于0且大于臨界值時輸出為1,否則為0"
"。"
FontSize 18
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -