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

📄 m5_6_3.mdl

📁 电力电子仿真程序电力电子仿电力电子仿真程序真程序
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      SampleTime	      "1"
    }
    Block {
      BlockType		      DiscreteIntegrator
      IntegratorMethod	      "Integration: Forward Euler"
      gainval		      "1.0"
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      InitialConditionMode    "State and output"
      SampleTime	      "1"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      EnablePort
      StatesWhenEnabling      "held"
      ShowOutputPort	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      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
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Lookup
      InputValues	      "[-4:5]"
      OutputValues	      " rand(1,10)-0.5"
      LookUpMeth	      "Interpolation-Extrapolation"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError	      "0.01"
      LUTDesignAbsError	      "1e-6"
    }
    Block {
      BlockType		      Math
      Operator		      "exp"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Memory
      X0		      "0"
      InheritSampleTime	      off
      LinearizeMemory	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      MultiPortSwitch
      Inputs		      "4"
      zeroidx		      off
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      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		      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		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    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
      SampleTime	      "0"
    }
    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"
      PortCounts	      "[]"
      SFunctionModules	      "''"
    }
    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		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  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		    "m5_6_3"
    Location		    [292, 185, 1242, 698]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "portrait"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "  Vdc=200 V"
      Tag		      "PoWeRsYsTeMbLoCk"
      Description	      "source block"
      Ports		      [1, 1]
      Position		      [80, 180, 100, 215]
      Orientation	      "up"
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib2/Electrical\nSources/DC Voltage Source"
      SourceType	      "DC Voltage Source"
      ShowPortLabels	      on
      V			      "200"
      mesure		      "None"
      PSBOutputType	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "1 kW\n0.5 kvar\n@ 208V "
      Ports		      [3]
      Position		      [679, 225, 731, 290]
      Orientation	      "down"
      SourceBlock	      "powerlib2/Elements/3-Phase\nParallel RLC Load"
      SourceType	      "3-phase parallel RLC load "
      ShowPortLabels	      on
      Vpp		      "208"
      fn		      "60"
      P3		      "1000"
      QL3		      "0"
      QC3		      "500"
    }
    Block {
      BlockType		      Reference
      Name		      "Bus Bar 1"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [0, 2]
      Position		      [100, 240, 215, 245]
      Orientation	      "up"
      NamePlacement	      "alternate"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Bus Bar (thin horiz)"
      SourceType	      "Bus Bar"
      ShowPortLabels	      on
      input		      "0"
      output		      "2"
      PSBOutputType	      "11111111111111111111111111111111111111111111111"
"1111111111111111111111111111111111111"
    }
    Block {
      BlockType		      Reference
      Name		      "Bus Bar 4"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [3, 1]
      Position		      [592, 250, 648, 255]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Bus Bar (thin horiz)"
      SourceType	      "Bus Bar"
      ShowPortLabels	      on
      input		      "3"
      output		      "1"
      PSBOutputType	      "11111111111111111111111111111111111111111111111"
"1111111111111111111111111111111111111"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nVirtual PLL"
      Ports		      [0, 3]
      Position		      [35, 358, 80, 422]
      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nVirtual PLL"
      SourceType	      "Discrete Virtual PLL"
      ShowPortLabels	      on
      Freq		      "60"
      Phase		      "0"
      Ts		      "Ts"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete 3-phase\nPWM Generator"
      Ports		      [2, 2]
      Position		      [135, 278, 205, 362]
      ForegroundColor	      "blue"
      BackgroundColor	      "cyan"
      DropShadow	      on
      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete 3-phase\nPWM Generator"
      SourceType	      "Discrete 3-phase PWM Generator (2- or 3-level)"
      ShowPortLabels	      on
      ModulatorType	      "3-level"
      ModulatorMode	      "Synchronized"
      nF		      "18"
      Fc		      "18*60"
      ModulatingSignals	      off
      m			      "0.85"
      Freq		      "60"
      Phase		      "0"
      Ts		      "Ts"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete 3-phase \n Programmable Source"
      Ports		      [0, 1]
      Position		      [40, 281, 80, 319]
      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\n3-phase \nProgrammable Source"
      SourceType	      "Discrete 3-phase Programmable Source"
      ShowPortLabels	      on
      Par_Vps		      "[0.85 0 60]"
      VariationEntity	      "None"
      VariationType	      "Step"
      VariationStep	      "-0.5 "
      VariationRate	      "2"
      VariationMag	      "60"
      VariationFreq	      "1"
      Par_Timing_Variation    "[0.2 1.2]"
      SinglePhase	      on
      Yampli		      "[1 0.8 1.2 1.0]"
      Xtime		      "[0 0.1 0.15 0.2]"
      HarmonicGeneration      off
      Par_HarmoA	      "[3 0.2 -25 0]"
      Par_HarmoB	      "[2 0.4 35 1]"
      Par_Timing_Harmo	      "[0.05  3]"
      Ts		      "Ts"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground1"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [1]
      Position		      [613, 280, 627, 300]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Ground (input)"
      SourceType	      "Ground"
      ShowPortLabels	      on
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [4]
      Position		      [795, 35, 835, 115]
      BackgroundColor	      "green"
      Location		      [138, 63, 1162, 744]
      Open		      on
      NumInputPorts	      "4"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      TimeRange		      "0.1"
      YMin		      "-300~-400~-400~-5"
      YMax		      "300~400~400~5"
      SaveToWorkspace	      on
      SaveName		      "psb3phPWM3level_str"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"
    }

⌨️ 快捷键说明

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