triblebgehysteresis.mdl

来自「三相逆变桥PWM电流滞环控制Simulink仿真」· MDL 代码 · 共 1,615 行 · 第 1/3 页

MDL
1,615
字号
      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		      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		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "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		    "triblebgehysteresis"
    Location		    [2, 82, 1270, 909]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "yellow"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "1 kW\n0.5 kvar\n@ 208V1"
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [595, 575, 725, 655]
      Orientation	      "down"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Three-Phase\nParallel RLC Loa"
"d"
      SourceType	      "Three-Phase Parallel RLC Load"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "A|B|C"
      Configuration	      "Y (grounded)"
      NominalVoltage	      "208"
      NominalFrequency	      "60"
      ActivePower	      "1000"
      InductivePower	      "0"
      CapacitivePower	      "500"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "208V /208V 1kVA\nTransformer"
      Ports		      [0, 0, 0, 0, 0, 3, 3]
      Position		      [545, 131, 605, 189]
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Three-Phase\nTransformer\n(Tw"
"o Windings)"
      SourceType	      "Three-Phase Transformer (Two Windings)"
      ShowPortLabels	      on
      NominalPower	      "[ 1000 , 50 ]"
      Winding1Connection      "Delta (D1)"
      Winding1		      "[ 208 , 0.002 , 0.04 ]"
      Winding2Connection      "Yg"
      Winding2		      "[ 208 , 0.002 , 0.04 ]"
      SetSaturation	      off
      Rm		      "200"
      Lm		      "200"
      Saturation	      "[ 0,0  ;  0.005,1.2  ;  1.0,1.4 ]"
      Hysteresis	      off
      DataFile		      "'hysteresis'"
      SetInitialFlux	      off
      InitialFluxes	      "[ 0.8 , -0.8 , 0.7 ]"
      Measurements	      "None"
      TransfoNumber	      "0"
    }
    Block {
      BlockType		      Logic
      Name		      "BL1"
      Ports		      [1, 1]
      Position		      [325, 464, 355, 486]
      NamePlacement	      "alternate"
      ShowName		      off
      Operator		      "NOT"
      Inputs		      "1"
    }
    Block {
      BlockType		      Logic
      Name		      "BL2"
      Ports		      [1, 1]
      Position		      [330, 594, 360, 616]
      NamePlacement	      "alternate"
      ShowName		      off
      Operator		      "NOT"
      Inputs		      "1"
    }
    Block {
      BlockType		      Logic
      Name		      "BL3"
      Ports		      [1, 1]
      Position		      [340, 729, 370, 751]
      NamePlacement	      "alternate"
      ShowName		      off
      Operator		      "NOT"
      Inputs		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Current Measurement"
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [603, 340, 627, 365]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Current Measurement1"
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [648, 405, 672, 430]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Current Measurement2"
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [693, 415, 717, 440]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type \nConversion1"
      Position		      [235, 435, 280, 455]
      BackgroundColor	      "cyan"
      ShowName		      off
      OutDataTypeMode	      "boolean"
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type \nConversion3"
      Position		      [260, 565, 305, 585]
      BackgroundColor	      "cyan"
      ShowName		      off
      OutDataTypeMode	      "boolean"
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type \nConversion4"
      Position		      [260, 690, 305, 710]
      BackgroundColor	      "cyan"
      ShowName		      off
      OutDataTypeMode	      "boolean"
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type \nConversion5"
      Position		      [495, 342, 540, 388]
      BackgroundColor	      "cyan"
      NamePlacement	      "alternate"
      ShowName		      off
      OutDataTypeMode	      "double"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [3, 1]
      Position		      [910, 244, 915, 306]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [6, 1]
      Position		      [450, 270, 465, 460]
      ShowName		      off
      Inputs		      "6"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay1"
      Position		      [195, 560, 225, 590]
      OnSwitchValue	      "0.1"
      OffSwitchValue	      "-0.1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay2"
      Position		      [195, 685, 225, 715]
      OnSwitchValue	      "0.1"
      OffSwitchValue	      "-0.1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay3"
      Position		      [180, 430, 210, 460]
      OnSwitchValue	      "0.1"
      OffSwitchValue	      "-0.1"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [970, 250, 1005, 300]
      BackgroundColor	      "green"
      Location		      [5, 56, 1285, 929]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "2"
      YMin		      "-500"
      YMax		      "500"
      SaveToWorkspace	      on
      SaveName		      "psb3phPWM1_str"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [3]
      Position		      [1000, 485, 1035, 535]
      BackgroundColor	      "green"
      Location		      [5, 56, 1285, 929]
      Open		      off
      NumInputPorts	      "3"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      TimeRange		      "2"
      YMin		      "-500~-5~-5"
      YMax		      "500~5~5"
      SaveToWorkspace	      on
      SaveName		      "psb3phPWM1_str1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [2]
      Position		      [805, 163, 840, 212]
      BackgroundColor	      "green"
      Location		      [5, 56, 1285, 929]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      TimeRange		      "2"
      YMin		      "-500~-5.85938"
      YMax		      "500~56.1198"
      SaveToWorkspace	      on
      SaveName		      "psb3phPWM1_str2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope4"
      Ports		      [2]
      Position		      [1115, 128, 1150, 177]
      BackgroundColor	      "magenta"
      Location		      [5, 56, 1285, 929]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      TimeRange		      "0.1"
      YMin		      "-500~-400"
      YMax		      "500~500"
      SaveToWorkspace	      on
      SaveName		      "psb3phPWM1_str3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave4"
      Ports		      [0, 1]
      Position		      [35, 420, 65, 450]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "100*pi"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave5"
      Ports		      [0, 1]
      Position		      [40, 550, 70, 580]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "100*pi"
      Phase		      "-2*pi/3"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave6"
      Ports		      [0, 1]
      Position		      [40, 670, 70, 700]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "100*pi"
      Phase		      "2*pi/3"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Subtract1"
      Ports		      [2, 1]
      Position		      [130, 557, 160, 588]
      Inputs		      "+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Sum
      Name		      "Subtract2"
      Ports		      [2, 1]
      Position		      [135, 682, 165, 713]
      Inputs		      "+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Sum
      Name		      "Subtract4"
      Ports		      [2, 1]
      Position		      [105, 427, 135, 458]
      Inputs		      "+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Three-Phase\nSeries RLC Load1"
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [813, 685, 867, 785]
      Orientation	      "down"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Three-Phase\nSeries RLC Load"
      SourceType	      "Three-Phase Series RLC Load"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "A|B|C"
      Configuration	      "Y (grounded)"
      NominalVoltage	      "380"
      NominalFrequency	      "50"
      ActivePower	      "1e3"
      InductivePower	      "100"
      CapacitivePower	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [985, 375, 1045, 405]
      VariableName	      "simout"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [785, 15, 845, 45]
      VariableName	      "simout1"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      Reference
      Name		      "Universal Bridge\n3 arms1"
      Ports		      [1, 0, 0, 0, 0, 3, 2]
      Position		      [390, 111, 450, 189]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Power\nElectronics/Universal Bridge"
      SourceType	      "Universal Bridge"
      ShowPortLabels	      on
      Arms		      "3"
      SnubberResistance	      "10000"
      SnubberCapacitance      "inf"
      Device		      "IGBT / Diodes"
      Ron		      "1e-4"
      Lon		      "0"
      ForwardVoltages	      "[  1  1  ]"
      ForwardVoltage	      ".8"
      GTOparameters	      "[ 10e-6 , 20e-6 ]"
      IGBTparameters	      "[ 1e-6 , 2e-6 ]"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Vab-inv2"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [675, 93, 700, 117]
      ForegroundColor	      "yellow"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Magnitude"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Vab_load1"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [715, 183, 740, 207]
      ForegroundColor	      "yellow"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Magnitude"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Vab_load2"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [825, 258, 850, 282]

⌨️ 快捷键说明

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