📄 nlksf.mdl
字号:
Model {
Name "NLKSF"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "40"
SolverMode "SingleTasking"
Solver "ode45"
RelTol "1e-3"
AbsTol "1e-3"
Refine "1"
MaxStep ".025"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "t"
SaveState off
StateSaveName "xout"
SaveOutput off
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 "Tue Jun 22 14:37:48 1999"
Creator "CAMPA"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Dec 28 08:02:26 2001"
ModelVersionFormat "1.%<AutoIncrement:61>"
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 "NLKSF"
Location [17, 296, 625, 654]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "portrait"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Actuators"
Ports [1, 1, 0, 0, 0]
Position [40, 99, 145, 121]
NamePlacement "alternate"
ShowPortLabels on
System {
Name "Actuators"
Location [243, 84, 681, 213]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "portrait"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "dc"
Position [25, 33, 55, 47]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [295, 25, 325, 55]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput on
UpperSaturationLimit "+0.4"
LowerSaturationLimit "-0.4"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Gain
Name "K"
Position [180, 25, 210, 55]
Gain "5"
SaturateOnIntegerOverflow on
}
Block {
BlockType Saturate
Name "Saturation"
Position [235, 25, 265, 55]
UpperLimit "2"
LowerLimit "-2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [140, 30, 160, 50]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [80, 25, 110, 55]
DelayTime "0.01"
InitialInput "0"
BufferSize "2048"
}
Block {
BlockType Outport
Name "d"
Position [380, 33, 410, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "dc"
SrcPort 1
DstBlock "Transport\nDelay"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "K"
DstPort 1
}
Line {
SrcBlock "K"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 55; -200, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "d"
DstPort 1
}
}
}
}
Block {
BlockType Constant
Name "Current"
Position [40, 174, 145, 196]
Value "0.1*[1 1 1 0 0 0]'"
}
Block {
BlockType SubSystem
Name "Double click here to load\nmodel and LQRx cont"
"rol\n"
Ports [0, 0, 0, 0, 0]
Position [105, 24, 167, 49]
ForegroundColor "magenta"
DropShadow on
ShowName off
OpenFcn "shark;h=0.3;global veh;[v1,veh,v3]=vehicle;lo"
"ad abcdk"
ShowPortLabels off
MaskDisplay "disp('Load Data')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Double click here to load\nmodel and LQRx co"
"ntrol\n"
Location [6, 471, 110, 508]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Constant
Name "F_b"
Position [40, 124, 145, 146]
NamePlacement "alternate"
ShowName off
Value "1*[416 0 0 0 0 0]'"
}
Block {
BlockType Constant
Name "F_e"
Position [40, 149, 145, 171]
NamePlacement "alternate"
Value "1.0*[0 0 0 0 0 0]'"
}
Block {
BlockType SubSystem
Name "IIR2"
Ports [1, 1, 0, 0, 0]
Position [360, 215, 440, 250]
Orientation "down"
ForegroundColor "darkGreen"
ShowPortLabels on
MaskType "Discrete Time Second Order IIR"
MaskDescription " Each channel has the transfer function :\n 1"
"-2*cos(sqrt(1-x^2)*m*T)*exp(-x*m*T)+exp(-2*x*m*T) /\n 1-2*cos(sqrt(1-x^2)*m*"
"T)*exp(-x*m*T)z^-1+exp(-2*x*m*T)z^-2\n which is a good (pz-matched) approxim"
"ation of \n m^2/(s^2+2xms+m^2) if 10*m*T<pi\n The initial condition is in d"
"iscrete time for the whole system.\n"
MaskHelp "<p>\n Each channel has the transfer function :"
"\n 1-2*cos(sqrt(1-x^2)*m*T)*exp(-x*m*T)+exp(-2*x*m*T) /\n 1-2*cos(sqrt(1-x^"
"2)*m*T)*exp(-x*m*T)z^-1+exp(-2*x*m*T)z^-2\n which is a good (pz-matched) app"
"roximation of \n m^2/(s^2+2xms+m^2) if 10*m*T<pi\n The initial condition is"
" in discrete time for the whole system.\n</p>\n"
MaskPromptString "Number of Channels|Poles Magnitude (m)|Poles Da"
"mping (x)|Initial Condition|Sample Time"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskVariables "ni=@1;w=@2;x=@3;x0=@4;T=@5;"
MaskInitialization "A=[];B=[];C=[];D=[];\nfor i=1:ni,\nA=[A,zeros(s"
"ize(A,1),2);zeros(2,size(A,2)),[0 1; -exp(-2*x*w*T) 2*cos(sqrt(1-x^2)*w*T)*ex"
"p(-x*w*T)]];\nB=[B,zeros(size(B,1),1);zeros(2,size(B,2)),[0;1+exp(-2*x*w*T)-2"
"*cos(sqrt(1-x^2)*w*T)*exp(-x*w*T)]];\nC=[C,zeros(size(C,1),2);zeros(1,size(C,"
"2)),[-exp(-2*x*w*T) 2*cos(sqrt(1-x^2)*w*T)*exp(-x*w*T)]];\nD=[D,zeros(size(D"
",1),1);zeros(1,size(D,2)),1+exp(-2*x*w*T)-2*cos(sqrt(1-x^2)*w*T)*exp(-x*w*T)]"
";\nend"
MaskDisplay "dpoly(w^2, [1 2*x*w w^2],'s')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "9|20|0.74|0|0.025"
System {
Name "IIR2"
Location [350, 143, 766, 250]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [80, 43, 110, 57]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType DiscreteStateSpace
Name "Discrete State-Space"
Position [135, 32, 255, 68]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -