Plecs { Name "Exercise_4_Skeleton_2025_2026" Version "4.9" CircuitModel "ContStateSpace" StartTime "0.0" TimeSpan "1.0" Timeout "" Solver "dopri" MaxStep "1e-5" InitStep "-1" FixedStep "1e-3" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" NonIdealSwitchResistance "1" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "3" DatatypeOverflowMsg "2" DatatypeInheritanceConflictMsg "1" ContSampleTimeConflictMsg "1" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AlgebraicLoopWithStateMachineMsg "2" AssertionAction "1" FixedPointDatatypeOverride "1" InitializationCommands "fGrid = 50;\nwGrid = 2*pi*fGrid;\nVGrid_RMS = 400/sq" "rt(3);\nVGrid_MAX = VGrid_RMS*sqrt(2);\nTheta_grid = pi/12; %Arbitrary\nR =" " 0.1;\nL = 1e-3;\nfCarrier = 10e3;\nVin = 900;\nVc_max = VGrid_MAX * 1.1;\n\n" InitialState "1" SystemState "" TaskingMode "1" TaskConfigurations "" CodeGenParameterInlining "2" CodeGenFloatingPointFormat "2" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" CodeGenTarget "Generic" CodeGenTargetSettings "" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" RemoveUnusedStateSpaceOutputs "1" EnableStateSpaceSplitting "2" DisplayStateSpaceSplitting "1" DiscretizationMethod "2" ExternalModeSettings "" AlgebraicLoopMethod "1" AlgebraicLoopTolerance "1e-6" ScriptsDialogGeometry "" ScriptsDialogSplitterPos "0" Schematic { Location [0, 27; 1920, 1005] ZoomFactor 1.01814 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Subsystem Name "GRID" Show on Position [1495, 190] Direction left Flipped off LabelPosition none Frame [-65, -60; 65, 60] SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Port Position [10, -70] Direction up } Terminal { Type Port Position [0, -70] Direction up } Terminal { Type Port Position [-10, -70] Direction up } Terminal { Type Port Position [15, 70] Direction down } Terminal { Type Input Position [-40, 65] Direction down } Schematic { Location [462, 113; 1366, 750] ZoomFactor 1.33333 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type WireMux Name "WMux3" Show off Position [400, 165] Direction up Flipped off LabelPosition east Parameter { Variable "Width" Value "3" Show off } } Component { Type VoltageSource Name "V1" Show on Position [400, 140] Direction down Flipped on LabelPosition east Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "1" Show off } } Component { Type WireMux Name "WMux" Show off Position [400, 105] Direction up Flipped on LabelPosition east Parameter { Variable "Width" Value "3" Show off } } Component { Type Port Name "A" Show on Position [370, 50] Direction up Flipped on LabelPosition east Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "B" Show on Position [400, 50] Direction up Flipped on LabelPosition east Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "C" Show on Position [430, 50] Direction up Flipped on LabelPosition east Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "N" Show on Position [400, 205] Direction down Flipped on LabelPosition west Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "Grid Voltage Reference" Show on Position [285, 140] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "5" Show on } Parameter { Variable "Width" Value "-1" Show off } } Connection { Type Wire SrcComponent "V1" SrcTerminal 2 DstComponent "WMux3" DstTerminal 1 } Connection { Type Wire SrcComponent "WMux3" SrcTerminal 2 Points [390, 175; 400, 175] Branch { DstComponent "WMux3" DstTerminal 3 } Branch { Points [410, 175] DstComponent "WMux3" DstTerminal 4 } Branch { DstComponent "N" DstTerminal 1 } } Connection { Type Wire SrcComponent "WMux" SrcTerminal 1 DstComponent "V1" DstTerminal 1 } Connection { Type Wire SrcComponent "A" SrcTerminal 1 Points [370, 85; 390, 85] DstComponent "WMux" DstTerminal 2 } Connection { Type Wire SrcComponent "B" SrcTerminal 1 DstComponent "WMux" DstTerminal 3 } Connection { Type Wire SrcComponent "C" SrcTerminal 1 Points [430, 85; 410, 85] DstComponent "WMux" DstTerminal 4 } Connection { Type Signal SrcComponent "Grid Voltage Reference" SrcTerminal 1 DstComponent "V1" DstTerminal 3 } } } Component { Type Resistor Name "R1" Show off Position [1225, 225] Direction left Flipped off LabelPosition north Parameter { Variable "R" Value "R" Show off } } Component { Type Resistor Name "R2" Show off Position [1225, 190] Direction left Flipped off LabelPosition north Parameter { Variable "R" Value "R" Show off } } Component { Type Resistor Name "R3" Show off Position [1225, 155] Direction left Flipped off LabelPosition north Parameter { Variable "R" Value "R" Show off } } Component { Type Inductor Name "L2" Show off Position [1265, 225] Direction left Flipped off LabelPosition north Parameter { Variable "L" Value "L" Show off } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Inductor Name "L3" Show off Position [1265, 190] Direction left Flipped off LabelPosition north Parameter { Variable "L" Value "L" Show off } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Inductor Name "L4" Show off Position [1265, 155] Direction left Flipped off LabelPosition north Parameter { Variable "L" Value "L" Show off } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Label Name "Label1" Show off Position [1195, 190] Direction left Flipped off LabelPosition north Parameter { Variable "Tag" Value "B" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label3" Show off Position [290, 710] Direction down Flipped on LabelPosition west Parameter { Variable "Tag" Value "A" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label4" Show off Position [300, 710] Direction down Flipped on LabelPosition west Parameter { Variable "Tag" Value "B" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label5" Show off Position [310, 710] Direction down Flipped on LabelPosition west Parameter { Variable "Tag" Value "C" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label6" Show off Position [1615, 175] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "N" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Voltmeter Name "Vm1" Show off Position [300, 760] Direction up Flipped off LabelPosition west } Component { Type DCVoltageSource Name "V_dc" Show off Position [795, 165] Direction down Flipped on LabelPosition east Parameter { Variable "V" Value "Vin/2" Show off } } Component { Type DCVoltageSource Name "V_dc1" Show off Position [795, 210] Direction down Flipped on LabelPosition east Parameter { Variable "V" Value "Vin/2" Show off } } Component { Type Ground Name "Ground" Show off Position [770, 190] Direction right Flipped off LabelPosition south } Component { Type WireMux Name "WMux1" Show off Position [300, 790] Direction up Flipped off LabelPosition east Parameter { Variable "Width" Value "3" Show off } } Component { Type WireMux Name "WMux" Show off Position [300, 730] Direction up Flipped on LabelPosition east Parameter { Variable "Width" Value "3" Show off } } Component { Type Scope Name "Scope2" Show off Position [495, 765] Direction up Flipped off LabelPosition south Location [0, 27; 1920, 1034] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAIQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAeAAAAAcvw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQBAAAAAAAAB4AAAABQAP///wAAB4AAAANeAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "gAAAGQAAAADAAAAZAAAAAQAAABkAAAABQAAAGQAAAAGAAAAZAAAAAcAAABkAAAACAAAAGQAAAAJAA" "AAZAAAAAEAAABkAAAHbwAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAADcAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AaTAAAAAQAAAAAAAAPoAAAAACQ=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "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 } 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 Label Name "Label8" Show off Position [300, 815] Direction down Flipped off LabelPosition west Parameter { Variable "Tag" Value "N" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Goto Name "Goto1" Show off Position [1350, 150] Direction up Flipped off LabelPosition east Parameter { Variable "Tag" Value "GridCurrent" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From1" Show off Position [450, 755] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "GridCurrent" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Label Name "Label7" Show off Position [195, 710] Direction down Flipped on LabelPosition west Parameter { Variable "Tag" Value "A" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label9" Show off Position [205, 710] Direction down Flipped on LabelPosition west Parameter { Variable "Tag" Value "B" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label10" Show off Position [215, 710] Direction down Flipped on LabelPosition west Parameter { Variable "Tag" Value "C" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Voltmeter Name "Vm2" Show off Position [205, 760] Direction up Flipped off LabelPosition west } Component { Type WireMux Name "WMux2" Show off Position [205, 790] Direction up Flipped off LabelPosition east Parameter { Variable "Width" Value "3" Show off } } Component { Type WireMux Name "WMux3" Show off Position [205, 730] Direction up Flipped on LabelPosition east Parameter { Variable "Width" Value "3" Show off } } Component { Type Ground Name "Ground1" Show off Position [205, 820] Direction up Flipped off LabelPosition east } Component { Type From Name "From2" Show off Position [450, 765] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhN" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Goto Name "Goto2" Show off Position [235, 760] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhG" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Goto Name "Goto3" Show off Position [335, 760] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhN" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From3" Show off Position [450, 775] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhG" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type TriangleGenerator Name "Triangular Wave" Show off Position [325, 600] Direction right Flipped off LabelPosition south Parameter { Variable "Min" Value "-1" Show off } Parameter { Variable "Max" Value "1" Show off } Parameter { Variable "f" Value "fCarrier" Show off } Parameter { Variable "DutyCycle" Value "0.5" Show off } Parameter { Variable "Delay" Value "0" Show off } } Component { Type RelationalOperator Name "Relational\nOperator" Show off Position [395, 555] Direction right Flipped off LabelPosition south Parameter { Variable "Operator" Value "5" Show off } } Component { Type Goto Name "Goto" Show off Position [445, 555] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Switching_Signals" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From5" Show off Position [240, 550] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vc_ref" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type From Name "From4" Show off Position [1600, 230] Direction left Flipped off LabelPosition north Parameter { Variable "Tag" Value "Vgrid_ref" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Label Name "Label" Show off Position [1195, 225] Direction left Flipped off LabelPosition north Parameter { Variable "Tag" Value "C" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Label Name "Label2" Show off Position [1195, 155] Direction left Flipped off LabelPosition north Parameter { Variable "Tag" Value "A" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type ThreePhaseMeter Name "3ph Meter" Show off Position [1345, 190] Direction up Flipped off LabelPosition southSoutheast Parameter { Variable "voltage" Value "1" Show off } } Component { Type Integrator Name "Integrator" Show off Position [165, 135] Direction right Flipped off LabelPosition south 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 "inf" Show off } Parameter { Variable "LowerLimit" Value "-inf" Show off } } Component { Type Constant Name "Constant2" Show off Position [115, 135] Direction right Flipped off LabelPosition south Frame [-20, -10; 20, 10] Parameter { Variable "Value" Value "wGrid" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Sum Name "Sum2" Show off Position [235, 155] Direction up Flipped off LabelPosition south Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "++" Show off } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } } Component { Type Constant Name "Constant1" Show off Position [140, 170] Direction right Flipped off LabelPosition south Frame [-45, -10; 45, 10] Parameter { Variable "Value" Value "[0;-2/3;2/3]*pi" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Goto Name "Goto7" Show off Position [495, 360] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vc_ref" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Trigonometry Name "Trigonometric\nFunction1" Show off Position [310, 155] Direction right Flipped off LabelPosition south Parameter { Variable "Operator" Value "2" Show off } Parameter { Variable "Unit" Value "1" Show off } } Component { Type Goto Name "Goto8" Show off Position [275, 130] Direction up Flipped off LabelPosition east Parameter { Variable "Tag" Value "grid_phase" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From6" Show off Position [215, 305] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "grid_phase" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Label Name "Label11" Show off Position [980, 195] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "A" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type IgbtWithDiode Name "S_A+" Show on Position [955, 155] Direction up Flipped off LabelPosition east Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "Rth" Value "0" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type IgbtWithDiode Name "S_A-" Show on Position [955, 230] Direction up Flipped off LabelPosition east Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "Rth" Value "0" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type LogicalOperator Name "Logical\nOperator1" Show off Position [870, 190] Direction up Flipped off LabelPosition south Parameter { Variable "Operator" Value "6" Show off } Parameter { Variable "Inputs" Value "2" Show off } } Component { Type SignalDemux Name "Demux" Show off Position [760, 105] Direction left Flipped off LabelPosition north Parameter { Variable "Width" Value "3" Show off } } Component { Type From Name "From" Show off Position [735, 105] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Switching_Signals" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Sum Name "Sum" Show off Position [255, 305] Direction up Flipped off LabelPosition south Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } } Component { Type Trigonometry Name "Trigonometric\nFunction" Show off Position [315, 305] Direction right Flipped off LabelPosition south Parameter { Variable "Operator" Value "2" Show off } Parameter { Variable "Unit" Value "1" Show off } } Component { Type From Name "From7" Show off Position [765, 380] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhN" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Goto Name "Goto4" Show off Position [1340, 115] Direction up Flipped off LabelPosition east Parameter { Variable "Tag" Value "GridVoltage" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From8" Show off Position [765, 445] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "GridVoltage" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Label Name "Label14" Show off Position [1345, 235] Direction down Flipped off LabelPosition west Parameter { Variable "Tag" Value "N" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From9" Show off Position [765, 540] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhN" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type From Name "From10" Show off Position [765, 570] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "GridVoltage" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type From Name "From11" Show off Position [740, 630] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "grid_phase" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Scope Name "Model Comparison" Show on Position [1115, 490] Direction up Flipped off LabelPosition south Location [0, 27; 1920, 1034] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAIQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABQAP///wAAB4AAAAPUAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "gAAAGQAAAADAAAAZAAAAAQAAABkAAAABQAAAGQAAAAGAAAAZAAAAAcAAABkAAAACAAAAGQAAAAJAA" "AAZAAAAAEAAABkAAABAAAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAADcAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAkAAAAAQAAAAAAAAPoAAAAACQ=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "(s)" ShowLegend "1" Axis { Name "Switched Model" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "(A)" Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Clarke-model" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "(A)" Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Park-model" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "(A)" 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 From Name "From12" Show off Position [1070, 480] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "GridCurrent" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Step Name "modulation index" Show off Position [110, 425] Direction right Flipped off LabelPosition south Parameter { Variable "Time" Value "0.5" Show off } Parameter { Variable "Before" Value "VGrid_MAX*2/Vin" Show off } Parameter { Variable "After" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Product Name "Product" Show off Position [405, 360] Direction up Flipped off LabelPosition south Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "**" Show off } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } } Component { Type Scope Name "Scope4" Show off Position [1570, 420] Direction up Flipped off LabelPosition south Location [962, 31; 1920, 1039] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAKwA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABQAP///wAAA74AAAPVAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "wAAAGQAAAACAAAAZAAAAAEAAABkAAAABwAAAGQAAAAGAAAAZAAAAAUAAABkAAAABAAAAGQAAAAJAA" "AAZAAAAAgAAABkAAABJwAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAAEDAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAkAAAAAQAAAAAAAAPoAAAAACQ=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "AAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" Axes "4" TimeRange "0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" Axis { Name "Modulation signals & modulation Index (m)" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Phase A voltage & cycle averaged value" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "[V]" Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Phase B voltage & cycle averaged value" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "[V]" Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Phase C voltage & cycle averaged value" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "[V]" 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 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } } } Component { Type SignalSelector Name "Selector1" Show off Position [1465, 455] Direction right Flipped off LabelPosition south Parameter { Variable "InputWidth" Value "6" Show off } Parameter { Variable "OutputIndices" Value "[1 4 2 5 3 6]" Show off } } Component { Type SignalDemux Name "Demux7" Show off Position [1525, 425] Direction right Flipped on LabelPosition south Parameter { Variable "Width" Value "[2 2 2]" Show off } } Component { Type From Name "From17" Show off Position [1335, 440] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhG" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type From Name "From18" Show off Position [1335, 465] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhG" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Reference SrcComponent "Components/Control/Filters/Moving Average" Name "Moving Average1" Show off Position [1375, 465] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "T_period" Value "1/fCarrier" Show off } Parameter { Variable "buffer_size" Value "256" Show off } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 0] Direction left } } Component { Type SignalMux Name "Mux4" Show off Position [1420, 455] Direction right Flipped off LabelPosition south Parameter { Variable "Width" Value "[3 3]" Show off } } Component { Type Scope Name "Scope5" Show off Position [1510, 660] Direction up Flipped off LabelPosition south Location [960, 27; 1920, 1044] State "AAAA/wAAAAD9AAAAAgAAAAEAAACgAAAD3vwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAIQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMBAAAALwAAA94AAABmAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABQAP///wAAAxwAAAPeAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA" "wAAAGQAAAACAAAAZAAAAAEAAABkAAAABwAAAGQAAAAGAAAAZAAAAAUAAABkAAAABAAAAGQAAAAJAA" "AAZAAAAAgAAABkAAABAAAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAADcAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AAkAAAAAQAAAAAAAAPoAAAAACQ=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "==" Axes "3" TimeRange "0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" Axis { Name "Converter cycle averaged voltages" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "[V]" Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Grid Voltages" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "[V]" Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Grid currents" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] AxisLabel "[A]" 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 From Name "From20" Show off Position [1350, 635] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "V_PhG" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Reference SrcComponent "Components/Control/Filters/Moving Average" Name "Moving Average2" Show off Position [1390, 635] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Parameter { Variable "x0" Value "0" Show off } Parameter { Variable "T_period" Value "1/fCarrier" Show off } Parameter { Variable "buffer_size" Value "256" Show off } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 0] Direction left } } Component { Type From Name "From13" Show off Position [1350, 660] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vgrid_ref" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type From Name "From14" Show off Position [1350, 685] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "GridCurrent" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type From Name "From15" Show off Position [1335, 370] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vc_ref" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Step Name "modulation index1" Show off Position [110, 465] Direction right Flipped off LabelPosition south Parameter { Variable "Time" Value "0.75" Show off } Parameter { Variable "Before" Value "0" Show off } Parameter { Variable "After" Value "0.5" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Sum Name "Sum8" Show off Position [190, 445] Direction up Flipped off LabelPosition south Parameter { Variable "IconShape" Value "1" Show off } Parameter { Variable "Inputs" Value "++" Show off } Parameter { Variable "DataType" Value "10" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } } Component { Type SignalMux Name "Mux5" Show off Position [1500, 370] Direction right Flipped off LabelPosition south Parameter { Variable "Width" Value "[1 3 1]" Show off } } Component { Type Goto Name "Goto9" Show off Position [240, 445] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "m" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type From Name "From16" Show off Position [1425, 360] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "m" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Gain Name "Gain10" Show off Position [1470, 380] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "-1" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "OutputDataType" Value "10" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } Parameter { Variable "GainDataType" Value "11" Show off } } Component { Type From Name "From19" Show off Position [310, 445] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "m" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "1" Show off } } Component { Type Gain Name "VgridMAX2" Show off Position [455, 360] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "Vin/2" Show on } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "OutputDataType" Value "11" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } Parameter { Variable "GainDataType" Value "11" Show off } } Component { Type Gain Name "VgridMAX3" Show off Position [295, 550] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "2/Vin" Show on } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "OutputDataType" Value "11" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } Parameter { Variable "GainDataType" Value "11" Show off } } Component { Type Gain Name "VgridMAX4" Show off Position [1380, 370] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "2/Vin" Show on } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "OutputDataType" Value "11" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } Parameter { Variable "GainDataType" Value "11" Show off } } Component { Type Goto Name "Goto10" Show off Position [450, 155] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vgrid_ref" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type Gain Name "VgridMAX5" Show off Position [380, 155] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "VGrid_MAX" Show on } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "OutputDataType" Value "11" Show off } Parameter { Variable "DataTypeOverflowMode" Value "1" Show off } Parameter { Variable "GainDataType" Value "11" Show off } } Component { Type Goto Name "Goto11" Show off Position [275, 280] Direction up Flipped off LabelPosition east Parameter { Variable "Tag" Value "conv_phase" Show off } Parameter { Variable "Visibility" Value "1" Show off } Parameter { Variable "NoMatchingCounterpartAction" Value "3" Show off } } Component { Type SignalDemux Name "Demux1" Show off Position [770, 630] Direction right Flipped on LabelPosition south Parameter { Variable "Width" Value "3" Show off } } Component { Type Subsystem Name "Alpha-Beta Model" Show on Position [880, 415] Direction up Flipped off LabelPosition south Frame [-85, -60; 85, 60] SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskDisplayLang "2" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Output Position [89, 0] Direction right } Terminal { Type Input Position [-85, 30] Direction left } Terminal { Type Input Position [-85, -35] Direction left } Schematic { Location [0, 84; 1920, 1062] ZoomFactor 2.2459 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Reference SrcComponent "Components/Control/Transformations/3ph->SRF" Name "3ph->SRF1" Show off Position [200, 165] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Terminal { Type Input Position [-15, 0] Direction left } Terminal { Type Output Position [19, 0] Direction right } } Component { Type Reference SrcComponent "Components/Control/Transformations/SRF->3ph" Name "SRF->3ph" Show off Position [590, 165] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Terminal { Type Input Position [-15, 0] Direction left } Terminal { Type Output Position [19, 0] Direction right } } Component { Type Reference SrcComponent "Components/Control/Transformations/3ph->SRF" Name "3ph->SRF2" Show off Position [200, 200] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Terminal { Type Input Position [-15, 0] Direction left } Terminal { Type Output Position [19, 0] Direction right } } Component { Type Output Name "Grid Currents" Show on Position [670, 165] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "Grid Voltages" Show on Position [115, 200] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "Converter Voltages" Show on Position [115, 165] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Connection { Type Signal SrcComponent "SRF->3ph" SrcTerminal 2 DstComponent "Grid Currents" DstTerminal 1 } Connection { Type Signal SrcComponent "Grid Voltages" SrcTerminal 1 DstComponent "3ph->SRF2" DstTerminal 1 } Connection { Type Signal SrcComponent "Converter Voltages" SrcTerminal 1 DstComponent "3ph->SRF1" DstTerminal 1 } } } Component { Type Subsystem Name "DQ Model" Show on Position [880, 575] Direction up Flipped off LabelPosition south Frame [-85, -60; 85, 60] SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskDisplayLang "2" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Output Position [89, 0] Direction right } Terminal { Type Input Position [-85, 45] Direction left } Terminal { Type Input Position [-85, -5] Direction left } Terminal { Type Input Position [-85, -35] Direction left } Schematic { Location [0, 27; 1920, 1005] ZoomFactor 1.96257 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Reference SrcComponent "Components/Control/Transformations/3ph->RRF" Name "3ph->RRF" Show off Position [385, 200] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Terminal { Type Input Position [-15, -5] Direction left } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 5] Direction left } } Component { Type Reference SrcComponent "Components/Control/Transformations/RRF->3ph" Name "RRF->3ph" Show off Position [775, 205] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Terminal { Type Input Position [-15, -5] Direction left } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 5] Direction left } } Component { Type Reference SrcComponent "Components/Control/Transformations/3ph->RRF" Name "3ph->RRF1" Show off Position [385, 235] Direction up Flipped off LabelPosition south Frame [-15, -15; 15, 15] Terminal { Type Input Position [-15, -5] Direction left } Terminal { Type Output Position [19, 0] Direction right } Terminal { Type Input Position [-15, 5] Direction left } } Component { Type Output Name "Grid Currents" Show on Position [860, 205] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "angle" Show on Position [240, 410] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "Grid Voltages" Show on Position [240, 230] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Input Name "Converter Voltages" Show on Position [240, 195] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Connection { Type Signal SrcComponent "RRF->3ph" SrcTerminal 2 DstComponent "Grid Currents" DstTerminal 1 } Connection { Type Signal SrcComponent "Grid Voltages" SrcTerminal 1 DstComponent "3ph->RRF1" DstTerminal 1 } Connection { Type Signal SrcComponent "Converter Voltages" SrcTerminal 1 DstComponent "3ph->RRF" DstTerminal 1 } } } Component { Type Step Name "Phase Shift" Show on Position [180, 350] Direction right Flipped off LabelPosition south Parameter { Variable "Time" Value "0.25" Show off } Parameter { Variable "Before" Value "pi/4" Show off } Parameter { Variable "After" Value "0" Show off } Parameter { Variable "DataType" Value "10" Show off } } Connection { Type Wire SrcComponent "R1" SrcTerminal 2 DstComponent "L2" DstTerminal 1 } Connection { Type Wire SrcComponent "R2" SrcTerminal 2 DstComponent "L3" DstTerminal 1 } Connection { Type Wire SrcComponent "R3" SrcTerminal 2 DstComponent "L4" DstTerminal 1 } Connection { Type Wire SrcComponent "L4" SrcTerminal 2 Points [1300, 155; 1300, 180] DstComponent "3ph Meter" DstTerminal 1 } Connection { Type Wire SrcComponent "L3" SrcTerminal 2 DstComponent "3ph Meter" DstTerminal 2 } Connection { Type Wire SrcComponent "L2" SrcTerminal 2 Points [1300, 225; 1300, 200] DstComponent "3ph Meter" DstTerminal 3 } Connection { Type Wire SrcComponent "Label3" SrcTerminal 1 DstComponent "WMux" DstTerminal 2 } Connection { Type Wire SrcComponent "Label5" SrcTerminal 1 DstComponent "WMux" DstTerminal 4 } Connection { Type Wire SrcComponent "WMux" SrcTerminal 3 DstComponent "Label4" DstTerminal 1 } Connection { Type Wire SrcComponent "Vm1" SrcTerminal 2 DstComponent "WMux1" DstTerminal 1 } Connection { Type Wire SrcComponent "WMux1" SrcTerminal 2 Points [290, 800; 300, 800] Branch { DstComponent "Label8" DstTerminal 1 } Branch { DstComponent "WMux1" DstTerminal 3 } Branch { Points [310, 800] DstComponent "WMux1" DstTerminal 4 } } Connection { Type Wire SrcComponent "WMux" SrcTerminal 1 DstComponent "Vm1" DstTerminal 1 } Connection { Type Signal SrcComponent "From1" SrcTerminal 1 DstComponent "Scope2" DstTerminal 1 } Connection { Type Wire SrcComponent "Label7" SrcTerminal 1 DstComponent "WMux3" DstTerminal 2 } Connection { Type Wire SrcComponent "Label10" SrcTerminal 1 DstComponent "WMux3" DstTerminal 4 } Connection { Type Wire SrcComponent "WMux3" SrcTerminal 3 DstComponent "Label9" DstTerminal 1 } Connection { Type Wire SrcComponent "Vm2" SrcTerminal 2 DstComponent "WMux2" DstTerminal 1 } Connection { Type Wire SrcComponent "WMux2" SrcTerminal 2 Points [195, 800; 205, 800] Branch { DstComponent "Ground1" DstTerminal 1 } Branch { DstComponent "WMux2" DstTerminal 3 } Branch { Points [215, 800] DstComponent "WMux2" DstTerminal 4 } } Connection { Type Wire SrcComponent "WMux3" SrcTerminal 1 DstComponent "Vm2" DstTerminal 1 } Connection { Type Signal SrcComponent "From2" SrcTerminal 1 DstComponent "Scope2" DstTerminal 2 } Connection { Type Signal SrcComponent "Vm2" SrcTerminal 3 DstComponent "Goto2" DstTerminal 1 } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 DstComponent "Goto3" DstTerminal 1 } Connection { Type Signal SrcComponent "From3" SrcTerminal 1 DstComponent "Scope2" DstTerminal 3 } Connection { Type Wire SrcComponent "V_dc" SrcTerminal 2 Points [795, 190] Branch { DstComponent "Ground" DstTerminal 1 } Branch { DstComponent "V_dc1" DstTerminal 1 } } Connection { Type Signal SrcComponent "3ph Meter" SrcTerminal 8 DstComponent "Goto1" DstTerminal 1 } Connection { Type Wire SrcComponent "Label2" SrcTerminal 1 DstComponent "R3" DstTerminal 1 } Connection { Type Wire SrcComponent "Label" SrcTerminal 1 DstComponent "R1" DstTerminal 1 } Connection { Type Wire SrcComponent "Label1" SrcTerminal 1 DstComponent "R2" DstTerminal 1 } Connection { Type Wire SrcComponent "GRID" SrcTerminal 1 DstComponent "3ph Meter" DstTerminal 4 } Connection { Type Wire SrcComponent "GRID" SrcTerminal 2 DstComponent "3ph Meter" DstTerminal 5 } Connection { Type Wire SrcComponent "GRID" SrcTerminal 3 DstComponent "3ph Meter" DstTerminal 6 } Connection { Type Signal SrcComponent "Constant2" SrcTerminal 1 DstComponent "Integrator" DstTerminal 1 } Connection { Type Signal SrcComponent "Constant1" SrcTerminal 1 Points [195, 170; 195, 160] DstComponent "Sum2" DstTerminal 3 } Connection { Type Signal SrcComponent "Sum2" SrcTerminal 1 Points [275, 155] Branch { DstComponent "Trigonometric\nFunction1" DstTerminal 1 } Branch { DstComponent "Goto8" DstTerminal 1 } } Connection { Type Wire SrcComponent "S_A-" SrcTerminal 1 Points [955, 195] Branch { DstComponent "S_A+" DstTerminal 2 } Branch { DstComponent "Label11" DstTerminal 1 } } Connection { Type Signal SrcComponent "From" SrcTerminal 1 DstComponent "Demux" DstTerminal 1 } Connection { Type Signal SrcComponent "From6" SrcTerminal 1 DstComponent "Sum" DstTerminal 2 } Connection { Type Signal SrcComponent "From7" SrcTerminal 1 DstComponent "Alpha-Beta Model" DstTerminal 3 } Connection { Type Signal SrcComponent "3ph Meter" SrcTerminal 7 DstComponent "Goto4" DstTerminal 1 } Connection { Type Signal SrcComponent "From8" SrcTerminal 1 DstComponent "Alpha-Beta Model" DstTerminal 2 } Connection { Type Wire SrcComponent "Label14" SrcTerminal 1 DstComponent "3ph Meter" DstTerminal 9 } Connection { Type Signal SrcComponent "From9" SrcTerminal 1 DstComponent "DQ Model" DstTerminal 4 } Connection { Type Signal SrcComponent "From10" SrcTerminal 1 DstComponent "DQ Model" DstTerminal 3 } Connection { Type Signal SrcComponent "DQ Model" SrcTerminal 1 Points [1000, 575; 1000, 500] DstComponent "Model Comparison" DstTerminal 3 } Connection { Type Signal SrcComponent "Alpha-Beta Model" SrcTerminal 1 Points [1000, 415; 1000, 490] DstComponent "Model Comparison" DstTerminal 2 } Connection { Type Signal SrcComponent "From12" SrcTerminal 1 DstComponent "Model Comparison" DstTerminal 1 } Connection { Type Signal SrcComponent "Triangular Wave" SrcTerminal 1 Points [355, 600; 355, 560] DstComponent "Relational\nOperator" DstTerminal 2 } Connection { Type Signal SrcComponent "Selector1" SrcTerminal 2 Points [1500, 455; 1500, 425] DstComponent "Demux7" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux7" SrcTerminal 2 DstComponent "Scope4" DstTerminal 2 } Connection { Type Signal SrcComponent "Demux7" SrcTerminal 3 DstComponent "Scope4" DstTerminal 3 } Connection { Type Signal SrcComponent "Demux7" SrcTerminal 4 DstComponent "Scope4" DstTerminal 4 } Connection { Type Signal SrcComponent "From18" SrcTerminal 1 DstComponent "Moving Average1" DstTerminal 2 } Connection { Type Signal SrcComponent "Moving Average1" SrcTerminal 1 Points [1400, 465; 1400, 460] DstComponent "Mux4" DstTerminal 3 } Connection { Type Signal SrcComponent "From17" SrcTerminal 1 Points [1400, 440; 1400, 450] DstComponent "Mux4" DstTerminal 2 } Connection { Type Signal SrcComponent "Mux4" SrcTerminal 1 DstComponent "Selector1" DstTerminal 1 } Connection { Type Signal SrcComponent "Relational\nOperator" SrcTerminal 3 DstComponent "Goto" DstTerminal 1 } Connection { Type Signal SrcComponent "From20" SrcTerminal 1 DstComponent "Moving Average2" DstTerminal 2 } Connection { Type Signal SrcComponent "Moving Average2" SrcTerminal 1 Points [1445, 635; 1445, 650] DstComponent "Scope5" DstTerminal 1 } Connection { Type Signal SrcComponent "From13" SrcTerminal 1 DstComponent "Scope5" DstTerminal 2 } Connection { Type Signal SrcComponent "From14" SrcTerminal 1 Points [1435, 685; 1435, 670] DstComponent "Scope5" DstTerminal 3 } Connection { Type Signal SrcComponent "modulation index" SrcTerminal 1 Points [145, 425; 145, 440] DstComponent "Sum8" DstTerminal 2 } Connection { Type Signal SrcComponent "modulation index1" SrcTerminal 1 Points [145, 465; 145, 450] DstComponent "Sum8" DstTerminal 3 } Connection { Type Signal SrcComponent "Mux5" SrcTerminal 1 Points [1525, 370; 1525, 405] DstComponent "Scope4" DstTerminal 1 } Connection { Type Signal SrcComponent "Sum8" SrcTerminal 1 DstComponent "Goto9" DstTerminal 1 } Connection { Type Signal SrcComponent "Gain10" SrcTerminal 2 DstComponent "Mux5" DstTerminal 4 } Connection { Type Signal SrcComponent "From16" SrcTerminal 1 Points [1440, 360] Branch { DstComponent "Mux5" DstTerminal 2 } Branch { DstComponent "Gain10" DstTerminal 1 } } Connection { Type Signal SrcComponent "From19" SrcTerminal 1 Points [365, 445; 365, 365] DstComponent "Product" DstTerminal 3 } Connection { Type Signal SrcComponent "Integrator" SrcTerminal 2 Points [205, 135] DstComponent "Sum2" DstTerminal 2 } Connection { Type Signal SrcComponent "Product" SrcTerminal 1 DstComponent "VgridMAX2" DstTerminal 1 } Connection { Type Signal SrcComponent "VgridMAX2" SrcTerminal 2 DstComponent "Goto7" DstTerminal 1 } Connection { Type Signal SrcComponent "From5" SrcTerminal 1 DstComponent "VgridMAX3" DstTerminal 1 } Connection { Type Signal SrcComponent "From15" SrcTerminal 1 DstComponent "VgridMAX4" DstTerminal 1 } Connection { Type Signal SrcComponent "VgridMAX4" SrcTerminal 2 DstComponent "Mux5" DstTerminal 3 } Connection { Type Wire SrcComponent "Label6" SrcTerminal 1 DstComponent "GRID" DstTerminal 4 } Connection { Type Signal SrcComponent "From4" SrcTerminal 1 DstComponent "GRID" DstTerminal 5 } Connection { Type Signal SrcComponent "VgridMAX5" SrcTerminal 2 DstComponent "Goto10" DstTerminal 1 } Connection { Type Signal SrcComponent "Trigonometric\nFunction1" SrcTerminal 2 DstComponent "VgridMAX5" DstTerminal 1 } Connection { Type Signal SrcComponent "Sum" SrcTerminal 1 Points [275, 305] Branch { DstComponent "Trigonometric\nFunction" DstTerminal 1 } Branch { DstComponent "Goto11" DstTerminal 1 } } Connection { Type Signal SrcComponent "Trigonometric\nFunction" SrcTerminal 2 Points [365, 305; 365, 355] DstComponent "Product" DstTerminal 2 } Connection { Type Signal SrcComponent "From11" SrcTerminal 1 DstComponent "Demux1" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux1" SrcTerminal 2 DstComponent "DQ Model" DstTerminal 2 } Connection { Type Signal SrcComponent "Phase Shift" SrcTerminal 1 Points [255, 350] DstComponent "Sum" DstTerminal 3 } Connection { Type Signal SrcComponent "VgridMAX3" SrcTerminal 2 DstComponent "Relational\nOperator" DstTerminal 1 } Annotation { Name "\n

Converter Modulation Signals

" Position [165, 235] } Annotation { Name "\n

PWM

" Position [360, 520] } Annotation { Name "\n

Rg

" Position [1225, 140] } Annotation { Name "\n

Converter output voltag" "es and their averages over one switching cycle

" Position [1435, 505] } RectangleAnnotation { Position [1435, 435] Width 380 Height 220 CornerRadius 3 Thickness 2 PenColor 10642217 PenAlpha 1 BrushColor 10642217 BrushAlpha 0 } RectangleAnnotation { Position [1435, 660] Width 380 Height 140 CornerRadius 3 Thickness 2 PenColor 10642217 PenAlpha 1 BrushColor 10642217 BrushAlpha 0 } Annotation { Name "\n

Converter Voltages & References

" Position [1365, 310] } RectangleAnnotation { Position [300, 150] Width 480 Height 130 CornerRadius 3 Thickness 2 PenColor 10642217 PenAlpha 1 BrushColor 10642217 BrushAlpha 0 } Annotation { Name "\n

Lg

" Position [1265, 140] } RectangleAnnotation { Position [300, 440] Width 480 Height 380 CornerRadius 3 Thickness 2 PenColor 10642217 PenAlpha 1 BrushColor 10642217 BrushAlpha 0 } Annotation { Name "\n

Grid Voltages

" Position [115, 70] } Annotation { Name "\n

Measurements

" Position [115, 655] } RectangleAnnotation { Position [300, 760] Width 480 Height 180 CornerRadius 3 Thickness 2 PenColor 10642217 PenAlpha 1 BrushColor 10642217 BrushAlpha 0 } Annotation { Name "\n

Switched model Voltages and Currents

" Position [1380, 575] } RectangleAnnotation { Position [175, 445] Width 190 Height 100 CornerRadius 3 Thickness 2 PenColor 4278190335 PenAlpha 1 BrushColor 255 BrushAlpha 0 } RectangleAnnotation { Position [180, 355] Width 90 Height 60 CornerRadius 3 Thickness 2 PenColor 4278190335 PenAlpha 1 BrushColor 255 BrushAlpha 0 } RectangleAnnotation { Position [875, 190] Width 520 Height 240 CornerRadius 3 Thickness 2 PenColor 10642217 PenAlpha 1 BrushColor 10642217 BrushAlpha 0 } Annotation { Name "\n

Three-phase 2L inverter

" Position [705, 55] } Annotation { Name "\n

c

\n

b

\n

a

" Position [775, 105] } } }