Plecs { Name "llc_variable_frequency_resonant_converter_my" Version "4.4" CircuitModel "DiscStateSpace" StartTime "0.0" StopTime "1" Timeout "" Solver "radau" MaxStep "1e-3" InitStep "-1" FixedStep "1e-6" Refine "10" ZCStepSize "1e-9" RelTol "1e-6" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "3" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AlgebraicLoopWithStateMachineMsg "3" AssertionAction "1" InitializationCommands "Vbat = 800;\nVhvdc = 400;" InitialState "1" SystemState "" TaskingMode "1" TaskConfigurations "" CodeGenParameterInlining "2" CodeGenFloatingPointFormat "2" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" CodeGenTarget "PLECS RT Box 1" CodeGenTargetSettings "AAAAfwAAAAAlUU1hcDxRU3RyaW5nLFFNYXA8UVN0cmluZyxRU3Rya" "W5nPiA+AAAAAAEAAAAcAFAATABFAEMAUwAgAFIAVAAgAEIAbwB4ACAAMQAAABYAAAAeAHMAeQBuAG" "MAaAByAG8AbgBpAHoAZQBUAGkAbQBlAAAAAgAwAAAAGABzAHQAYQByAHQAdQBwAFMARgBQAF8ARAA" "AAAIAMAAAABgAcwB0AGEAcgB0AHUAcABTAEYAUABfAEMAAAACADAAAAAYAHMAdABhAHIAdAB1AHAA" "UwBGAFAAXwBCAAAAAgAwAAAAGABzAHQAYQByAHQAdQBwAFMARgBQAF8AQQAAAAIAMAAAABoAcwBhA" "G0AcABsAGkAbgBnAEQAZQBsAGEAeQAAAAIAMAAAABgAbQBhAHgAXwBvAHYAZQByAHIAdQBuAHMAAA" "ACADUAAAASAG0AYQBzAHQAZQByAFMARgBQAAAAAgAxAAAAJABkAGkAZwBpAHQAYQBsAE8AdQB0AHA" "AdQB0AEwAZQB2AGUAbAAAAAIAMQAAABAAYwBhAG4AMgBUAHgAUgB4AAAAAgAxAAAAHgBjAGEAbgAy" "AFQAZQByAG0AaQBuAGEAdABpAG8AbgAAAAIAMgAAABQAYwBhAG4AMgBFAG4AYQBiAGwAZQAAAAIAM" "AAAABAAYwBhAG4AMgBCAGEAdQBkAAAADAA1ADAAMAAwADAAMAAAABAAYwBhAG4AMQBUAHgAUgB4AA" "AAAgAxAAAAHgBjAGEAbgAxAFQAZQByAG0AaQBuAGEAdABpAG8AbgAAAAIAMgAAABQAYwBhAG4AMQB" "FAG4AYQBiAGwAZQAAAAIAMAAAABAAYwBhAG4AMQBCAGEAdQBkAAAADAA1ADAAMAAwADAAMAAAABwA" "YQBuAGEAbABvAGcAUwBhAG0AcABsAGkAbgBnAAAAAgAxAAAAIgBhAG4AYQBsAG8AZwBPAHUAdABwA" "HUAdABSAGEAbgBnAGUAAAACADIAAAAgAGEAbgBhAGwAbwBnAEkAbgBwAHUAdABSAGEAbgBnAGUAAA" "ACADEAAAAaAFQAQQBSAEcARQBUAF8ARABFAFYASQBDAEUAAAAyAHIAdABiAG8AeAAtADIAMABiADA" "AZgA3ADAANAAzADQANgA0AC4AbABvAGMAYQBsAC4AAAAaAEUAWABUAEUAUgBOAEEATABfAE0ATwBE" "AEUAAAACADA=" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" EnableStateSpaceSplitting "2" DisplayStateSpaceSplitting "1" DiscretizationMethod "1" ExternalModeSettings "AAAAfwAAAAAWUU1hcDxRU3RyaW5nLFFTdHJpbmc+AAAAAAcAAAAYAF" "QAcgBpAGcAZwBlAHIAVgBhAGwAdQBlAAAAAgAwAAAAGABUAHIAaQBnAGcAZQByAEQAZQBsAGEAeQA" "AAAIAMAAAABwAVAByAGkAZwBnAGUAcgBDAGgAYQBuAG4AZQBsAAAABAAtADEAAAAWAFMAZQBuAHMA" "aQB0AGkAdgBpAHQAeQAAAAIAMAAAABYAUgBlAGYAcgBlAHMAaABSAGEAdABlAAAABAAyADAAAAAUA" "E4AdQBtAFMAYQBtAHAAbABlAHMAAAAIADgAMQA5ADIAAAAUAEQAZQBjAGkAbQBhAHQAaQBvAG4AAA" "ACADE=" AlgebraicLoopMethod "1" AlgebraicLoopTolerance "1e-6" ScriptsDialogGeometry "" ScriptsDialogSplitterPos "0" Terminal { Type Output Index "1" } Schematic { Location [0, 23; 1536, 777] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type DCVoltageSource Name "V_dc" Show on Position [210, 210] Direction down Flipped on Parameter { Variable "V" Value "Vhvdc" Show on } } Component { Type Ammeter Name "Isec" Show on Position [930, 135] Direction left Flipped off } Component { Type Capacitor Name "C2" Show on Position [750, 185] Direction down Flipped on Parameter { Variable "C" Value "250e-6" Show on } Parameter { Variable "v_init" Value "Vbat" Show on } } Component { Type Goto Name "Goto4" Show off Position [965, 110] Direction right Flipped off Parameter { Variable "Tag" Value "Iload" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Reference SrcComponent "Components/Control/Continuous/Continuous PID\\nController" Name "Continuous PID\nController" Show off Position [260, 480] Direction up Flipped off Frame [-40, -25; 40, 25] LabelPosition [0, 28] LabelAlign up Parameter { Variable "cont_type" Value "3" Show off } Parameter { Variable "par_source" Value "1" Show off } Parameter { Variable "kp" Value "1e-7" Show on } Parameter { Variable "ki" Value "1e-5" Show on } Parameter { Variable "kd" Value "100" Show on } Parameter { Variable "kf" Value "1" Show off } Parameter { Variable "ex_reset" Value "1" Show off } Parameter { Variable "x0_source" Value "1" Show off } Parameter { Variable "x0" Value "2e-6" Show off } Parameter { Variable "ex_sat" Value "1" Show off } Parameter { Variable "sat_lim" Value "1" Show off } Parameter { Variable "up_limit" Value "2e-5" Show off } Parameter { Variable "low_limit" Value "2e-6" Show off } Parameter { Variable "aw_method" Value "3" Show off } Parameter { Variable "kbc" Value "0.1" Show off } Terminal { Type Input Position [-40, 0] Direction left } Terminal { Type Output Position [44, 0] Direction right } Terminal { Type Input Position [-5, -25] Direction up } Terminal { Type Input Position [5, -25] Direction up } Terminal { Type Input Position [15, -25] Direction up } Terminal { Type Input Position [-40, -15] Direction left } Terminal { Type Input Position [-40, 10] Direction left } Terminal { Type Input Position [25, -25] Direction up } Terminal { Type Input Position [35, -25] Direction up } Terminal { Type Input Position [-40, -20] Direction left } Terminal { Type Input Position [-40, -10] Direction left } Terminal { Type Input Position [-40, 20] Direction left } } Component { Type From Name "From4" Show off Position [120, 510] Direction right Flipped off Parameter { Variable "Tag" Value "Iload" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Sum Name "Sum" Show off Position [160, 480] 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 Scope Name "Scope2" Show off Position [460, 540] Direction up Flipped off Location [0, 23; 1536, 804] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAD8A////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAH4A////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAAB+AP///wAAAAMAAAeAAAAAgPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQBAAAAAAAAB4AAAABfAP///wAAB4AAAAMsAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "gAAAH0AAAADAAAAfQAAAAEAAAB9AAAACAAAAH0AAAAJAAAAfQAAAAYAAAB9AAAABwAAAH0AAAAEAA" "AAfQAAAAUAAAB9AAAHgAAAAAsBAAABAAAAAAAAAAAAAAAAff////8AAACBAAAAAAAAAAsAAACdAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AbjAAAAAQAAAAAAAAPoAAAAADE=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" Axes "1" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" 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 } } } Component { Type Display Name "Display" Show off Position [260, 430] Direction up Flipped off Frame [-41, -11; 41, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "4" Show off } } Component { Type DCVoltageSource Name "V_load" Show on Position [960, 210] Direction down Flipped on Parameter { Variable "V" Value "Vbat" Show on } } Component { Type Resistor Name "rp" Show off Position [870, 135] Direction right Flipped off Parameter { Variable "R" Value "100e-3" Show on } } Component { Type Inductor Name "L2" Show on Position [805, 135] Direction left Flipped off Parameter { Variable "L" Value "1e-3" Show on } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Ammeter Name "Ipri" Show on Position [235, 135] Direction left Flipped off } Component { Type Scope Name "Scope5" Show off Position [290, 60] Direction up Flipped off Location [0, 23; 1536, 804] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAD8A////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAH4A////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAAB+AP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABfAP///wAAB4AAAAOxAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "gAAAH0AAAADAAAAfQAAAAEAAAB9AAAACAAAAH0AAAAJAAAAfQAAAAYAAAB9AAAABwAAAH0AAAAEAA" "AAfQAAAAUAAAB9AAAA+QAAAAsBAAABAAAAAAAAAAAAAAAAff////8AAACBAAAAAAAAAAsAAADIAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAxAAAAAQAAAAAAAAPoAAAAADE=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" Axes "1" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" 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 } } } Component { Type Goto Name "Goto5" Show off Position [285, 95] Direction right Flipped off Parameter { Variable "Tag" Value "Ipri" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Reference SrcComponent "Components/Electrical/Power Modules/LLC2" Name "LLC" Show on Position [535, 210] Direction up Flipped off Frame [-160, -80; 160, 80] LabelPosition [0, 83] LabelAlign up Parameter { Variable "semiSymbol" Value "2" Show off } Parameter { Variable "rectifierType" Value "2" Show off } Parameter { Variable "L" Value "1.55e-6" Show off } Parameter { Variable "R" Value "0.1" Show off } Parameter { Variable "Lm" Value "200e-6" Show off } Parameter { Variable "n" Value "1/2.2" Show off } Parameter { Variable "C" Value "1.2e-6" Show off } Parameter { Variable "Ts" Value "1e-6" Show off } Parameter { Variable "assert" Value "2" Show off } Parameter { Variable "Configuration" Value "2" Show off } Terminal { Type Input Position [-160, -50] Direction left } Terminal { Type Port Position [165, -75] Direction right } Terminal { Type Port Position [165, 75] Direction right } Terminal { Type Port Position [-165, -75] Direction left } Terminal { Type Input Position [-160, 50] Direction left } Terminal { Type Port Position [-165, 75] Direction left } Terminal { Type Input Position [-80, -50] Direction left } Terminal { Type Input Position [-80, 50] Direction left } } Component { Type Product Name "Divide" Show off Position [365, 485] Direction up Flipped on Parameter { Variable "Inputs" Value "*/" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Constant Name "Constant2" Show off Position [290, 560] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Constant Name "Constant3" Show off Position [95, 480] Direction right Flipped off Frame [-15, -10; 15, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "27.5" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Reference SrcComponent "PLECSRTBoxLib/Analog Out1" Name "Analog Out1" Show off Position [1080, 50] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "channel" Value "0" Show off } Parameter { Variable "scale" Value "0.1" Show off } Parameter { Variable "offset" Value "0" Show off } Parameter { Variable "minOutput" Value "0" Show off } Parameter { Variable "maxOutput" Value "10" Show off } Parameter { Variable "TargetPortIndices" Value "1" Show off } Terminal { Type Input Position [-25, 0] Direction left } } Component { Type Scope Name "Scope6" Show off Position [1070, 95] Direction up Flipped off Location [0, 23; 1536, 804] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAD8A////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAH4A////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAAB+AP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABfAP///wAAB4AAAAOxAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "gAAAH0AAAADAAAAfQAAAAEAAAB9AAAACAAAAH0AAAAJAAAAfQAAAAYAAAB9AAAABwAAAH0AAAAEAA" "AAfQAAAAUAAAB9AAAA/AAAAAsBAAABAAAAAAAAAAAAAAAAff////8AAACBAAAAAAAAAAsAAADLAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAxAAAAAQAAAAAAAAPoAAAAADE=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" Axes "1" TimeRange "0.0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" 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 } } } Component { Type From Name "From7" Show off Position [340, 160] Direction right Flipped off Parameter { Variable "Tag" Value "1_Sw" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type From Name "From10" Show off Position [375, 235] Direction right Flipped off Parameter { Variable "Tag" Value "1_Sw" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type From Name "From8" Show off Position [375, 185] Direction right Flipped off Parameter { Variable "Tag" Value "Sw" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type From Name "From9" Show off Position [340, 260] Direction right Flipped off Parameter { Variable "Tag" Value "Sw" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Integrator Name "Integrator" Show on Position [685, 550] Direction right Flipped off Parameter { Variable "ExternalReset" Value "2" Show off } Parameter { Variable "InitialConditionSource" Value "2" Show off } Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "ShowStatePort" Value "2" Show off } Parameter { Variable "UpperLimit" Value "inf" Show off } Parameter { Variable "LowerLimit" Value "-inf" Show off } } Component { Type ConstantRelationalOperator Name "Compare to\nConstant" Show off Position [555, 550] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Operator" Value "6" Show off } Parameter { Variable "Threshold" Value "1" Show off } } Component { Type Offset Name "Offset" Show off Position [555, 585] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Offset" Value "-1" Show off } Parameter { Variable "DataType" Value "11" Show off } } Component { Type InitialCondition Name "IC" Show off Position [620, 585] Direction right Flipped off Frame [-15, -15; 15, 15] LabelPosition [0, 18] LabelAlign up Parameter { Variable "InitialValue" Value "0" Show off } } Component { Type Comparator Name "Comparator" Show off Position [840, 555] Direction right Flipped off } Component { Type Constant Name "Constant4" Show off Position [760, 580] Direction right Flipped off Frame [-15, -10; 15, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "0.5" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Goto Name "Goto6" Show off Position [935, 555] Direction right Flipped off Parameter { Variable "Tag" Value "1_Sw" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type LogicalOperator Name "Logical\nOperator" Show off Position [895, 595] Direction up Flipped off Parameter { Variable "Operator" Value "6" Show off } Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Goto Name "Goto7" Show off Position [935, 595] Direction right Flipped off Parameter { Variable "Tag" Value "Sw" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Resistor Name "rp1" Show off Position [295, 135] Direction right Flipped off Parameter { Variable "R" Value "60e-3" Show on } } Component { Type Resistor Name "rp2" Show off Position [750, 235] Direction down Flipped off Parameter { Variable "R" Value "50e-3" Show on } } Component { Type Resistor Name "rp3" Show off Position [720, 135] Direction right Flipped off Parameter { Variable "R" Value "120e-3" Show on } } Component { Type Display Name "Display1" Show off Position [1335, 400] Direction up Flipped off Frame [-51, -21; 51, 21] LabelPosition [0, 24] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "4" Show off } } Component { Type From Name "From5" Show off Position [1060, 375] Direction right Flipped off Parameter { Variable "Tag" Value "Ipri" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Gain Name "Udc" Show on Position [1155, 375] Direction left Flipped on Parameter { Variable "K" Value "Vhvdc" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type From Name "From6" Show off Position [1110, 425] Direction right Flipped off Parameter { Variable "Tag" Value "Iload" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Gain Name "Ubat" Show on Position [1155, 425] Direction right Flipped off Parameter { Variable "K" Value "Vbat" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type SignalMux Name "Mux" Show off Position [1240, 400] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type Reference SrcComponent "Components/Control/Filters/Moving Average" Name "Moving Average" Show off Position [1110, 375] Direction up Flipped off Frame [-15, -15; 15, 15] LabelPosition [0, 18] LabelAlign up Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "T_period" Value ".1e-3" Show off } Parameter { Variable "buffer_size" Value "1024" Show off } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 0] Direction left } } Component { Type Subsystem Name "Enabled\nSubsystem" Show off Position [1305, 545] Direction up Flipped off Frame [-30, -20; 30, 20] LabelPosition [0, 23] LabelAlign up TreatAsAtomicUnit on SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskDisplayLang "2" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Input Position [-30, 10] Direction left Index "1" } Terminal { Type Output Position [34, 0] Direction right Index "1" } Terminal { Type Input Position [0, 20] Direction down Index "2" } Terminal { Type Input Position [-30, -5] Direction left Index "3" } Schematic { Location [415, 55; 785, 236] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Input Name "Pin" Show on Position [60, 80] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Output Name "eff" Show on Position [225, 115] Direction right Flipped off Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "OutputWhenDisabled" Value "1" Show off } Parameter { Variable "InitialOutput" Value "0" Show off } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Enable Name "Enable" Show on Position [140, 40] Direction right Flipped off Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "Width" Value "-1" Show off } Parameter { Variable "ShowOutput" Value "1" Show off } } Component { Type Input Name "Pout" Show on Position [60, 120] Direction right Flipped off Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Product Name "Divide" Show off Position [140, 115] Direction up Flipped on Parameter { Variable "Inputs" Value "*/" Show off } Parameter { Variable "DataType" Value "10" Show off } } Connection { Type Signal SrcComponent "Pout" SrcTerminal 1 DstComponent "Divide" DstTerminal 2 } Connection { Type Signal SrcComponent "Pin" SrcTerminal 1 Points [95, 80; 95, 110] DstComponent "Divide" DstTerminal 3 } Connection { Type Signal SrcComponent "Divide" SrcTerminal 1 DstComponent "eff" DstTerminal 1 } } } Component { Type Display Name "Display2" Show off Position [1415, 545] Direction up Flipped off Frame [-36, -11; 36, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "4" Show off } } Component { Type Clock Name "Clock" Show off Position [1160, 615] Direction right Flipped off } Component { Type RelationalOperator Name "Relational\nOperator" Show off Position [1230, 635] Direction right Flipped off Parameter { Variable "Operator" Value "6" Show off } } Component { Type Constant Name "sec" Show on Position [1155, 640] Direction right Flipped off Frame [-15, -10; 15, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "0.1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Connection { Type Signal SrcComponent "From4" SrcTerminal 1 Points [160, 510] DstComponent "Sum" DstTerminal 3 } Connection { Type Signal SrcComponent "Sum" SrcTerminal 1 Points [185, 480] Branch { DstComponent "Continuous PID\nController" DstTerminal 1 } Branch { Points [185, 430] DstComponent "Display" DstTerminal 1 } } Connection { Type Wire SrcComponent "rp" SrcTerminal 1 DstComponent "Isec" DstTerminal 1 } Connection { Type Wire SrcComponent "V_dc" SrcTerminal 1 Points [210, 135] DstComponent "Ipri" DstTerminal 1 } Connection { Type Signal SrcComponent "From7" SrcTerminal 1 DstComponent "LLC" DstTerminal 1 } Connection { Type Signal SrcComponent "From9" SrcTerminal 1 DstComponent "LLC" DstTerminal 5 } Connection { Type Wire SrcComponent "LLC" SrcTerminal 6 Points [210, 285] DstComponent "V_dc" DstTerminal 2 } Connection { Type Signal SrcComponent "From8" SrcTerminal 1 Points [415, 185; 415, 160] DstComponent "LLC" DstTerminal 7 } Connection { Type Signal SrcComponent "From10" SrcTerminal 1 Points [415, 235; 415, 260] DstComponent "LLC" DstTerminal 8 } Connection { Type Wire SrcComponent "V_load" SrcTerminal 1 Points [960, 135] DstComponent "Isec" DstTerminal 2 } Connection { Type Signal SrcComponent "Constant2" SrcTerminal 1 Points [335, 560] DstComponent "Divide" DstTerminal 2 } Connection { Type Signal SrcComponent "Constant3" SrcTerminal 1 DstComponent "Sum" DstTerminal 2 } Connection { Type Wire SrcComponent "LLC" SrcTerminal 3 Points [750, 285] Branch { Points [960, 285] DstComponent "V_load" DstTerminal 2 } Branch { DstComponent "rp2" DstTerminal 1 } } Connection { Type Wire SrcComponent "L2" SrcTerminal 2 DstComponent "rp" DstTerminal 2 } Connection { Type Signal SrcComponent "Isec" SrcTerminal 3 Points [930, 110] Branch { DstComponent "Goto4" DstTerminal 1 } Branch { Points [930, 50; 1010, 50] Branch { DstComponent "Analog Out1" DstTerminal 1 } Branch { Points [1010, 95] DstComponent "Scope6" DstTerminal 1 } } } Connection { Type Signal SrcComponent "Continuous PID\nController" SrcTerminal 2 DstComponent "Divide" DstTerminal 3 } Connection { Type Signal SrcComponent "Divide" SrcTerminal 1 Points [410, 485] Branch { Points [410, 540] DstComponent "Scope2" DstTerminal 1 } Branch { Points [655, 485] DstComponent "Integrator" DstTerminal 1 } } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 2 DstComponent "Comparator" DstTerminal 1 } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 5 Points [685, 515; 725, 515; 725, 615; 515, 615; 515, 585] Branch { Points [515, 550] DstComponent "Compare to\nConstant" DstTerminal 1 } Branch { DstComponent "Offset" DstTerminal 1 } } Connection { Type Signal SrcComponent "Offset" SrcTerminal 2 DstComponent "IC" DstTerminal 1 } Connection { Type Signal SrcComponent "IC" SrcTerminal 2 Points [655, 585] DstComponent "Integrator" DstTerminal 4 } Connection { Type Signal SrcComponent "Compare to\nConstant" SrcTerminal 2 DstComponent "Integrator" DstTerminal 3 } Connection { Type Signal SrcComponent "Constant4" SrcTerminal 1 Points [795, 580; 795, 560] DstComponent "Comparator" DstTerminal 2 } Connection { Type Signal SrcComponent "Logical\nOperator" SrcTerminal 1 DstComponent "Goto7" DstTerminal 1 } Connection { Type Signal SrcComponent "Comparator" SrcTerminal 3 Points [865, 555] Branch { DstComponent "Goto6" DstTerminal 1 } Branch { DstComponent "Logical\nOperator" DstTerminal 2 } } Connection { Type Signal SrcComponent "Ipri" SrcTerminal 3 Points [235, 95] Branch { DstComponent "Goto5" DstTerminal 1 } Branch { Points [235, 60] DstComponent "Scope5" DstTerminal 1 } } Connection { Type Wire SrcComponent "Ipri" SrcTerminal 2 DstComponent "rp1" DstTerminal 2 } Connection { Type Wire SrcComponent "rp1" SrcTerminal 1 DstComponent "LLC" DstTerminal 4 } Connection { Type Wire SrcComponent "L2" SrcTerminal 1 Points [750, 135] Branch { DstComponent "C2" DstTerminal 1 } Branch { DstComponent "rp3" DstTerminal 1 } } Connection { Type Wire SrcComponent "rp2" SrcTerminal 2 DstComponent "C2" DstTerminal 2 } Connection { Type Wire SrcComponent "rp3" SrcTerminal 2 DstComponent "LLC" DstTerminal 2 } Connection { Type Signal SrcComponent "From6" SrcTerminal 1 DstComponent "Ubat" DstTerminal 1 } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 DstComponent "Display1" DstTerminal 1 } Connection { Type Signal SrcComponent "From5" SrcTerminal 1 DstComponent "Moving Average" DstTerminal 2 } Connection { Type Signal SrcComponent "Moving Average" SrcTerminal 1 DstComponent "Udc" DstTerminal 1 } Connection { Type Signal SrcComponent "Ubat" SrcTerminal 2 Points [1220, 425] Branch { Points [1220, 405] DstComponent "Mux" DstTerminal 3 } Branch { Points [1220, 540] DstComponent "Enabled\nSubsystem" DstTerminal 4 } } Connection { Type Signal SrcComponent "Udc" SrcTerminal 2 Points [1190, 375] Branch { Points [1220, 375; 1220, 395] DstComponent "Mux" DstTerminal 2 } Branch { Points [1190, 555] DstComponent "Enabled\nSubsystem" DstTerminal 1 } } Connection { Type Signal SrcComponent "Enabled\nSubsystem" SrcTerminal 2 DstComponent "Display2" DstTerminal 1 } Connection { Type Signal SrcComponent "Clock" SrcTerminal 1 Points [1190, 615; 1190, 630] DstComponent "Relational\nOperator" DstTerminal 1 } Connection { Type Signal SrcComponent "Relational\nOperator" SrcTerminal 3 Points [1305, 635] DstComponent "Enabled\nSubsystem" DstTerminal 3 } Connection { Type Signal SrcComponent "sec" SrcTerminal 1 DstComponent "Relational\nOperator" DstTerminal 2 } Annotation { Name "Carrier" Position [775, 540] } Annotation { Name "Pout" Position [1235, 490] } Annotation { Name "Pin" Position [1175, 490] } } }