Plecs { Name "00_speed_control_antiwindup" Version "4.6" CircuitModel "ContStateSpace" StartTime "0.0" TimeSpan "30" Timeout "" Solver "auto" MaxStep "1e-3" InitStep "-1" FixedStep "1e-3" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "3" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AlgebraicLoopWithStateMachineMsg "3" AssertionAction "1" InitializationCommands "" InitialState "1" SystemState "" TaskingMode "1" TaskConfigurations "" CodeGenParameterInlining "2" CodeGenFloatingPointFormat "2" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" CodeGenTarget "Generic" CodeGenTargetSettings "" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" EnableStateSpaceSplitting "2" DisplayStateSpaceSplitting "1" DiscretizationMethod "2" ExternalModeSettings "" AlgebraicLoopMethod "1" AlgebraicLoopTolerance "1e-6" ScriptsDialogGeometry "" ScriptsDialogSplitterPos "0" Schematic { Location [538, 53; 1920, 827] ZoomFactor 1.857 SliderPosition [130, 0] ShowBrowser off BrowserWidth 100 Component { Type Sum Name "Sum" Show off Position [195, 150] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|+-" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Gain Name "Gain" Show on Position [285, 150] Direction right Flipped off Parameter { Variable "K" Value "1" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Integrator Name "Integrator" Show on Position [345, 230] Direction right Flipped off Parameter { Variable "ExternalReset" Value "1" Show off } Parameter { Variable "InitialConditionSource" Value "1" Show off } Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "ShowStatePort" Value "1" Show off } Parameter { Variable "EnableWrapping" Value "1" Show off } Parameter { Variable "UpperLimit" Value "0.5" Show off } Parameter { Variable "LowerLimit" Value "-0.5" Show off } } Component { Type Gain Name "Gain1" Show on Position [290, 230] Direction right Flipped off Parameter { Variable "K" Value "1" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Sum Name "Sum1" Show off Position [425, 150] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Saturation Name "Saturation" Show on Position [480, 150] Direction right Flipped off Parameter { Variable "UpperLimit" Value "0.5" Show off } Parameter { Variable "LowerLimit" Value "-0.5" Show off } } Component { Type TransferFunction Name "Transfer Fcn" Show on Position [600, 150] Direction right Flipped off Frame [-30, -15; 30, 15] LabelPosition [0, 18] LabelAlign up Parameter { Variable "Numerator" Value "[1]" Show off } Parameter { Variable "Denominator" Value "[1 0]" Show off } Parameter { Variable "X0" Value "0" Show off } } Component { Type Constant Name "Constant" Show on Position [105, 150] Direction right Flipped off Frame [-10, -10; 10, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Scope Name "Scope" Show on Position [795, 60] Direction up Flipped off Location [51, 164; 1091, 890] State "AAAA/wAAAAD9AAAAAgAAAAEAAAC0AAACuvwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAIQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMBAAAAHAAAAroAAABmAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABCAP///wAAA1sAAAK6AAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAC" "AAAAGQAAAAJAAAAZAAAAAEAAABkAAAAAgAAAGQAAAADAAAAZAAAAAQAAABkAAAABQAAAGQAAAAGAA" "AAZAAAAAcAAABkAAAAowAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAACQAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AATAAAAAQAAAAAAAAPoAAAAABM=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "0" ScrollingMode "1" SingleTimeAxis "1" Open "1" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Fourier { SingleXAxis on AxisLabel "Frequency" Scaling 0 PhaseDisplay 0 ShowFourierLegend off Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } } } Component { Type SignalMux Name "Mux" Show off Position [700, 50] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type SignalMux Name "Mux1" Show off Position [405, 90] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type SignalMux Name "Mux2" Show off Position [535, 110] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type Sum Name "Sum2" Show off Position [540, 150] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|+-" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Constant Name "Constant1" Show on Position [515, 255] Direction right Flipped off Frame [-10, -10; 10, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "0" Show off } Parameter { Variable "DataType" Value "10" Show off } } Connection { Type Signal SrcComponent "Sum" SrcTerminal 1 Points [220, 150] Branch { DstComponent "Gain" DstTerminal 1 } Branch { Points [220, 230] DstComponent "Gain1" DstTerminal 1 } } Connection { Type Signal SrcComponent "Gain1" SrcTerminal 2 DstComponent "Integrator" DstTerminal 1 } Connection { Type Signal SrcComponent "Transfer Fcn" SrcTerminal 2 Points [670, 150] Branch { Points [670, 325; 195, 325] DstComponent "Sum" DstTerminal 3 } Branch { Points [670, 55] DstComponent "Mux" DstTerminal 3 } } Connection { Type Signal SrcComponent "Constant" SrcTerminal 1 Points [150, 150] Branch { DstComponent "Sum" DstTerminal 2 } Branch { Points [150, 45] DstComponent "Mux" DstTerminal 2 } } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 DstComponent "Scope" DstTerminal 1 } Connection { Type Signal SrcComponent "Mux1" SrcTerminal 1 Points [740, 90; 740, 60] DstComponent "Scope" DstTerminal 2 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 Points [370, 150] Branch { DstComponent "Sum1" DstTerminal 2 } Branch { Points [370, 85] DstComponent "Mux1" DstTerminal 2 } } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 2 Points [385, 230] Branch { Points [425, 230] DstComponent "Sum1" DstTerminal 3 } Branch { Points [385, 95] DstComponent "Mux1" DstTerminal 3 } } Connection { Type Signal SrcComponent "Sum1" SrcTerminal 1 Points [445, 150] Branch { DstComponent "Saturation" DstTerminal 1 } Branch { Points [445, 105] DstComponent "Mux2" DstTerminal 2 } } Connection { Type Signal SrcComponent "Mux2" SrcTerminal 1 Points [745, 110; 745, 70] DstComponent "Scope" DstTerminal 3 } Connection { Type Signal SrcComponent "Sum2" SrcTerminal 1 DstComponent "Transfer Fcn" DstTerminal 1 } Connection { Type Signal SrcComponent "Saturation" SrcTerminal 2 Points [515, 150] Branch { Points [515, 115] DstComponent "Mux2" DstTerminal 3 } Branch { DstComponent "Sum2" DstTerminal 2 } } Connection { Type Signal SrcComponent "Constant1" SrcTerminal 1 Points [545, 255; 545, 215; 540, 215] DstComponent "Sum2" DstTerminal 3 } } }