📄 salib.mdl
字号:
Line { SrcBlock "window kinematics" SrcPort 3 DstBlock "position" DstPort 1 } Line { SrcBlock "window kinematics" SrcPort 1 DstBlock "force" DstPort 1 } Line { SrcBlock "move_up" SrcPort 1 DstBlock "decouple\nup" DstPort 1 } Line { SrcBlock "actuator" SrcPort 1 DstBlock "armature_current" DstPort 1 } Line { SrcBlock "plant" SrcPort 1 Points [45, 0] DstBlock "window kinematics" DstPort 1 } Line { SrcBlock "plant" SrcPort 2 Points [50, 0; 0, 65; -195, 0] DstBlock "actuator" DstPort 4 } Line { SrcBlock "actuator" SrcPort 2 DstBlock "plant" DstPort 1 } Line { SrcBlock "amplification\ndown" SrcPort 1 Points [50, 0; 0, -95] DstBlock "actuator" DstPort 3 } Line { SrcBlock "amplification\nup" SrcPort 1 Points [50, 0; 0, 5] DstBlock "actuator" DstPort 2 } Line { SrcBlock "Vbattery 12[V]" SrcPort 1 Points [0, 0] Branch { Points [95, 0; 0, 25] DstBlock "actuator" DstPort 1 } Branch { Points [0, 180] DstBlock "amplification\ndown" DstPort 1 } Branch { Points [0, 45] DstBlock "amplification\nup" DstPort 1 } } Line { SrcBlock "GND" SrcPort 1 DstBlock "Vbattery 12[V]" DstPort 1 } Line { SrcBlock "plant" SrcPort 3 DstBlock "gear\nangle" DstPort 1 } Line { SrcBlock "decouple\nup" SrcPort 1 DstBlock "amplification\nup" DstPort 2 } Line { SrcBlock "decouple\ndown" SrcPort 1 DstBlock "amplification\ndown" DstPort 2 } } } Block { BlockType SubSystem Name "fp_verify_current" Ports [2, 3] Position [225, 399, 350, 471] AncestorBlock "salib/verify_current" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "fp_verify_current" Location [184, 581, 917, 826] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "armature_current" Position [40, 113, 70, 127] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "move_up" Position [40, 33, 70, 47] Port "2" LatchInput off Interpolate on } Block { BlockType SubSystem Name "detect_endstop" Ports [1, 1] Position [300, 137, 440, 203] ForegroundColor "gray" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "detect_endstop" Location [270, 598, 689, 713] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "armature_current" Position [95, 43, 125, 57] Port "1" LatchInput off Interpolate on } Block { BlockType Reference Name "current_limit" Ports [1, 1] Position [175, 30, 215, 70] ForegroundColor "magenta" SourceBlock "fixpt_lib_3p1/Logic & Comparison/Compar""e\nTo Constant" SourceType "Fixed-Point Compare To Constant" relop ">" const "15" } Block { BlockType DataTypeConversion Name "passenger\ncontrol" Position [235, 42, 290, 58] NamePlacement "alternate" ShowName off DataType "boolean" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "endstop" Position [310, 43, 340, 57] ForegroundColor "darkGreen" Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "passenger\ncontrol" SrcPort 1 DstBlock "endstop" DstPort 1 } Line { SrcBlock "current_limit" SrcPort 1 DstBlock "passenger\ncontrol" DstPort 1 } Line { SrcBlock "armature_current" SrcPort 1 DstBlock "current_limit" DstPort 1 } } } Block { BlockType SubSystem Name "detect_obstacle" Ports [2, 1] Position [305, 24, 440, 86] ForegroundColor "gray" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "detect_obstacle" Location [630, 582, 1132, 797] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "move_up" Position [445, 143, 475, 157] Orientation "left" Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "armature_current" Position [55, 143, 85, 157] Port "2" LatchInput off Interpolate on } Block { BlockType DiscretePulseGenerator Name "10 ms" Position [294, 80, 326, 100] Orientation "down" ForegroundColor "magenta" PulseType "Sample-based" Amplitude "1" Period "2" PulseWidth "1" PhaseDelay "0" SampleTime "10e-3" VectorParams1D on } Block { BlockType Reference Name "Multiply" Ports [2, 1] Position [193, 90, 222, 120] Orientation "up" ForegroundColor "magenta" SourceBlock "fixpt_lib_3p1/Math/Product" SourceType "Fixed-Point Product" listofops "**" OutputDataTypeScalingMode "Inherit via internal rule" OutDataType "sfix(8)" OutScaling "2^-5" LockScale off RndMeth "Floor" DoSatur off DblOver off dolog on ElevsMatrix "Element-wise(.*)" } Block { BlockType UnitDelay Name "break\ndependency" Position [400, 130, 425, 170] Orientation "left" ForegroundColor "magenta" X0 "0" SampleTime "0.01" RTWStateStorageClass "Auto" } Block { BlockType Reference Name "current_limit" Ports [1, 1] Position [145, 130, 185, 170] ForegroundColor "magenta" SourceBlock "fixpt_lib_3p1/Logic & Comparison/Compar""e\nTo Constant" SourceType "Fixed-Point Compare To Constant" relop ">" const "1.7" } Block { BlockType SubSystem Name "delay_detection" Ports [1, 1, 0, 1] Position [250, 122, 370, 178] Orientation "left" ForegroundColor "magenta" ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('""Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo""ntalAl','Center','VerticalAl','Bottom');" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "delay_detection" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "move_up" Position [20, 101, 40, 119] Port "1" LatchInput off PortDimensions "1" Interpolate on } Block { BlockType TriggerPort Name "ticks" Ports [0, 1] Position [20, 136, 40, 154] TriggerType "either" ShowOutputPort on OutputDataType "auto" ZeroCross off } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" BusSelectionMode off } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function salib 4" Ports [2, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[2 2]" SFunctionModules "''" Port { PortNumber 2 Name "detect" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "detect" Position [460, 101, 480, 119] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "move_up" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock "ticks" SrcPort 1 DstBlock " SFunction " DstPort 2 } Line { Name "detect" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "detect" DstPort 1 } } } Block { BlockType DataTypeConversion Name "passenger\ncontrol" Position [182, 55, 238, 70] Orientation "up" ForegroundColor "magenta" NamePlacement "alternate" ShowName off DataType "boolean" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "obstacle" Position [195, 20, 225, 35] Orientation "up" ForegroundColor "darkGreen" Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "passenger\ncontrol" SrcPort 1 DstBlock "obstacle" DstPort 1 } Line { SrcBlock "break\ndependency" SrcPort 1 DstBlock "delay_detection" DstPort 1 } Line { SrcBlock "10 ms" SrcPort 1 DstBlock "delay_detection" DstPort trigger } Line { SrcBlock "Multiply" SrcPort 1 DstBlock "passenger\ncontrol" DstPort 1 } Line { SrcBlock "move_up" SrcPort 1 DstBlock "break\ndependency" DstPort 1 } Line { SrcBlock "armature_current" SrcPort 1 DstBlock "current_limit" DstPort 1 } Line { SrcBlock "delay_detection" SrcPort 1 Points [-30, 0] DstBlock "Multiply" DstPort 2 } Line { SrcBlock "current_limit" SrcPort 1 Points [10, 0] DstBlock "Multiply" DstPort 1 } } } Block { BlockType Logic Name "either" Ports [2, 1] Position [500, 96, 530, 129] ForegroundColor "darkGreen" Operator "OR" Inputs "2" } Block { BlockType SubSystem Name "process_current" Ports [1, 1] Position [110, 94, 260, 146] ForegroundColor "gray" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "process_current" Location [655, 661, 1099, 799] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -