⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 switching_source.mdl

📁 开关电源仿真模型(Matlab)
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      PMComponent
      SubClassName	      "unknown"
    }
    Block {
      BlockType		      PMIOPort
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Reference
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      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
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Selector
      InputType		      "Vector"
      IndexMode		      "One-based"
      ElementSrc	      "Internal"
      Elements		      "1"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "-1"
      IndexIsStartValue	      off
      OutputPortSize	      "1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Step
      Time		      "1"
      Before		      "0"
      After		      "1"
      SampleTime	      "-1"
      VectorParams1D	      on
      ZeroCross		      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "switching_source"
    Location		    [2, 82, 1014, 743]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "130"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      " RC "
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [719, 240, 771, 295]
      Orientation	      "down"
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Parallel RLC Branch"
      SourceType	      "Parallel RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
      RConnTagsString	      "__new0"
      BranchType	      "RC"
      Resistance	      "5"
      Inductance	      "1e-3"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "1000e-6"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "Branch voltage"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 4]
      Position		      [350, 379, 355, 461]
      BackgroundColor	      "black"
      ShowName		      off
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux1"
      Ports		      [1, 4]
      Position		      [520, 92, 525, 168]
      Orientation	      "left"
      BackgroundColor	      "black"
      ShowName		      off
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "Diode"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [560, 200, 615, 240]
      SourceBlock	      "powerlib/Power\nElectronics/Diode"
      SourceType	      "Diode"
      ShowPortLabels	      on
      Ron		      "0.001"
      Lon		      "0"
      Vf		      "0.8"
      IC		      "0"
      Rs		      "500"
      Cs		      "250e-9"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Diode1"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [560, 320, 615, 360]
      SourceBlock	      "powerlib/Power\nElectronics/Diode"
      SourceType	      "Diode"
      ShowPortLabels	      on
      Ron		      "0.001"
      Lon		      "0"
      Vf		      "0.8"
      IC		      "0"
      Rs		      "500"
      Cs		      "250e-9"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nPWM Generator\n4 pulses"
      Ports		      [1, 1]
      Position		      [550, 106, 610, 154]
      Orientation	      "left"
      BackgroundColor	      "red"
      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nPWM Generator"
      SourceType	      "Discrete PWM Generator"
      ShowPortLabels	      on
      GeneratorMode	      "2-arm  bridge (4 pulses)"
      Fc		      "1080"
      Ts		      "Ts"
      Internal		      off
      mIndex		      "0.5"
      Freq		      "50"
      Phase		      "0"
    }
    Block {
      BlockType		      From
      Name		      "From2"
      Position		      [145, 136, 185, 154]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "G1_2"
    }
    Block {
      BlockType		      From
      Name		      "From3"
      Position		      [140, 266, 180, 284]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "G2_2"
    }
    Block {
      BlockType		      From
      Name		      "From4"
      Position		      [290, 136, 330, 154]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "G3_2"
    }
    Block {
      BlockType		      From
      Name		      "From5"
      Position		      [290, 266, 330, 284]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "G4_2"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto2"
      Position		      [415, 89, 460, 111]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      GotoTag		      "G1_2"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto3"
      Position		      [415, 109, 460, 131]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      GotoTag		      "G2_2"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto4"
      Position		      [415, 129, 460, 151]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      GotoTag		      "G3_2"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto5"
      Position		      [415, 149, 460, 171]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      GotoTag		      "G4_2"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Reference
      Name		      "IGBT1_2"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [202, 160, 238, 205]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib/Power\nElectronics/IGBT//Diode"
      SourceType	      "IGBT/Diode"
      ShowPortLabels	      on
      Ron		      "1e-3"
      Rs		      "1e5"
      Cs		      "inf"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "IGBT2_2"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [192, 290, 228, 335]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib/Power\nElectronics/IGBT//Diode"
      SourceType	      "IGBT/Diode"
      ShowPortLabels	      on
      Ron		      "1e-3"
      Rs		      "1e5"
      Cs		      "inf"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "IGBT2_3"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [347, 160, 383, 205]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib/Power\nElectronics/IGBT//Diode"
      SourceType	      "IGBT/Diode"
      ShowPortLabels	      on
      Ron		      "1e-3"
      Rs		      "1e5"
      Cs		      "inf"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "IGBT2_4"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [336, 290, 374, 335]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib/Power\nElectronics/IGBT//Diode"
      SourceType	      "IGBT/Diode"
      ShowPortLabels	      on
      Ron		      "1e-3"
      Rs		      "1e5"
      Cs		      "inf"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "L"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [665, 209, 705, 231]
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "L"
      Resistance	      "1"
      Inductance	      "1e-3"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "1e-6"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "Branch current"
    }
    Block {
      BlockType		      Reference
      Name		      "Linear Transformer"
      Ports		      [0, 0, 0, 0, 0, 2, 4]
      Position		      [440, 210, 500, 290]
      SourceBlock	      "powerlib/Elements/Linear Transformer"
      SourceType	      "Linear Transformer"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a|b"
      RConnTagsString	      "A|B|C|D"
      NominalPower	      "[ 250e6 50 ] "
      winding1		      "[ 220  0  0 ]"
      winding2		      "[ 75  0  0 ]"
      ThreeWindings	      on
      winding3		      "[ 75 0.005 0.02 ]"
      RmLm		      "[ 500 500 ]"
      Measurements	      "All voltages and currents"
    }
    Block {
      BlockType		      Reference
      Name		      "Multimeter"
      Ports		      [0, 1]
      Position		      [255, 401, 295, 439]
      SourceBlock	      "powerlib/Measurements/Multimeter"
      SourceType	      "MultimeterPSB"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      sel		      "[2 3 5 1]"
      L			      "9"
      Gain		      "[1 1 1 1]"
      yselected		      "{'Uw1: Linear Transformer','Uw2: Linear Transfo"
"rmer','Ib: L','Ub:  RC '};"
      PSBOutputType	      "1"
      PSBequivalent	      "0"
      AxesSetting	      "[0,0.1,-100,100]"
      Display		      "0"
      SavedBlockNames	      "-11"
    }
    Block {
      BlockType		      Scope
      Name		      "PWM"
      Ports		      [4]
      Position		      [665, 13, 700, 87]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [5, 44, 1033, 762]
      Open		      on
      NumInputPorts	      "4"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      TimeRange		      "1"
      YMin		      "0~0~0~0"
      YMax		      "2~2~2~2"
      SaveToWorkspace	      on
      SaveName		      "sps1phPWM2_str1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -