c.mdl

来自「这是一个基于MATLAB的三相SPWM逆变电路」· MDL 代码 · 共 1,717 行 · 第 1/4 页

MDL
1,717
字号
	Line {
	  SrcBlock		  "             "
	  SrcPort		  1
	  DstBlock		  "                                           "
"                    "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "                 "
	  SrcPort		  1
	  DstBlock		  "                      "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "          "
	  SrcPort		  1
	  DstBlock		  "                 "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "              "
	  SrcPort		  1
	  DstBlock		  "             "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "  "
	  SrcPort		  1
	  DstBlock		  "                   "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "      "
	  SrcPort		  1
	  DstBlock		  "          "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "           "
	  SrcPort		  1
	  DstBlock		  "              "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "         "
	  SrcPort		  1
	  Points		  [0, -45]
	  DstBlock		  "           "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "       "
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "      "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "     "
	  SrcPort		  1
	  DstBlock		  "           "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "    "
	  SrcPort		  1
	  DstBlock		  "      "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "   "
	  SrcPort		  1
	  DstBlock		  "  "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux2"
	  SrcPort		  1
	  DstBlock		  "                                           "
"                                       "
	  DstPort		  1
	}
	Line {
	  Labels		  [3, 0]
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [15, 0; 0, 60]
	  DstBlock		  "Mux2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "                                           "
"                                                  "
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "                     "
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "                                         "
"                                                    "
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "                    "
	  SrcPort		  1
	  DstBlock		  "                     "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "                "
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 70]
	    Branch {
	      DstBlock		      "                      "
	      DstPort		      2
	    }
	    Branch {
	      Points		      [0, 145]
	      DstBlock		      "                                       "
"                        "
	      DstPort		      2
	    }
	  }
	  Branch {
	    Points		    [10, 0]
	    DstBlock		    "                    "
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "                   "
	  SrcPort		  1
	  DstBlock		  "                    "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " "
	  SrcPort		  1
	  Points		  [5, 0; 0, 40; 30, 0]
	  Branch {
	    DstBlock		    "                   "
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    Branch {
	      Points		      [0, 0]
	      DstBlock		      "                 "
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 145]
	      DstBlock		      "             "
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 0; 0, 90]
	    Branch {
	      Points		      [0, 145]
	      DstBlock		      "     "
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "    "
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "   "
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "                                           "
"                                       "
	  SrcPort		  1
	  DstBlock		  "PWM"
	  DstPort		  1
	}
	Annotation {
	  Position		  [385, 98]
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Three-Phase\nSeries RLC Load"
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [490, 246, 590, 304]
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      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	      "413"
      NominalFrequency	      "50"
      ActivePower	      "1e3"
      InductivePower	      "500"
      CapacitivePower	      "0"
      Measurements	      "Branch voltages and currents"
    }
    Block {
      BlockType		      Reference
      Name		      "Ud1"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [175, 245, 195, 280]
      Orientation	      "up"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Electrical\nSources/DC Voltage Source"
      SourceType	      "DC Voltage Source"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Amplitude		      "530"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Universal Bridge"
      Ports		      [1, 0, 0, 0, 0, 3, 2]
      Position		      [335, 227, 390, 303]
      Orientation	      "left"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Power\nElectronics/Universal Bridge"
      SourceType	      "Universal Bridge"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Arms		      "3"
      SnubberResistance	      "1e5"
      SnubberCapacitance      "inf"
      Device		      "IGBT / Diodes"
      Ron		      "1e-3"
      Lon		      "0"
      ForwardVoltages	      "[  0  0  ]"
      ForwardVoltage	      "0"
      GTOparameters	      "[ 10e-6 , 20e-6 ]"
      IGBTparameters	      "[ 1e-6 , 2e-6 ]"
      Measurements	      "UAB UBC UCA UDC voltages"
      converterType	      "Rectifier"
    }
    Block {
      BlockType		      Reference
      Name		      "powergui"
      Ports		      []
      Position		      [193, 90, 271, 132]
      UserDataPersistent      on
      UserData		      "DataTag0"
      FontSize		      11
      SourceBlock	      "powerlib/powergui"
      SourceType	      "PSB option menu block"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimulationMode	      "Discrete"
      SampleTime	      "5e-7"
      echomessages	      off
      RestoreLinks	      "warning"
      x0status		      "blocks"
      Frange		      "[0:2:500]"
      Ylog		      off
      Xlog		      on
      ShowGrid		      off
      save		      off
      variable		      "ZData"
      structure		      "ScopeData"
      ZoomFFT		      on
      StartTime		      "0.02"
      cycles		      "2"
      DisplayStyle	      "1"
      fundamental	      "50"
      FreqAxis		      off
      MaxFrequency	      "5000"
      frequencyindice	      "0"
      frequencyindicesteady   "1"
      RmsSteady		      "1"
      display		      off
      Ts		      "0"
      frequency		      "60"
      methode		      off
      HookPort		      off
      Interpol		      off
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      Points		      [40, 0; 0, 50]
      DstBlock		      "Universal Bridge"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Ud1"
      SrcPort		      RConn1
      Points		      [0, -35]
      DstBlock		      "   "
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "   "
      SrcPort		      RConn1
      Points		      [10, 0; 0, 45]
      DstBlock		      "Universal Bridge"
      DstPort		      RConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Universal Bridge"
      SrcPort		      RConn2
      Points		      [-30, 0; 0, 35; -105, 0]
      DstBlock		      "Ud1"
      DstPort		      LConn1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "Scope"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      DstBlock		      "Scope"
      DstPort		      3
    }
    Line {
      SrcBlock		      "   "
      SrcPort		      1
      Points		      [0, -50]
      DstBlock		      "Scope"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Multimeter"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Universal Bridge"
      SrcPort		      LConn1
      DstBlock		      "Three-Phase\nSeries RLC Load"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Universal Bridge"
      SrcPort		      LConn2
      DstBlock		      "Three-Phase\nSeries RLC Load"
      DstPort		      LConn2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Universal Bridge"
      SrcPort		      LConn3
      DstBlock		      "Three-Phase\nSeries RLC Load"
      DstPort		      LConn3
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    Z (   8    (     @         %    "
"\"     $    !     0         %  0 #     $   !X    <&]W97)G=6D     <W1E861Y<W1A"
"=&4 :6YI='-T871E<P  ;&]A9&9L;W<     ;'1I=FEE=P      >FUE=&5R        9F9T=&]O;"
"       <F5P;W)T        :'ES=&5R97-I<P  ;&EN97!A<F%M    #@   #     &    \"    "
" 8         !0    @               $         \"0         .    ,     8    (    !"
"@         %    \"                0         )          X    P    !@    @    & "
"         4    (               !          D         #@   #     &    \"     8  "
"       !0    @               $         \"0         .    ,     8    (    !@   "
"      %    \"                0         )          X    P    !@    @    &     "
"     4    (               !          D         #@   #@    &    \"     8      "
"   !0    @    !     0    $         \"0    @        = $?J0 X    P    !@    @  "
"  &          4    (               !          D         #@   #     &    \"    "
" 8         !0    @               $         \"0         .    ,     8    (    !"
"@         %    \"                0         )          "
  }
}

⌨️ 快捷键说明

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