Model { Name "TwoWayCrane" Version 3.0 SampleTimeColors off ShowPortDataTypes off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue Apr 24 21:42:14 2001" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "manning" ModifiedDateFormat "%" LastModifiedDate "Wed Jun 06 18:31:38 2001" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "50" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" Decimation "1" AlgebraicLoopMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ZeroCross on SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" 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 on OptimizeBlockIOStorage on BufferReuse on BooleanDataType off 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 "TwoWayCrane" Location [624, 298, 1317, 779] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "4 to 2+2 Demux" Ports [1, 2, 0, 0, 0] Position [530, 215, 570, 275] ShowPortLabels on Port { PortNumber 1 Name "Payload Sway (m)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 2 Name "Crane Position (m)" TestPoint off RTWStorageClass "Auto" } System { Name "4 to 2+2 Demux" Location [1353, 230, 1572, 406] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In1" Position [25, 83, 55, 97] Port "1" Interpolate on } Block { BlockType Demux Name "Demux" Ports [1, 4, 0, 0, 0] Position [80, 71, 85, 109] BackgroundColor "black" ShowName off Outputs "4" } Block { BlockType Mux Name "Mux" Ports [2, 1, 0, 0, 0] Position [145, 26, 150, 64] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1, 0, 0, 0] Position [145, 121, 150, 159] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Outport Name "Out1" Position [175, 38, 205, 52] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Out2" Position [175, 133, 205, 147] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Demux" SrcPort 1 Points [25, 0; 0, -40] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [40, 0] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Demux" SrcPort 3 Points [40, 0] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 4 Points [25, 0; 0, 45] DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Out2" DstPort 1 } } } Block { BlockType Gain Name "Load Correction Gain" Position [375, 190, 405, 215] Orientation "down" Gain "1" SaturateOnIntegerOverflow on } Block { BlockType Mux Name "Mux2" Ports [2, 1, 0, 0, 0] Position [155, 226, 160, 264] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SubSystem Name "Payload Sway\nCompensator" Ports [1, 1, 0, 0, 0] Position [255, 126, 310, 174] ShowPortLabels on Port { PortNumber 1 Name "Actuator\nLoad\nCorrection\n (N)" TestPoint off RTWStorageClass "Auto" } System { Name "Payload Sway\nCompensator" Location [1111, 148, 1382, 293] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In1" Position [25, 68, 55, 82] Port "1" Interpolate on } Block { BlockType Demux Name "Demux1" Ports [1, 2, 0, 0, 0] Position [80, 56, 85, 94] BackgroundColor "black" ShowName off Outputs "2" } Block { BlockType Mux Name "Mux3" Ports [2, 1, 0, 0, 0] Position [200, 56, 205, 94] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "x-disp" Ports [1, 1, 0, 0, 0] Position [125, 25, 155, 55] SourceBlock "simulink_extras/Additional\nLinear/PID Cont" "roller" SourceType "PID Controller" P "4000" I "0" D "20000" } Block { BlockType Reference Name "y-disp" Ports [1, 1, 0, 0, 0] Position [125, 95, 155, 125] SourceBlock "simulink_extras/Additional\nLinear/PID Cont" "roller" SourceType "PID Controller" P "4000" I "0" D "20000" } Block { BlockType Outport Name "Out1" Position [230, 68, 260, 82] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "x-disp" SrcPort 1 Points [25, 0] DstBlock "Mux3" DstPort 1 } Line { SrcBlock "y-disp" SrcPort 1 Points [25, 0] DstBlock "Mux3" DstPort 2 } Line { SrcBlock "Demux1" SrcPort 1 Points [5, 0; 0, -25] DstBlock "x-disp" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 Points [5, 0; 0, 25] DstBlock "y-disp" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Demux1" DstPort 1 } } } Block { BlockType SubSystem Name "Position\nController" Ports [1, 1, 0, 0, 0] Position [255, 299, 310, 351] ShowPortLabels on Port { PortNumber 1 Name "Actuator\nLoad \n(N)" TestPoint off RTWStorageClass "Auto" } System { Name "Position\nController" Location [1107, 323, 1378, 458] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In1" Position [25, 63, 55, 77] Port "1" Interpolate on } Block { BlockType Demux Name "Demux2" Ports [1, 2, 0, 0, 0] Position [80, 51, 85, 89] BackgroundColor "black" ShowName off Outputs "2" } Block { BlockType Mux Name "Mux4" Ports [2, 1, 0, 0, 0] Position [200, 51, 205, 89] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "x-pos" Ports [1, 1, 0, 0, 0] Position [125, 25, 155, 55] SourceBlock "simulink_extras/Additional\nLinear/PID Cont" "roller" SourceType "PID Controller" P "2000" I "0" D "6000" } Block { BlockType Reference Name "y-pos" Ports [1, 1, 0, 0, 0] Position [125, 85, 155, 115] SourceBlock "simulink_extras/Additional\nLinear/PID Cont" "roller" SourceType "PID Controller" P "2000" I "0" D "6000" } Block { BlockType Outport Name "Out1" Position [230, 63, 260, 77] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "x-pos" SrcPort 1 Points [25, 0] DstBlock "Mux4" DstPort 1 } Line { SrcBlock "y-pos" SrcPort 1 Points [25, 0] DstBlock "Mux4" DstPort 2 } Line { SrcBlock "Demux2" SrcPort 1 Points [5, 0; 0, -20] DstBlock "x-pos" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 2 Points [5, 0; 0, 20] DstBlock "y-pos" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Demux2" DstPort 1 } } } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [210, 315, 230, 335] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [2, 1, 0, 0, 0] Position [210, 140, 230, 160] ShowName off IconShape "round" Inputs "-+|" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum5" Ports [2, 1, 0, 0, 0] Position [380, 235, 400, 255] ShowName off IconShape "round" Inputs "-+" SaturateOnIntegerOverflow on } Block { BlockType Reference Name "TwoWayCrane" Description "\".\\TwoWayCrane.wm3\"||\"Ball Displacement.x\"" "|0|\"Ball Displacement.y\"|0|\"Position of Ball.x\"|0|\"Position of Ball.y\"|" "0||\"x-force\"|0.51187|\"y-force\"|-44.7618||" Ports [1, 1, 0, 0, 0] Position [435, 230, 495, 260] SourceBlock "vnplantblock/vNPlant" SourceType "" } Block { BlockType Constant Name "x-Target" Position [45, 200, 75, 230] Value "0" } Block { BlockType Constant Name "y-Target" Position [45, 260, 75, 290] Value "0" } Line { SrcBlock "TwoWayCrane" SrcPort 1 DstBlock "4 to 2+2 Demux" DstPort 1 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "TwoWayCrane" DstPort 1 } Line { Name "Payload Sway (m)" Labels [3, 0] SrcBlock "4 to 2+2 Demux" SrcPort 1 Points [35, 0; 0, -150; -390, 0] DstBlock "Sum2" DstPort 1 } Line { Name "Crane Position (m)" Labels [3, 0] SrcBlock "4 to 2+2 Demux" SrcPort 2 Points [35, 0; 0, 155; -390, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "x-Target" SrcPort 1 Points [35, 0; 0, 20] DstBlock "Mux2" DstPort 1 } Line { SrcBlock "y-Target" SrcPort 1 Points [35, 0; 0, -20] DstBlock "Mux2" DstPort 2 } Line { SrcBlock "Mux2" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, -95] DstBlock "Sum2" DstPort 2 } Branch { Points [0, 80] DstBlock "Sum1" DstPort 1 } } Line { Name "Actuator\nLoad\nCorrection\n (N)" Labels [1, 1] SrcBlock "Payload Sway\nCompensator" SrcPort 1 Points [75, 0] DstBlock "Load Correction Gain" DstPort 1 } Line { Name "Actuator\nLoad \n(N)" Labels [1, 1] SrcBlock "Position\nController" SrcPort 1 Points [75, 0] DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Payload Sway\nCompensator" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Position\nController" DstPort 1 } Line { SrcBlock "Load Correction Gain" SrcPort 1 DstBlock "Sum5" DstPort 1 } Annotation { Position [334, 38] Text "Two Way Crane Control System with compensator f" "or payload sway" FontName "Arial" FontSize 12 FontWeight "bold" } } }