📄 ipolimpulse.mdl
字号:
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
EnableShiftOperators on
ParenthesesLevel "Nominal"
PortableWordSizes off
ModelStepFunctionPrototypeControlCompliant off
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"
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 Outport
Port "1"
UseBusObject off
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 Scope
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 "-1"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
ContinuousStateAttributes "''"
Realization "auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ipolimpulse"
Location [279, 82, 779, 504]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "\n"
Ports []
Position [70, 243, 111, 280]
FontName "Verdana"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "plot([-10 10],[0 0],[-2 -2 2 2],[0 1 1 0],[0 3]"
",[1 5])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "\n"
Location [2, 74, 790, 556]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "Impulse \nGenerator"
Ports [0, 1]
Position [20, 76, 70, 114]
FontName "Verdana"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Impulse Generator"
MaskDescription "This model generates an impulse of specified wi"
"dth."
MaskHelp "This model generates an impulse of specified wi"
"dth."
MaskPromptString "Impulse Time|Impulse Duration"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "T=@1;dt=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.5|0.00000001"
MaskTabNameString ","
System {
Name "Impulse \nGenerator"
Location [287, 103, 462, 240]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Step
Name "Step"
Position [25, 25, 55, 55]
FontName "Verdana"
Time "T"
After "1 / dt"
SampleTime "0"
}
Block {
BlockType Step
Name "Step1"
Position [25, 80, 55, 110]
FontName "Verdana"
Time "T + dt"
After "1 / dt"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [75, 30, 95, 50]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Outport
Name "Impulse"
Position [120, 33, 150, 47]
FontName "Verdana"
IconDisplay "Port number"
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Step1"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Impulse"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Input \nto Motor \nDriver Ckt"
Ports [1]
Position [440, 160, 470, 190]
FontName "Verdana"
Floating off
Location [351, 239, 675, 478]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveToWorkspace on
SaveName "input"
DataFormat "Array"
SampleTime "0"
}
Block {
BlockType TransferFcn
Name "PLANT\n(Cart + IP)"
Position [305, 73, 405, 117]
FontName "Verdana"
Numerator "[0 0 0.102]"
Denominator "[0.0446 0 -1]"
}
Block {
BlockType TransferFcn
Name "SERVOMECHANISM\n(Motor + Pulley-Chain \nMechani"
"sm)"
Position [150, 77, 210, 113]
FontName "Verdana"
Numerator "[0.391 0]"
Denominator "[0.5 1]"
}
Block {
BlockType Scope
Name "Theta\n(Angle from \nthe Vertical)"
Ports [1]
Position [440, 79, 470, 111]
FontName "Verdana"
Floating off
Location [36, 312, 360, 550]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveToWorkspace on
SaveName "ipolim"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "30000"
SampleTime "0"
}
Line {
SrcBlock "SERVOMECHANISM\n(Motor + Pulley-Chain \nMechani"
"sm)"
SrcPort 1
DstBlock "PLANT\n(Cart + IP)"
DstPort 1
}
Line {
SrcBlock "PLANT\n(Cart + IP)"
SrcPort 1
DstBlock "Theta\n(Angle from \nthe Vertical)"
DstPort 1
}
Line {
SrcBlock "Impulse \nGenerator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 80]
DstBlock "Input \nto Motor \nDriver Ckt"
DstPort 1
}
Branch {
DstBlock "SERVOMECHANISM\n(Motor + Pulley-Chain \nMecha"
"nism)"
DstPort 1
}
}
Annotation {
Name "Force on Cart"
Position [253, 84]
FontName "Verdana"
}
Annotation {
Name "Open Loop Impulse Response of Uncompensated Inv"
"erted Pendulum System"
Position [251, 36]
DropShadow on
FontName "Arial"
FontSize 11
FontWeight "bold"
}
Annotation {
Name "Click Here for more \nInformation on IP"
Position [88, 296]
FontName "Verdana"
}
Annotation {
Name "This model shows the impulse response of \nInve"
"rted Pendulum System. The system is \nhighly unstable as Theta diverges very "
"rapidly."
Position [304, 274]
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -