Model { Name "fully_converter_ramp" Version 5.1 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off SortedOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks on Created "Wed Jan 27 17:29:48 2010" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "kalias" ModifiedDateFormat "%" LastModifiedDate "Mon Sep 06 14:31:02 2010" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode23tb" SolverMode "Auto" StartTime "0.0" StopTime "0.08" MaxOrder 5 MaxStep "1e-5" MinStep "1e-6" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-3" AbsTol "auto" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints on MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType on ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Courier New" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType ComplexToMagnitudeAngle Output "Magnitude and angle" } Block { BlockType ComplexToRealImag Output "Real and imag" } Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType DataTypeConversion DataType "auto" SaturateOnIntegerOverflow on } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType Display Format "short" Decimation "10" Floating off } Block { BlockType EnablePort StatesWhenEnabling "held" ShowOutputPort off ZeroCross on } Block { BlockType From } Block { BlockType Fcn Expr "sin(u[1])" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Goto } Block { BlockType Inport Port "1" PortDimensions "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType Logic Operator "AND" Inputs "2" ShowAdditionalParam off AllPortsSameDT on OutDataTypeMode "Logical (see Advanced Sim. Parameters)" LogicDataType "uint(8)" } Block { BlockType Lookup InputValues "[-4:5]" OutputValues " rand(1,10)-0.5" ShowAdditionalParam off LookUpMeth "Interpolation-Extrapolation" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Mux Inputs "4" DisplayOption "none" } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType PMComponent SubClassName "unknown" PortType "blob" } Block { BlockType PMIOPort } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType RelationalOperator Operator ">=" ShowAdditionalParam off InputSameDT on LogicOutDataTypeMode "Logical (see Advanced Sim. Parameters)" LogicDataType "uint(8)" ZeroCross on } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off } Block { BlockType Selector InputType "Vector" ElementSrc "Internal" Elements "1" RowSrc "Internal" Rows "1" ColumnSrc "Internal" Columns "1" InputPortWidth "-1" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Sin SineType "Time based" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" VectorParams1D on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on } Block { BlockType Terminator } Block { BlockType TransportDelay DelayTime "1" InitialInput "0" BufferSize "1024" PadeOrder "0" TransDelayFeedthrough off } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "fully_converter_ramp" Location [0, 50, 1024, 750] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "125" ReportName "simulink-default.rpt" Block { BlockType Reference Name "AC Voltage Source" Description "source block" Ports [0, 0, 0, 0, 0, 1, 1] Position [188, 235, 212, 270] Orientation "up" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Electrical\nSources/AC Voltage Source" SourceType "AC Voltage Source" Amplitude "230*sqrt(2)" Phase "0" Frequency "50" SampleTime "0" Measurements "None" } Block { BlockType Constant Name "Constant" Position [15, 370, 45, 400] ShowName off } Block { BlockType Reference Name "Detailed Thyristor" Ports [1, 1, 0, 0, 0, 1, 1] Position [386, 80, 439, 180] Orientation "up" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Power\nElectronics/Detailed Thyristor" SourceType "Detailed Thyristor" Ron "0.001" Lon "0" Vf "0.8" IL "0.1" Tq "10e-6" IC "0" Rs "500" Cs "250e-9" Measurements on } Block { BlockType Reference Name "Detailed Thyristor1" Ports [1, 1, 0, 0, 0, 1, 1] Position [385, 350, 440, 450] Orientation "up" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Power\nElectronics/Detailed Thyristor" SourceType "Detailed Thyristor" Ron "0.001" Lon "0" Vf "0.8" IL "0.1" Tq "10e-6" IC "0" Rs "500" Cs "250e-9" Measurements on } Block { BlockType Reference Name "Detailed Thyristor2" Ports [1, 1, 0, 0, 0, 1, 1] Position [517, 80, 573, 180] Orientation "up" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Power\nElectronics/Detailed Thyristor" SourceType "Detailed Thyristor" Ron "0.001" Lon "0" Vf "0.8" IL "0.1" Tq "10e-6" IC "0" Rs "500" Cs "250e-9" Measurements on } Block { BlockType Reference Name "Detailed Thyristor3" Ports [1, 1, 0, 0, 0, 1, 1] Position [517, 360, 573, 460] Orientation "up" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Power\nElectronics/Detailed Thyristor" SourceType "Detailed Thyristor" Ron "0.001" Lon "0" Vf "0.8" IL "0.1" Tq "10e-6" IC "0" Rs "500" Cs "250e-9" Measurements on } Block { BlockType Display Name "Display" Ports [1] Position [950, 160, 1040, 190] FontSize 10 Decimation "1" } Block { BlockType Reference Name "Fourier" Ports [1, 2] Position [840, 162, 910, 218] FontSize 10 SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" f1 "50" n "0" } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [210, 341, 240, 399] ShowName off InputSameDT off } Block { BlockType RelationalOperator Name "Relational\nOperator1" Position [210, 416, 240, 474] ShowName off InputSameDT off } Block { BlockType Reference Name "Repeating\nSequence" Ports [0, 1] Position [70, 340, 165, 370] ShowName off SourceBlock "simulink/Sources/Repeating\nSequence" SourceType "Repeating table" rep_seq_t "[0 .01 0.01 0.02]" rep_seq_y "[0 5 0 0]" } Block { BlockType Reference Name "Repeating\nSequence1" Ports [0, 1] Position [80, 415, 175, 445] ShowName off SourceBlock "simulink/Sources/Repeating\nSequence" SourceType "Repeating table" rep_seq_t "[0 0.01 0.02]" rep_seq_y "[0 0 5]" } Block { BlockType Scope Name "Scope1" Ports [4] Position [965, 483, 995, 517] ShowName off Location [103, 60, 1247, 813] Open off NumInputPorts "4" List { ListType AxesTitles axes1 "OUTPUT DC VOLTAGE" axes2 "PULSES TO T1 AND T3" axes3 "PULSES TO T2 AND T4" axes4 "VOLTAGE ACROSS T3" } List { ListType SelectedSignals axes1 "" axes2 "" axes3 "" axes4 "" } YMin "-100~-2~-2~-350" YMax "350~2~2~350" DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType Reference Name "Series RLC Branch" Ports [0, 0, 0, 0, 0, 1, 1] Position [640, 215, 670, 285] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "powerlib/Elements/Series RLC Branch" SourceType "Series RLC Branch" PhysicalDomain "powersysdomain" SubClassName "unknown" PortType "p1" LConnTagsString "__new0" RConnTagsString "__new0" Resistance "10" Inductance "8e-3" Capacitance "inf" Measurements "None" } Block { BlockType SubSystem Name "Voltage Measurement" Tag "PoWeRsYsTeMmEaSuReMeNt" Ports [0, 1, 0, 0, 0, 2] Position [740, 90, 775, 445] ShowName off AttributesFormatString "\\n" AncestorBlock "powerlib/Measurements/Voltage Measurement" CopyFcn "powericon('psbloadfunction',gcbh,'Measurement B" "lock','VerifyPhasor');" LoadFcn "powericon('psbloadfunction',gcbh,'Measurement B" "lock','');" PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelCloseFcn" "','');" InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB" "locks','Measurement Block');" CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn','')" ";" TreatAsAtomicUnit off MaskType "Voltage Measurement" MaskDescription "Ideal voltage measurement." MaskHelp "web(psbhelp);" MaskPromptString "Phasor simulation|Output signal :|Equivalent ci" "rcuit" MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-Angl" "e|Magnitude),edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "off,off,off" MaskVisibilityString "off,on,off" MaskToolTipString "on,on,on" MaskVarAliasString ",," MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBequivalent" "=@3;" MaskInitialization "switch OutputType\ncase 1\n OutputSelection " "= 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelection =" "[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputSelec" "tion =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n Outpu" "tSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Phasor" "Simulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = Normal" "Mode;\nend\n" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "off|Magnitude|1" System { Name "Voltage Measurement" Location [206, 474, 665, 687] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Mux Name "Mux" Ports [2, 1] Position [275, 121, 280, 179] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SubSystem Name "Phasor Measurements" Ports [1, 1, 1] Position [145, 123, 250, 147] BackgroundColor "green" TreatAsAtomicUnit on System { Name "Phasor Measurements" Location [255, 525, 861, 796] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "measure" Position [70, 28, 100, 42] } Block { BlockType EnablePort Name "Enable" Ports [] Position [20, 15, 40, 35] } Block { BlockType Gain Name "180/pi" Position [225, 105, 245, 125] Gain "180/pi" } Block { BlockType ComplexToMagnitudeAngle Name "Complex to\nMagnitude-Angle" Ports [1, 2] Position [140, 85, 195, 125] ShowName off Output "Magnitude and angle" } Block { BlockType ComplexToRealImag Name "Complex to\nReal-Imag" Ports [1, 2] Position [140, 45, 195, 85] ShowName off Output "Real and imag" } Block { BlockType Mux Name "Mux2" Ports [5, 1] Position [275, 23, 280, 127] ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [315, 51, 350, 99] Elements "OutputSelection" InputPortWidth "5" } Block { BlockType Outport Name "options" Position [380, 68, 410, 82] InitialOutput "0" } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "measure" SrcPort 1 Points [0, 0; 5, 0] Branch { Points [0, 30] Branch { Points [0, 40] DstBlock "Complex to\nMagnitude-Angle" DstPort 1 } Branch { DstBlock "Complex to\nReal-Imag" DstPort 1 } } Branch { DstBlock "Mux2" DstPort 1 } } Line { SrcBlock "Complex to\nReal-Imag" SrcPort 1 DstBlock "Mux2" DstPort 2 } Line { SrcBlock "Complex to\nReal-Imag" SrcPort 2 DstBlock "Mux2" DstPort 3 } Line { SrcBlock "Complex to\nMagnitude-Angle" SrcPort 1 DstBlock "Mux2" DstPort 4 } Line { SrcBlock "Complex to\nMagnitude-Angle" SrcPort 2 DstBlock "180/pi" DstPort 1 } Line { SrcBlock "180/pi" SrcPort 1 DstBlock "Mux2" DstPort 5 } Line { SrcBlock "Selector" SrcPort 1 DstBlock "options" DstPort 1 } } } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [305, 128, 370, 172] Elements "SelectionMode" InputPortWidth "length(OutputSelection)+1" } Block { BlockType Constant Name "Simulation method" Position [140, 85, 250, 105] Orientation "down" BackgroundColor "magenta" NamePlacement "alternate" ShowName off Value "PhasorSimulation" } Block { BlockType PMComponent Name "VoltageMeasurement" Ports [0, 0, 0, 0, 0, 1, 1] Position [80, 21, 145, 49] PhysicalDomain "powersysdomain" PortType "p1" LConnTagsString "+" RConnTagsString "-" MaskType "InnerPowersysBlock" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType SubSystem Name "source" Ports [0, 1] Position [25, 124, 95, 146] TreatAsAtomicUnit off MaskInitialization "pss=powericon('loadsavedata','fully_convert" "er_ramp','load');if isempty(pss),A=0;B=0;C=0;D=0;x0=0;Rswitch=0;TypeSwitch=0;" "Ts=0;YSwitchCurrent=-1;else,A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rswitch" "=pss.Rswitch;TypeSwitch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCurrent" ";end" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "source" Location [442, 172, 1084, 578] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Mux Name "MasterMux" Ports [2, 1] Position [315, 106, 340, 144] NamePlacement "alternate" Inputs "[-1 4]" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [140, 67, 170, 163] Inputs "[4 1 4]" } Block { BlockType Mux Name "MuxSwitch" Ports [1, 1] Position [235, 126, 265, 214] Inputs "1" } Block { BlockType Mux Name "MuxVf" Ports [1, 1] Position [265, 256, 295, 344] Orientation "left" Inputs "1" } Block { BlockType Selector Name "SelectorVf" Ports [1, 1] Position [225, 287, 245, 313] Orientation "left" Elements "[1 2 3 4]" InputPortWidth "4" } Block { BlockType "S-Function" Name "State-Space" Ports [1, 1] Position [375, 103, 455, 147] FunctionName "sfun_psbcontc" Parameters "A,B,C,D,x0,Rswitch,YSwitchCurrent" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Terminator Name "T" Position [195, 335, 215, 355] Orientation "down" NamePlacement "alternate" } Block { BlockType SubSystem Name "detailed_thyristor (logical)" Ports [1, 3] Position [335, 229, 390, 261] Orientation "left" TreatAsAtomicUnit off System { Name "detailed_thyristor (logical)" Location [25, 502, 539, 757] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [20, 25, 45, 45] } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [75, 20, 115, 50] Elements "[1 2 3 4]" InputPortWidth "6" } Block { BlockType SubSystem Name "froms" Ports [0, 1] Position [75, 74, 115, 106] TreatAsAtomicUnit off System { Name "froms" Location [5, 415, 371, 622] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType From Name "From1" Position [20, 30, 75, 60] GotoTag "tp523948" } Block { BlockType From Name "From2" Position [20, 65, 75, 95] GotoTag "tp523951" } Block { BlockType From Name "From3" Position [20, 100, 75, 130] GotoTag "tp523954" } Block { BlockType From Name "From4" Position [20, 135, 75, 165] GotoTag "tp523957" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [235, 97, 270, 133] } Block { BlockType Outport Name "Out" Position [315, 105, 335, 125] InitialOutput "0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Out" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "From4" SrcPort 1 DstBlock "Mux" DstPort 4 } } } Block { BlockType SubSystem Name "gotos" Ports [1] Position [385, 138, 430, 172] TreatAsAtomicUnit off System { Name "gotos" Location [193, 281, 559, 488] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [15, 90, 35, 110] } Block { BlockType Demux Name "Demux" Ports [1, 4] Position [100, 82, 135, 118] Outputs "[2 2 2 2]" } Block { BlockType Goto Name "Goto1" Position [220, 30, 275, 60] GotoTag "tp523950" TagVisibility "global" } Block { BlockType Goto Name "Goto2" Position [220, 65, 275, 95] GotoTag "tp523953" TagVisibility "global" } Block { BlockType Goto Name "Goto3" Position [220, 100, 275, 130] GotoTag "tp523956" TagVisibility "global" } Block { BlockType Goto Name "Goto4" Position [220, 135, 275, 165] GotoTag "tp523959" TagVisibility "global" } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [55, 72, 75, 128] Elements "[1 5 2 6 3 7 4 8]" InputPortWidth "8" } Line { SrcBlock "Selector" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "In" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Goto2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "Demux" SrcPort 4 DstBlock "Goto4" DstPort 1 } } } Block { BlockType Reference Name "model" Ports [2, 4] Position [250, 22, 315, 68] BackgroundColor "lightBlue" DropShadow on SourceBlock "powerlib_models/Continuous/detailed" "_thyristor (logical)" SourceType "" Nsw "4" Vf "[0.8 0.8 0.8 0.8]" Rsw "[0.001 0.001 0.001 0.001]" } Block { BlockType Outport Name "Out1" Position [395, 18, 420, 42] InitialOutput "0" } Block { BlockType Outport Name "Out2" Position [395, 88, 420, 112] Port "2" InitialOutput "0" } Block { BlockType Outport Name "Out3" Position [395, 208, 420, 232] Port "3" InitialOutput "0" } Line { SrcBlock "In" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "Selector" SrcPort 1 DstBlock "model" DstPort 1 } Line { SrcBlock "model" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "model" SrcPort 2 DstBlock "Out2" DstPort 1 } Line { SrcBlock "model" SrcPort 4 DstBlock "Out3" DstPort 1 } Line { SrcBlock "model" SrcPort 3 DstBlock "gotos" DstPort 1 } Line { SrcBlock "froms" SrcPort 1 DstBlock "model" DstPort 2 } } } Block { BlockType SubSystem Name "electrical sources" Ports [0, 1] Position [50, 102, 75, 128] TreatAsAtomicUnit off System { Name "electrical sources" Location [49, 463, 473, 721] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Mux Name "Mux" Ports [1, 1] Position [165, 119, 205, 151] Inputs "[-1]" } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [230, 125, 265, 145] InputPortWidth "2" } Block { BlockType From Name "from1" Position [20, 30, 75, 60] GotoTag "tp523965" } Block { BlockType Outport Name "Out" Position [300, 123, 325, 147] InitialOutput "0" } Line { SrcBlock "Selector" SrcPort 1 DstBlock "Out" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "from1" SrcPort 1 DstBlock "Mux" DstPort 1 } } } Block { BlockType SubSystem Name "transit" Ports [2, 1] Position [540, 110, 575, 165] TreatAsAtomicUnit off System { Name "transit" Location [475, 381, 915, 821] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [30, 150, 50, 170] } Block { BlockType Inport Name "signals" Position [35, 320, 55, 340] Port "2" } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [145, 62, 180, 258] Outputs "[1 1]" } Block { BlockType Goto Name "Goto2" Position [330, 115, 360, 145] GotoTag "tp230293" TagVisibility "global" } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [75, 145, 105, 175] Elements "[5 6]" InputPortWidth "6" } Block { BlockType Terminator Name "Terminator" Position [55, 365, 75, 385] Orientation "down" } Block { BlockType Outport Name "Out" Position [150, 15, 170, 35] Orientation "left" InitialOutput "0" } Line { SrcBlock "signals" SrcPort 1 Points [5, 0] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Selector" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "In" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "Out" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Goto2" DstPort 1 } } } Block { BlockType Outport Name "Out" Position [595, 128, 620, 152] InitialOutput "0" } Line { SrcBlock "SelectorVf" SrcPort 1 Points [0, 0] Branch { Points [-15, 0] DstBlock "T" DstPort 1 } Branch { DstBlock "Mux" DstPort 3 } } Line { SrcBlock "MuxVf" SrcPort 1 DstBlock "SelectorVf" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "MasterMux" DstPort 1 } Line { SrcBlock "MuxSwitch" SrcPort 1 Points [15, 0; 0, -35] DstBlock "MasterMux" DstPort 2 } Line { SrcBlock "MasterMux" SrcPort 1 DstBlock "State-Space" DstPort 1 } Line { SrcBlock "State-Space" SrcPort 1 Points [0, 0] Branch { DstBlock "transit" DstPort 1 } Branch { DstBlock "detailed_thyristor (logical)" DstPort 1 } Branch { DstBlock "transit" DstPort 2 } } Line { SrcBlock "transit" SrcPort 1 DstBlock "Out" DstPort 1 } Line { SrcBlock "detailed_thyristor (logical)" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "detailed_thyristor (logical)" SrcPort 2 DstBlock "MuxSwitch" DstPort 1 } Line { SrcBlock "detailed_thyristor (logical)" SrcPort 3 DstBlock "MuxVf" DstPort 1 } Line { SrcBlock "electrical sources" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType PMIOPort Name "+" Position [15, 28, 45, 42] Port "1" Side "left" } Block { BlockType PMIOPort Name "-" Position [190, 24, 215, 46] Orientation "left" Port "2" Side "left" } Block { BlockType Outport Name "v" Position [405, 139, 425, 161] FontSize 16 InitialOutput "0" } Line { LineType "Connection" SrcBlock "-" SrcPort RConn1 Points [0, 0] DstBlock "VoltageMeasurement" DstPort RConn1 } Line { LineType "Connection" SrcBlock "+" SrcPort RConn1 Points [0, 0] DstBlock "VoltageMeasurement" DstPort LConn1 } Line { SrcBlock "Simulation method" SrcPort 1 DstBlock "Phasor Measurements" DstPort enable } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "Phasor Measurements" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Selector" SrcPort 1 DstBlock "v" DstPort 1 } Line { SrcBlock "source" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Phasor Measurements" DstPort 1 } Branch { Points [0, 30] DstBlock "Mux" DstPort 2 } } } } Block { BlockType SubSystem Name "Voltage Measurement1" Tag "PoWeRsYsTeMmEaSuReMeNt" Ports [0, 1, 0, 0, 0, 2] Position [605, 77, 635, 128] ShowName off AttributesFormatString "\\n" AncestorBlock "powerlib/Measurements/Voltage Measurement" CopyFcn "powericon('psbloadfunction',gcbh,'Measurement B" "lock','VerifyPhasor');" LoadFcn "powericon('psbloadfunction',gcbh,'Measurement B" "lock','');" PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelCloseFcn" "','');" InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB" "locks','Measurement Block');" CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn','')" ";" TreatAsAtomicUnit off MaskType "Voltage Measurement" MaskDescription "Ideal voltage measurement." MaskHelp "web(psbhelp);" MaskPromptString "Phasor simulation|Output signal :|Equivalent ci" "rcuit" MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-Angl" "e|Magnitude),edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "off,off,off" MaskVisibilityString "off,on,off" MaskToolTipString "on,on,on" MaskVarAliasString ",," MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBequivalent" "=@3;" MaskInitialization "switch OutputType\ncase 1\n OutputSelection " "= 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelection =" "[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputSelec" "tion =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n Outpu" "tSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Phasor" "Simulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = Normal" "Mode;\nend\n" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "off|Magnitude|0" System { Name "Voltage Measurement1" Location [206, 474, 665, 687] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Mux Name "Mux" Ports [2, 1] Position [275, 121, 280, 179] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SubSystem Name "Phasor Measurements" Ports [1, 1, 1] Position [145, 123, 250, 147] BackgroundColor "green" TreatAsAtomicUnit on System { Name "Phasor Measurements" Location [255, 525, 861, 796] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "measure" Position [70, 28, 100, 42] } Block { BlockType EnablePort Name "Enable" Ports [] Position [20, 15, 40, 35] } Block { BlockType Gain Name "180/pi" Position [225, 105, 245, 125] Gain "180/pi" } Block { BlockType ComplexToMagnitudeAngle Name "Complex to\nMagnitude-Angle" Ports [1, 2] Position [140, 85, 195, 125] ShowName off Output "Magnitude and angle" } Block { BlockType ComplexToRealImag Name "Complex to\nReal-Imag" Ports [1, 2] Position [140, 45, 195, 85] ShowName off Output "Real and imag" } Block { BlockType Mux Name "Mux2" Ports [5, 1] Position [275, 23, 280, 127] ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [315, 51, 350, 99] Elements "OutputSelection" InputPortWidth "5" } Block { BlockType Outport Name "options" Position [380, 68, 410, 82] InitialOutput "0" } Line { SrcBlock "Selector" SrcPort 1 DstBlock "options" DstPort 1 } Line { SrcBlock "180/pi" SrcPort 1 DstBlock "Mux2" DstPort 5 } Line { SrcBlock "Complex to\nMagnitude-Angle" SrcPort 2 DstBlock "180/pi" DstPort 1 } Line { SrcBlock "Complex to\nMagnitude-Angle" SrcPort 1 DstBlock "Mux2" DstPort 4 } Line { SrcBlock "Complex to\nReal-Imag" SrcPort 2 DstBlock "Mux2" DstPort 3 } Line { SrcBlock "Complex to\nReal-Imag" SrcPort 1 DstBlock "Mux2" DstPort 2 } Line { SrcBlock "measure" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "Mux2" DstPort 1 } Branch { Points [0, 30] Branch { DstBlock "Complex to\nReal-Imag" DstPort 1 } Branch { Points [0, 40] DstBlock "Complex to\nMagnitude-Angle" DstPort 1 } } } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Selector" DstPort 1 } } } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [305, 128, 370, 172] Elements "SelectionMode" InputPortWidth "length(OutputSelection)+1" } Block { BlockType Constant Name "Simulation method" Position [140, 85, 250, 105] Orientation "down" BackgroundColor "magenta" NamePlacement "alternate" ShowName off Value "PhasorSimulation" } Block { BlockType PMComponent Name "VoltageMeasurement" Ports [0, 0, 0, 0, 0, 1, 1] Position [80, 21, 145, 49] PhysicalDomain "powersysdomain" PortType "p1" LConnTagsString "+" RConnTagsString "-" MaskType "InnerPowersysBlock" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType From Name "source" Position [25, 124, 95, 146] GotoTag "tp230293" } Block { BlockType PMIOPort Name "+" Position [15, 28, 45, 42] Port "1" Side "left" } Block { BlockType PMIOPort Name "-" Position [190, 24, 215, 46] Orientation "left" Port "2" Side "left" } Block { BlockType Outport Name "v" Position [405, 139, 425, 161] FontSize 16 InitialOutput "0" } Line { SrcBlock "source" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [0, 30] DstBlock "Mux" DstPort 2 } Branch { DstBlock "Phasor Measurements" DstPort 1 } } Line { SrcBlock "Selector" SrcPort 1 DstBlock "v" DstPort 1 } Line { SrcBlock "Phasor Measurements" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "Simulation method" SrcPort 1 DstBlock "Phasor Measurements" DstPort enable } Line { LineType "Connection" SrcBlock "+" SrcPort RConn1 Points [0, 0] DstBlock "VoltageMeasurement" DstPort LConn1 } Line { LineType "Connection" SrcBlock "-" SrcPort RConn1 Points [0, 0] DstBlock "VoltageMeasurement" DstPort RConn1 } } } Line { LineType "Connection" Points [560, 485; 95, 0; 0, -130] Branch { ConnectType "SRC_DEST" SrcBlock "Detailed Thyristor1" SrcPort LConn1 Points [0, 20; 135, 0] } Branch { ConnectType "SRC_SRC" DstBlock "Detailed Thyristor3" DstPort LConn1 } Branch { ConnectType "DEST_SRC" DstBlock "Series RLC Branch" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [70, 0] DstBlock "Voltage Measurement" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "Detailed Thyristor2" SrcPort LConn1 Points [0, 0; 0, 30] Branch { ConnectType "DEST_SRC" Points [0, 65] Branch { ConnectType "DEST_SRC" DstBlock "Detailed Thyristor3" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [-360, 0] DstBlock "AC Voltage Source" DstPort LConn1 } } Branch { ConnectType "DEST_SRC" Points [30, 0] DstBlock "Voltage Measurement1" DstPort LConn2 } } Line { SrcBlock "Voltage Measurement" SrcPort 1 Points [25, 0] Branch { Points [0, -80] DstBlock "Fourier" DstPort 1 } Branch { Points [0, 215] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [50, 0; 0, -5; 10, 0] Branch { Points [20, 0; 0, -140; 75, 0] Branch { DstBlock "Detailed Thyristor" DstPort 1 } Branch { Points [105, 0; 0, 250] DstBlock "Detailed Thyristor3" DstPort 1 } } Branch { Points [0, 130] DstBlock "Scope1" DstPort 2 } } Line { SrcBlock "Relational\nOperator1" SrcPort 1 Points [50, 0; 0, -50; 25, 0] Branch { Points [30, 0; 0, 5] Branch { Points [0, 65] DstBlock "Detailed Thyristor1" DstPort 1 } Branch { Points [0, -135; 180, 0] DstBlock "Detailed Thyristor2" DstPort 1 } } Branch { Points [0, 110] DstBlock "Scope1" DstPort 3 } } Line { LineType "Connection" SrcBlock "AC Voltage Source" SrcPort RConn1 Points [0, -15; 225, 0] Branch { ConnectType "DEST_DEST" SrcBlock "Detailed Thyristor" SrcPort LConn1 Points [0, 0; 0, 10] } Branch { ConnectType "DEST_SRC" DstBlock "Detailed Thyristor1" DstPort RConn1 } } Line { LineType "Connection" SrcBlock "Detailed Thyristor2" SrcPort RConn1 Points [0, 0; 0, -10] Branch { ConnectType "DEST_SRC" Points [0, -20] Branch { ConnectType "DEST_SRC" Points [-135, 0] DstBlock "Detailed Thyristor" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [95, 0; 0, 145] Branch { ConnectType "DEST_DEST" SrcBlock "Voltage Measurement" SrcPort LConn1 Points [0, 0; -70, 0] } Branch { ConnectType "DEST_SRC" Points [0, 0] DstBlock "Series RLC Branch" DstPort LConn1 } } } Branch { ConnectType "DEST_SRC" Points [30, 0] DstBlock "Voltage Measurement1" DstPort LConn1 } } Line { SrcBlock "Repeating\nSequence" SrcPort 1 DstBlock "Relational\nOperator" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, 75] DstBlock "Relational\nOperator1" DstPort 2 } Branch { DstBlock "Relational\nOperator" DstPort 2 } } Line { SrcBlock "Repeating\nSequence1" SrcPort 1 DstBlock "Relational\nOperator1" DstPort 1 } Line { SrcBlock "Fourier" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Voltage Measurement1" SrcPort 1 Points [55, 0; 0, 410] DstBlock "Scope1" DstPort 4 } } }