Plecs { Name "flyback_peak_current_mode_TL431" Version "4.7" CircuitModel "ContStateSpace" StartTime "0.0" TimeSpan "simuation_total_time" Timeout "" Solver "radau" MaxStep "1e-3" InitStep "-1" FixedStep "1e-3" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "1" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "2" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AlgebraicLoopWithStateMachineMsg "2" AssertionAction "1" InitializationCommands "fid = fopen(\"myfile.txt\");\n\nfor i = 1:100\n\tfli" "ne = fgetl(fid);\n\t\n\tif(fline == -1)\n\t\tbreak;\n\tend\n\n\tdisp(fline);" "\n\teval(fline);\n\t\t\n\t\nend\n\nfclose(fid)" 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 [642, 26; 2560, 1408] ZoomFactor 1.40437 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Capacitor Name "Cz" Show on Position [725, 735] Direction left Flipped off LabelPosition north Parameter { Variable "C" Value "Cz_TL431" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Resistor Name "R4" Show on Position [975, 665] Direction down Flipped on LabelPosition west Parameter { Variable "R" Value "Rupper" Show on } } Component { Type Resistor Name "R5" Show on Position [975, 800] Direction down Flipped on LabelPosition west Parameter { Variable "R" Value "Rbottom_TL431" Show on } } Component { Type Subsystem Name "TL431" Show on Position [645, 765] Direction left Flipped off LabelPosition southeast Frame [-10, -10; 10, 10] SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskType "TL431 Shunt Regulator" MaskDescription "The TL431 is an adjustable three-terminal regulator wit" "h a reference voltage of 2.5 volts." MaskDisplay "line([-6, -6, 6, -6], [-7, 7, 0, -7])\n" "line([6, 6], [-7, 7])\n" "line([6, 3], [-7, -7])\n" "line([6, 9], [7, 7])\n" "line([-20, -6], [0, 0])\n" "line([20, 6], [0, 0])\n" "line([0, 0], [4, 20])\n" MaskIconFrame off MaskIconOpaque on MaskIconRotates on Parameter { Variable "Vref" Prompt "Internal reference voltage" Type FreeText Value "2.5" Show on Tunable off TabName "" } Parameter { Variable "Vmax" Prompt "Maximum output voltage" Type FreeText Value "Inf" Show off Tunable off TabName "" } Terminal { Type Port Position [0, 15] Direction down } Terminal { Type Port Position [15, 0] Direction right } Terminal { Type Port Position [-15, 0] Direction left } Schematic { Location [422, 761; 819, 973] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Port Name "Vref" Show on Position [60, 70] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "K" Show on Position [300, 80] Direction right Flipped on LabelPosition south Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "A" Show on Position [300, 145] Direction right Flipped on LabelPosition south Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Subsystem Name "Op-Amp1" Show off Position [185, 80] Direction up Flipped off LabelPosition north Frame [-20, -20; 20, 20] SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskType "Op-Amp" MaskDescription "Ideal op-amp with finite gain." MaskHelp "opamp.html" MaskDisplay "line([-20, -20, 20, -20], [20, -20, 0, 20])\n" "text(-14, 10, '+')\n" "text(-14, -10, '-')" MaskIconFrame off MaskIconOpaque on MaskIconRotates on MaskInit "tau=1/(2*pi*fc)" Parameter { Variable "A" Prompt "Open-loop gain" Type FreeText Value "750" Show on Tunable off TabName "" } Parameter { Variable "fc" Prompt "Cutoff frequency (Hz)" Type FreeText Value "2.5e3" Show on Tunable off TabName "" } Parameter { Variable "Vsat" Prompt "Vo max" Type FreeText Value "Vmax" Show on Tunable off TabName "" } Terminal { Type Port Position [-25, 10] Direction left } Terminal { Type Port Position [-25, -10] Direction left } Terminal { Type Port Position [25, 0] Direction right } Terminal { Type Port Position [0, 15] Direction down } Schematic { Location [1271, 681; 1745, 814] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Port Name "+" Show on Position [30, 25] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "-" Show on Position [30, 65] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "out" Show on Position [405, 25] Direction right Flipped on LabelPosition south Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Voltmeter Name "Vm1" Show on Position [80, 45] Direction up Flipped off LabelPosition west } Component { Type VoltageSource Name "V" Show on Position [355, 45] Direction down Flipped on LabelPosition east Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "2" Show off } } Component { Type Port Name "gnd" Show on Position [405, 65] Direction right Flipped on LabelPosition south Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Gain Name "Gain" Show on Position [130, 45] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "A" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type TransferFunction Name "Transfer Fcn" Show on Position [280, 45] Direction right Flipped off LabelPosition south Frame [-30, -15; 30, 15] Parameter { Variable "Numerator" Value "[1]" Show off } Parameter { Variable "Denominator" Value "[tau 1]" Show off } Parameter { Variable "X0" Value "0" Show off } } Component { Type Saturation Name "Saturation" Show on Position [195, 45] Direction right Flipped off LabelPosition south Parameter { Variable "UpperLimit" Value "Vsat" Show on } Parameter { Variable "LowerLimit" Value "0" Show on } } Connection { Type Wire SrcComponent "+" SrcTerminal 1 DstComponent "Vm1" DstTerminal 1 } Connection { Type Wire SrcComponent "-" SrcTerminal 1 DstComponent "Vm1" DstTerminal 2 } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 DstComponent "Gain" DstTerminal 1 } Connection { Type Wire SrcComponent "V" SrcTerminal 1 DstComponent "out" DstTerminal 1 } Connection { Type Wire SrcComponent "V" SrcTerminal 2 DstComponent "gnd" DstTerminal 1 } Connection { Type Signal SrcComponent "Transfer Fcn" SrcTerminal 2 DstComponent "V" DstTerminal 3 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 DstComponent "Saturation" DstTerminal 1 } Connection { Type Signal SrcComponent "Saturation" SrcTerminal 2 DstComponent "Transfer Fcn" DstTerminal 1 } } } Component { Type DCVoltageSource Name "V_dc2" Show off Position [120, 115] Direction down Flipped on LabelPosition east Parameter { Variable "V" Value "Vref" Show on } } Component { Type Diode Name "D1" Show off Position [245, 80] Direction right Flipped off LabelPosition north Parameter { Variable "Vf" Value "Vref" Show on } Parameter { Variable "Ron" 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 } } Connection { Type Wire SrcComponent "Op-Amp1" SrcTerminal 1 Points [120, 90] DstComponent "V_dc2" DstTerminal 1 } Connection { Type Wire SrcComponent "Op-Amp1" SrcTerminal 3 DstComponent "D1" DstTerminal 2 } Connection { Type Wire SrcComponent "Op-Amp1" SrcTerminal 2 DstComponent "Vref" DstTerminal 1 } Connection { Type Wire SrcComponent "A" SrcTerminal 1 Points [185, 145] Branch { Points [120, 145] DstComponent "V_dc2" DstTerminal 2 } Branch { DstComponent "Op-Amp1" DstTerminal 4 } } Connection { Type Wire SrcComponent "D1" SrcTerminal 1 DstComponent "K" DstTerminal 1 } } } Component { Type Subsystem Name "Sub5" Show off Position [615, 580] Direction left Flipped on LabelPosition none Frame [-25, -25; 25, 25] SampleTime "-1" CodeGenDiscretizationMethod "2" CodeGenTarget "Generic" MaskType "Optocoupler" MaskDescription "Behavioral model of an optocoupler. The optocoupler is " "modeled with an diode at the input and a controlled current source at the out" "put. The current transfer ratio is constant." MaskDisplay "line([6, 6, -6, 6], [-22, -8, -15, -22])\n" "line([-6, -6], [-22, -8])\n" "line([-15, -6], [-15, -15])\n" "line([15, 6], [-15, -15])\n" "\n" "line([5, 5], [-3, 7])\n" "line([5, 3], [8, 3])\n" "line([5, 7], [8, 3])\n" "line([-5, -5], [-3, 7])\n" "line([-5, -3], [8, 3])\n" "line([-5, -7], [8, 3])\n" "\n" "line([-10, 10], [13, 13])\n" "line([5, 15], [13, 22])\n" "line([-5, -15], [13, 22])\n" "\n" "line([-15, -13], [22, 17])\n" "line([-15, -9.5], [22.5, 20.5])\n" "\n" "line([-15, -15], [-15, -25])\n" "line([15, 15], [-15, -25])\n" "line([-15, -15], [23, 25])\n" "line([15, 15], [22, 25])" MaskIconFrame on MaskIconOpaque on MaskIconRotates on Parameter { Variable "Vled" Prompt "Diode Forward Voltage Drop" Type FreeText Value "VF_opto" Show off Tunable off TabName "" } Parameter { Variable "ctr" Prompt "Current Transfer Ratio" Type FreeText Value "CTR" Show off Tunable off TabName "" } Parameter { Variable "Vsat" Prompt "Vce sat" Type FreeText Value "VCE_sat" Show off Tunable off TabName "" } Parameter { Variable "Cvce" Prompt "Capacitance (Vce)" Type FreeText Value "Copto" Show off Tunable off TabName "" } Terminal { Type Port Position [15, -30] Direction up } Terminal { Type Port Position [-15, -30] Direction up } Terminal { Type Port Position [-15, 30] Direction down } Terminal { Type Port Position [15, 30] Direction down } Schematic { Location [99, 762; 691, 998] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Ammeter Name "Am1" Show off Position [95, 120] Direction up Flipped off LabelPosition west } Component { Type CurrentSource Name "I" Show on Position [355, 115] Direction down Flipped off LabelPosition east Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "2" Show off } } Component { Type Port Name "1" Show off Position [45, 45] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "2" Show off Position [45, 160] Direction right Flipped off LabelPosition south Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "e" Show on Position [515, 160] Direction right Flipped on LabelPosition south Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "c" Show on Position [515, 60] Direction right Flipped on LabelPosition south Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Diode Name "LED" Show on Position [95, 75] Direction up Flipped off LabelPosition west Parameter { Variable "Vf" Value "Vled" Show on } Parameter { Variable "Ron" 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 Capacitor Name "C1" Show on Position [450, 115] Direction up Flipped off LabelPosition east Parameter { Variable "C" Value "Cvce" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Gain Name "Gain" Show on Position [290, 115] Direction right Flipped off LabelPosition south Parameter { Variable "K" Value "ctr" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type SignalMux Name "Mux" Show off Position [155, 115] Direction right Flipped off LabelPosition south Parameter { Variable "Width" Value "2" Show off } } Component { Type Voltmeter Name "Vm1" Show off Position [395, 115] Direction up Flipped off LabelPosition west } Component { Type Function Name "Limit" Show on Position [215, 115] Direction right Flipped off LabelPosition south Frame [-20, -10; 20, 10] Parameter { Variable "f(u)" Value "min(u[1]/Vsat,1)*u[2]" Show off } } Connection { Type Wire SrcComponent "1" SrcTerminal 1 Points [95, 45] DstComponent "LED" DstTerminal 1 } Connection { Type Wire SrcComponent "2" SrcTerminal 1 Points [95, 160] DstComponent "Am1" DstTerminal 2 } Connection { Type Wire SrcComponent "LED" SrcTerminal 2 DstComponent "Am1" DstTerminal 1 } Connection { Type Wire SrcComponent "I" SrcTerminal 1 Points [355, 60; 395, 60] Branch { Points [450, 60] Branch { DstComponent "c" DstTerminal 1 } Branch { DstComponent "C1" DstTerminal 1 } } Branch { DstComponent "Vm1" DstTerminal 1 } } Connection { Type Wire SrcComponent "I" SrcTerminal 2 Points [355, 160; 395, 160] Branch { Points [450, 160] Branch { DstComponent "e" DstTerminal 1 } Branch { DstComponent "C1" DstTerminal 2 } } Branch { DstComponent "Vm1" DstTerminal 2 } } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 Points [425, 115; 425, 35; 140, 35] DstComponent "Mux" DstTerminal 2 } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 DstComponent "Limit" DstTerminal 1 } Connection { Type Signal SrcComponent "Am1" SrcTerminal 3 DstComponent "Mux" DstTerminal 3 } Connection { Type Signal SrcComponent "Limit" SrcTerminal 2 DstComponent "Gain" DstTerminal 1 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 DstComponent "I" DstTerminal 3 } Annotation { Name "Limits effective ctr\nwhen Vce < Vsat" Position [215, 160] } } } Component { Type Resistor Name "Rz" Show on Position [825, 735] Direction left Flipped on LabelPosition north Parameter { Variable "R" Value "Rz_TL431" Show on } } Component { Type Resistor Name "Rled" Show on Position [645, 675] Direction up Flipped on LabelPosition east Parameter { Variable "R" Value "Rled" Show on } } Component { Type Resistor Name "Rbias" Show on Position [680, 600] Direction up Flipped on LabelPosition east Parameter { Variable "R" Value "1e3" Show on } } Component { Type Resistor Name "Rpullup" Show on Position [500, 530] Direction up Flipped on LabelPosition east Parameter { Variable "R" Value "Rp" Show on } } Component { Type DCVoltageSource Name "V_dc1" Show off Position [465, 470] Direction left Flipped on LabelPosition south Parameter { Variable "V" Value "Vref_IC" Show on } } Component { Type Ground Name "Ground4" Show off Position [420, 470] Direction right Flipped off LabelPosition south } Component { Type Ground Name "Ground2" Show off Position [975, 850] Direction up Flipped off LabelPosition east } Component { Type Ground Name "Ground3" Show off Position [500, 665] Direction up Flipped off LabelPosition east } Component { Type Voltmeter Name "iref1" Show on Position [395, 590] Direction down Flipped off LabelPosition east } Component { Type Gain Name "Gain" Show on Position [330, 590] Direction left Flipped off LabelPosition north Parameter { Variable "K" Value "-1" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Ground Name "Ground5" Show off Position [395, 665] Direction up Flipped off LabelPosition east } Component { Type Capacitor Name "Cp1" Show on Position [500, 585] Direction up Flipped off LabelPosition east Parameter { Variable "C" Value "Cp_TL431" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Resistor Name "R6" Show on Position [925, 565] Direction right Flipped on LabelPosition south Parameter { Variable "R" Value "Rfl" Show on } } Component { Type Capacitor Name "C2" Show on Position [865, 590] Direction down Flipped on LabelPosition west Parameter { Variable "C" Value "1e-6" Show on } Parameter { Variable "v_init" Value "Vz" Show on } } Component { Type Ground Name "Ground6" Show off Position [865, 625] Direction up Flipped off LabelPosition east } Component { Type Reference SrcComponent "Components/Electrical/Power Semiconductors/Z1" Name "Z1" Show on Position [750, 590] Direction left Flipped off LabelPosition east Frame [-10, -10; 10, 10] LabelFrame [-10, -10; 10, 10] Parameter { Variable "Vz" Value "Vz" Show on } Parameter { Variable "Rz" Value "0.01" Show off } Parameter { Variable "Vf" Value "0.9" Show off } Parameter { Variable "Rf" Value "0.01" Show off } Terminal { Type Port Position [15, 0] Direction right } Terminal { Type Port Position [-15, 0] Direction left } } Component { Type Ground Name "Ground7" Show off Position [750, 625] Direction up Flipped off LabelPosition east } Component { Type Reference SrcComponent "Components/Control/Logical/SR Flip-flop" Name "SR Flip-flop2" Show on Position [505, 800] Direction up Flipped off LabelPosition south Frame [-20, -20; 20, 20] Parameter { Variable "x_init" Value "0" Show off } Terminal { Type Input Position [-20, 10] Direction left } Terminal { Type Input Position [-20, -10] Direction left } Terminal { Type Output Position [24, -10] Direction right } Terminal { Type Output Position [24, 10] Direction right } } Component { Type PulseGenerator Name "Pulse\nGenerator2" Show on Position [425, 725] Direction right Flipped off LabelPosition south Parameter { Variable "Hi" Value "1" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "fsw" Show off } Parameter { Variable "DutyCycle" Value "0.01" Show off } Parameter { Variable "Delay" Value "0" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Comparator Name "Comparator2" Show on Position [350, 810] Direction right Flipped off LabelPosition south } Component { Type Sum Name "Sum3" Show off Position [280, 895] Direction left Flipped off LabelPosition east Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type TriangleGenerator Name "Artifical Ramp2" Show on Position [330, 895] Direction left Flipped off LabelPosition north Parameter { Variable "Min" Value "0" Show off } Parameter { Variable "Max" Value "Va" Show off } Parameter { Variable "f" Value "fsw" Show off } Parameter { Variable "DutyCycle" Value "1" Show off } Parameter { Variable "Delay" Value "0" Show off } } Component { Type Saturation Name "Saturation" Show on Position [220, 815] Direction right Flipped off LabelPosition south Parameter { Variable "UpperLimit" Value "VM_i*0.99" Show on } Parameter { Variable "LowerLimit" Value "VM_i*0.01" Show on } } Component { Type From Name "From1" Show off Position [280, 940] Direction up Flipped off LabelPosition east Parameter { Variable "Tag" Value "Ipri" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Goto Name "Goto7" Show off Position [565, 790] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "PWM" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type VoltageSource Name "Vout1" Show on Position [1110, 710] Direction down Flipped on LabelPosition east Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "1" Show off } } Component { Type From Name "From" Show off Position [1075, 710] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vo" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Inductor Name "Lm" Show on Position [525, 140] Direction up Flipped off LabelPosition east Parameter { Variable "L" Value "Lm" Show on } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Capacitor Name "C1" Show on Position [745, 195] Direction down Flipped on LabelPosition west Parameter { Variable "C" Value "Cout" Show on } Parameter { Variable "v_init" Value "Vout" Show on } } Component { Type Diode Name "D1" Show off Position [665, 90] Direction right Flipped on LabelPosition north Parameter { Variable "Vf" Value "0.6" Show off } Parameter { Variable "Ron" Value "0.04" 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 Transformer Name "Tr3" Show on Position [610, 155] Direction right Flipped on LabelPosition south Parameter { Variable "Windings" Value "[1 1]" Show off } Parameter { Variable "n" Value "[primary_turns_number -secondary_turns_number]" Show off } Parameter { Variable "Polarity" Value "+" Show off } Parameter { Variable "Lm" Value "inf" Show off } Parameter { Variable "im0" Value "0" Show off } } Component { Type Resistor Name "R2" Show off Position [855, 165] Direction up Flipped on LabelPosition east Parameter { Variable "R" Value "Rload50" Show on } } Component { Type Mosfet Name "FET1" Show off Position [195, 260] Direction down Flipped on LabelPosition west Parameter { Variable "Ron" Value "1" Show off } 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 Resistor Name "Rs" Show on Position [195, 355] Direction up Flipped off LabelPosition east Parameter { Variable "R" Value "Rsense" Show on } } Component { Type Voltmeter Name "Vm1" Show off Position [280, 360] Direction up Flipped off LabelPosition west } Component { Type DCVoltageSource Name "Vdc" Show on Position [115, 250] Direction down Flipped on LabelPosition east Parameter { Variable "V" Value "Vinput" Show on } } Component { Type Label Name "Label3" Show off Position [855, 70] Direction up Flipped off LabelPosition east Parameter { Variable "Tag" Value "Vout" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Goto Name "Goto" Show off Position [340, 360] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Ipri" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type From Name "From2" Show off Position [245, 260] Direction left Flipped off LabelPosition north Parameter { Variable "Tag" Value "PWM" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Ground Name "Ground" Show off Position [855, 270] Direction up Flipped off LabelPosition east } Component { Type Resistor Name "R7" Show off Position [965, 270] Direction down Flipped off LabelPosition west Parameter { Variable "R" Value "Rload50" Show on } } Component { Type Switch Name "S1" Show on Position [965, 315] Direction down Flipped off LabelPosition east Parameter { Variable "s_init" Value "0" Show off } } Component { Type PulseGenerator Name "50% to 100%" Show on Position [875, 315] Direction right Flipped off LabelPosition south Parameter { Variable "Hi" Value "1" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "fdisturbance" Show off } Parameter { Variable "DutyCycle" Value "0.5" Show off } Parameter { Variable "Delay" Value "0" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Ground Name "Ground8" Show off Position [965, 375] Direction up Flipped off LabelPosition east } Component { Type Resistor Name "R3" Show off Position [745, 140] Direction up Flipped on LabelPosition east Parameter { Variable "R" Value "Cout_ESR" Show on } } Component { Type Scope Name "Scope" Show on Position [425, 310] Direction up Flipped off LabelPosition south Location [971, 693; 1382, 1128] State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA" "G0AQQByAGUAYQAAAAAA/////wAAAIMA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//" "///wAAAJcA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAACXAP///wAAAAMAAAAAAAAAAPw" "BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABxAP///wAAAmkAAAJqAAAA" "BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA" "AAAAA==" SavedViews "AAAAAgAAAAA=" HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB" "QAAAGQAAAAEAAAAZAAAAAMAAABkAAAAAgAAAGQAAAABAAAAZAAAAAkAAABkAAAACAAAAGQAAAAHAA" "AAZAAAAAYAAABkAAAAkgAAAAsBAAABAAAAAAAAAAAAAAAAlv////8AAACBAAAAAAAAAAsAAABdAAA" "AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA" "AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA" "AA1AAAAAQAAAAAAAAPoAAAAADU=" PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA" "AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" Axes "2" TimeRange "0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" ShowLegend "1" Axis { Name "Ipri" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Vout" 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 } } } Component { Type From Name "From3" Show off Position [340, 325] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vo" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Voltmeter Name "Vo" Show on Position [1055, 195] Direction up Flipped off LabelPosition west } Component { Type Ground Name "Ground1" Show off Position [1055, 245] Direction up Flipped off LabelPosition east } Component { Type Goto Name "Goto2" Show off Position [1095, 195] Direction right Flipped off LabelPosition south Parameter { Variable "Tag" Value "Vo" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Gain Name "EA Gain" Show on Position [170, 690] Direction down Flipped off LabelPosition west Parameter { Variable "K" Value "EA_gain" Show off } Parameter { Variable "Multiplication" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Connection { Type Wire SrcComponent "Cz" SrcTerminal 1 Points [645, 735] Branch { DstComponent "TL431" DstTerminal 2 } Branch { DstComponent "Rled" DstTerminal 1 } } Connection { Type Wire SrcComponent "Cz" SrcTerminal 2 DstComponent "Rz" DstTerminal 2 } Connection { Type Wire SrcComponent "R4" SrcTerminal 1 Points [975, 565] Branch { DstComponent "R6" DstTerminal 2 } Branch { Points [1110, 565] DstComponent "Vout1" DstTerminal 1 } } Connection { Type Wire SrcComponent "R4" SrcTerminal 2 Points [975, 765] Branch { Points [875, 765] Branch { DstComponent "TL431" DstTerminal 1 } Branch { Points [875, 735] DstComponent "Rz" DstTerminal 1 } } Branch { DstComponent "R5" DstTerminal 1 } } Connection { Type Wire SrcComponent "R5" SrcTerminal 2 Points [975, 830] Branch { Points [645, 830] DstComponent "TL431" DstTerminal 3 } Branch { DstComponent "Ground2" DstTerminal 1 } Branch { Points [1110, 830] DstComponent "Vout1" DstTerminal 2 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 1 Points [680, 565] Branch { Points [750, 565] Branch { Points [865, 565] Branch { DstComponent "R6" DstTerminal 1 } Branch { DstComponent "C2" DstTerminal 1 } } Branch { DstComponent "Z1" DstTerminal 1 } } Branch { DstComponent "Rbias" DstTerminal 2 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 2 Points [645, 630] Branch { DstComponent "Rled" DstTerminal 2 } Branch { Points [680, 630] DstComponent "Rbias" DstTerminal 1 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 3 Points [585, 615; 500, 615] Branch { DstComponent "Ground3" DstTerminal 1 } Branch { DstComponent "Cp1" DstTerminal 2 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 4 Points [500, 565] Branch { DstComponent "Cp1" DstTerminal 1 } Branch { DstComponent "Rpullup" DstTerminal 1 } Branch { Points [395, 565] DstComponent "iref1" DstTerminal 2 } } Connection { Type Wire SrcComponent "V_dc1" SrcTerminal 1 Points [500, 470] DstComponent "Rpullup" DstTerminal 2 } Connection { Type Wire SrcComponent "V_dc1" SrcTerminal 2 DstComponent "Ground4" DstTerminal 1 } Connection { Type Wire SrcComponent "iref1" SrcTerminal 1 DstComponent "Ground5" DstTerminal 1 } Connection { Type Signal SrcComponent "iref1" SrcTerminal 3 DstComponent "Gain" DstTerminal 1 } Connection { Type Wire SrcComponent "Ground6" SrcTerminal 1 DstComponent "C2" DstTerminal 2 } Connection { Type Wire SrcComponent "Z1" SrcTerminal 2 DstComponent "Ground7" DstTerminal 1 } Connection { Type Signal SrcComponent "Pulse\nGenerator2" SrcTerminal 1 Points [455, 725; 455, 790] DstComponent "SR Flip-flop2" DstTerminal 2 } Connection { Type Signal SrcComponent "Artifical Ramp2" SrcTerminal 1 DstComponent "Sum3" DstTerminal 3 } Connection { Type Signal SrcComponent "Comparator2" SrcTerminal 3 DstComponent "SR Flip-flop2" DstTerminal 1 } Connection { Type Signal SrcComponent "Sum3" SrcTerminal 1 Points [280, 805] DstComponent "Comparator2" DstTerminal 1 } Connection { Type Signal SrcComponent "Saturation" SrcTerminal 2 DstComponent "Comparator2" DstTerminal 2 } Connection { Type Signal SrcComponent "SR Flip-flop2" SrcTerminal 3 DstComponent "Goto7" DstTerminal 1 } Connection { Type Signal SrcComponent "From" SrcTerminal 1 DstComponent "Vout1" DstTerminal 3 } Connection { Type Wire SrcComponent "D1" SrcTerminal 1 Points [625, 90; 625, 135] DstComponent "Tr3" DstTerminal 3 } Connection { Type Wire SrcComponent "C1" SrcTerminal 2 Points [745, 240] Branch { Points [855, 240] Branch { DstComponent "R2" DstTerminal 1 } Branch { DstComponent "Ground" DstTerminal 1 } } Branch { Points [620, 240] DstComponent "Tr3" DstTerminal 4 } } Connection { Type Wire SrcComponent "Rs" SrcTerminal 2 Points [195, 390] Branch { Points [115, 390] DstComponent "Vdc" DstTerminal 2 } Branch { Points [280, 390] DstComponent "Vm1" DstTerminal 2 } } Connection { Type Wire SrcComponent "D1" SrcTerminal 2 Points [745, 90] Branch { Points [855, 90] Branch { DstComponent "R2" DstTerminal 2 } Branch { DstComponent "Label3" DstTerminal 1 } Branch { Points [965, 90] Branch { DstComponent "R7" DstTerminal 2 } Branch { Points [1055, 90] DstComponent "Vo" DstTerminal 1 } } } Branch { DstComponent "R3" DstTerminal 2 } } Connection { Type Wire SrcComponent "Rs" SrcTerminal 1 Points [195, 325] Branch { DstComponent "FET1" DstTerminal 2 } Branch { Points [280, 325] DstComponent "Vm1" DstTerminal 1 } } Connection { Type Wire SrcComponent "Tr3" SrcTerminal 1 Points [595, 135; 595, 90; 525, 90] Branch { Points [115, 90] DstComponent "Vdc" DstTerminal 1 } Branch { DstComponent "Lm" DstTerminal 1 } } Connection { Type Wire SrcComponent "Lm" SrcTerminal 2 Points [525, 200] Branch { Points [195, 200] DstComponent "FET1" DstTerminal 1 } Branch { Points [595, 200; 595, 165] DstComponent "Tr3" DstTerminal 2 } } Connection { Type Signal SrcComponent "From2" SrcTerminal 1 DstComponent "FET1" DstTerminal 3 } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 Points [305, 360] Branch { DstComponent "Goto" DstTerminal 1 } Branch { Points [305, 305] DstComponent "Scope" DstTerminal 1 } } Connection { Type Wire SrcComponent "S1" SrcTerminal 2 DstComponent "R7" DstTerminal 1 } Connection { Type Wire SrcComponent "S1" SrcTerminal 1 DstComponent "Ground8" DstTerminal 1 } Connection { Type Signal SrcComponent "50% to 100%" SrcTerminal 1 DstComponent "S1" DstTerminal 3 } Connection { Type Wire SrcComponent "R3" SrcTerminal 1 DstComponent "C1" DstTerminal 1 } Connection { Type Signal SrcComponent "From3" SrcTerminal 1 Points [370, 325; 370, 315] DstComponent "Scope" DstTerminal 2 } Connection { Type Wire SrcComponent "Vo" SrcTerminal 2 DstComponent "Ground1" DstTerminal 1 } Connection { Type Signal SrcComponent "Vo" SrcTerminal 3 DstComponent "Goto2" DstTerminal 1 } Connection { Type Signal SrcComponent "From1" SrcTerminal 1 DstComponent "Sum3" DstTerminal 2 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 Points [170, 590] DstComponent "EA Gain" DstTerminal 1 } Connection { Type Signal SrcComponent "EA Gain" SrcTerminal 2 Points [170, 815] DstComponent "Saturation" DstTerminal 1 } } } DemoSignature "/3CnK4xP7HXPdRqH1Runaf0pJhtNKdGBgMNrb+0EIKg="