📄 pendulum3ctrl.mdl
字号:
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
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 Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
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 "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
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 "pendulum3ctrl"
Location [78, 74, 874, 556]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Demux
Name "Demux1"
Ports [1, 8]
Position [425, 217, 430, 313]
BackgroundColor "black"
ShowName off
Outputs "8"
}
Block {
BlockType SubSystem
Name "Neural Network"
Ports [1, 1]
Position [205, 320, 265, 360]
Orientation "left"
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Neural Network"
Location [480, 85, 1060, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "p{1}"
Position [40, 40, 60, 60]
BackgroundColor "magenta"
Port "1"
IconDisplay "Port number"
PortDimensions "8"
LatchInput off
}
Block {
BlockType From
Name " a{1} "
Position [40, 120, 60, 140]
DialogController "Simulink.DDGSource"
GotoTag "feedback1"
MaskDisplay "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Layer 1"
Ports [1, 1]
Position [190, 40, 250, 60]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Layer 1"
Location [480, 85, 1060, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "p{1}"
Position [40, 40, 60, 60]
BackgroundColor "magenta"
Port "1"
IconDisplay "Port number"
PortDimensions "8"
LatchInput off
}
Block {
BlockType SubSystem
Name "Delays 1"
Ports [1, 1]
Position [100, 40, 120, 60]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('TDL')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Delays 1"
Location [480, 85, 1060, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "p{1}"
Position [60, 40, 80, 60]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
Port "1"
IconDisplay "Port number"
PortDimensions "8"
LatchInput off
}
Block {
BlockType Mux
Name "mux"
Ports [1, 1]
Position [200, 60, 240, 80]
BackgroundColor "lightBlue"
Inputs "1"
}
Block {
BlockType Outport
Name "pd{1,1}"
Position [300, 60, 320, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "mux"
DstPort 1
}
Line {
SrcBlock "mux"
SrcPort 1
DstBlock "pd{1,1}"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "IW{1,1}"
Ports [1, 1]
Position [160, 40, 200, 60]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('weight')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "IW{1,1}"
Location [480, 85, 1060, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "pd{1,1}"
Position [40, 270, 60, 290]
BackgroundColor "magenta"
Port "1"
IconDisplay "Port number"
PortDimensions "8"
LatchInput off
}
Block {
BlockType Constant
Name "IW{1,1}(1,:)'"
Position [140, 40, 180, 60]
BackgroundColor "lightBlue"
Value "[-7.6273701972119747;-32.1834160379"
"74645;-35.440398380929736;69.012964413950414;-3.6883409962777436;-30.25325905"
"331648;44.123644588695079;-3.9690720414688161]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(2,:)'"
Position [140, 100, 180, 120]
BackgroundColor "lightBlue"
Value "[1.2252300887235381;38.394671322818"
"098;39.235956389010504;80.20281779025747;2.8015993573279383;15.10030874634616"
"4;13.884276032237322;11.879006939034751]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(3,:)'"
Position [140, 160, 180, 180]
BackgroundColor "lightBlue"
Value "[1.4822063727246391;8.6518998805175"
"027;3.1197910318040476;91.915655468771718;4.3162793541074373;13.6725980145935"
"87;12.191343738555167;14.450241406338419]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(4,:)'"
Position [140, 220, 180, 240]
BackgroundColor "lightBlue"
Value "[-16.359829143774956;-27.4862348260"
"31477;28.711298184072408;-106.40228804405697;31.64731760350816;-4.71573462232"
"35939;-20.09277413253853;-28.020737936335649]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(5,:)'"
Position [140, 280, 180, 300]
BackgroundColor "lightBlue"
Value "[4.9145640385665308;-27.21625230263"
"4942;-16.08031271626011;47.323725201341873;-1.2311431694444637;30.59673262166"
"0234;-40.53945573424388;15.228489095197858]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(6,:)'"
Position [140, 340, 180, 360]
BackgroundColor "lightBlue"
Value "[-1.5606813527435344;5.633180721839"
"3726;22.153718579042462;97.23078867196007;-6.7871638271732353;-2.608590292544"
"2461;1.5676534445204728;0.24385668623768164]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(7,:)'"
Position [140, 400, 180, 420]
BackgroundColor "lightBlue"
Value "[-15.178075388312916;5.241726593576"
"2956;10.160331359238299;-67.669580640013606;-8.0514239060075461;-1.4086746357"
"597628;5.1524488727481179;12.692704238195203]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(8,:)'"
Position [140, 460, 180, 480]
BackgroundColor "lightBlue"
Value "[0.60265969550132859;-17.5651487302"
"29332;-3.2239929874275437;-77.665424176894433;-2.9496928481255971;-8.06181438"
"53348752;-6.8827115162701773;-6.1281070483037707]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Mux
Name "Mux"
Ports [8, 1]
Position [340, 265, 380, 300]
Inputs "8"
}
Block {
BlockType Reference
Name "dotprod1"
Ports [2, 1]
Position [240, 40, 260, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Reference
Name "dotprod2"
Ports [2, 1]
Position [240, 100, 260, 140]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Reference
Name "dotprod3"
Ports [2, 1]
Position [240, 160, 260, 200]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Reference
Name "dotprod4"
Ports [2, 1]
Position [240, 220, 260, 260]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -