ebbers_moll_2.mdl

来自「PLLmatlab for simulink」· MDL 代码 · 共 2,339 行 · 第 1/5 页

MDL
2,339
字号
      OverrideOpt	      off
    }
    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		      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		      PMComponent
      SubClassName	      "unknown"
    }
    Block {
      BlockType		      PMIOPort
    }
    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		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SignalGenerator
      WaveForm		      "sine"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Frequency		      "1"
      Units		      "Hertz"
      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		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
  }
  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		    "ebbers_moll_2"
    Location		    [19, 74, 868, 648]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "CVS1"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [172, 340, 208, 385]
      Orientation	      "up"
      SourceBlock	      "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
      SourceType	      "Controlled Voltage Source"
      ShowPortLabels	      on
      Initialize	      on
      SourceType	      "AC"
      Amplitude		      "0"
      Phase		      "0"
      Frequency		      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "CVS2"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [212, 435, 248, 480]
      Orientation	      "up"
      SourceBlock	      "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
      SourceType	      "Controlled Voltage Source"
      ShowPortLabels	      on
      Initialize	      on
      SourceType	      "AC"
      Amplitude		      "0"
      Phase		      "0"
      Frequency		      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "CVS3"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [377, 255, 413, 300]
      Orientation	      "up"
      SourceBlock	      "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
      SourceType	      "Controlled Voltage Source"
      ShowPortLabels	      on
      Initialize	      on
      SourceType	      "AC"
      Amplitude		      "0"
      Phase		      "0"
      Frequency		      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "CVS4"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [757, 355, 793, 400]
      Orientation	      "down"
      SourceBlock	      "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
      SourceType	      "Controlled Voltage Source"
      ShowPortLabels	      on
      Initialize	      on
      SourceType	      "AC"
      Amplitude		      "0"
      Phase		      "0"
      Frequency		      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [620, 385, 650, 415]
      Value		      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Differential Output"
      Ports		      [1]
      Position		      [730, 149, 760, 181]
      Location		      [99, 580, 474, 823]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "1.2e-005"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "50000"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground1"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [289, 480, 311, 505]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground2"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [394, 365, 416, 390]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground3"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [764, 430, 786, 455]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Manual Switch"
      Ports		      [2, 1]
      Position		      [700, 322, 730, 358]
      SourceBlock	      "simulink/Signal\nRouting/Manual Switch"
      SourceType	      "Manual Switch"
      ShowPortLabels	      on
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "NPN1 "
      Ports		      [0, 0, 0, 0, 0, 1, 2]
      Position		      [445, 200, 510, 260]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskPromptString	      "Beta|IEs|ICs|Ro|Cbc|Cbe|Rbb"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on"
      MaskCallbackString      "||||||"
      MaskEnableString	      "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,"
      MaskVariables	      "Beta=@1;IEs=@2;ICs=@3;Ro=@4;Cbc=@5;Cbe=@6;Rbb=@"
"7;"
      MaskInitialization      "k = 1.38e-23;\nq = 1.6e-19;\nT = 290;\nVt = k*T"
"/q;  \n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "40|1e-10;|1e-10;|1e5|5e-12|50e-12|100"
      MaskTabNameString	      ",,,,,,"
      System {
	Name			"NPN1 "
	Location		[-102, 82, 734, 793]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"125"
	Block {
	  BlockType		  Gain
	  Name			  "AlphaF"
	  Position		  [415, 211, 470, 259]
	  Gain			  "(Beta-1)/Beta"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "AlphaF*If"
	  Description		  "source block"
	  Ports			  [1, 0, 0, 0, 0, 1, 1]
	  Position		  [590, 222, 635, 278]
	  AttributesFormatString  "\\n"
	  SourceBlock		  "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
	  SourceType		  "Controlled Current Source"
	  ShowPortLabels	  on
	  Initialize		  off
	  SourceType		  "AC"
	  Amplitude		  "-0.025"
	  Phase			  "0"
	  Frequency		  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Gain
	  Name			  "AlphaR"
	  Position		  [405, 295, 455, 345]
	  Orientation		  "left"
	  Gain			  "(IEs/ICs)*(Beta-1)/Beta"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "AlphaR*Ir"
	  Description		  "source block"
	  Ports			  [1, 0, 0, 0, 0, 1, 1]
	  Position		  [285, 307, 330, 363]
	  Orientation		  "left"
	  AttributesFormatString  "\\n"
	  SourceBlock		  "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
	  SourceType		  "Controlled Current Source"
	  ShowPortLabels	  on
	  Initialize		  off
	  SourceType		  "AC"
	  Amplitude		  "-0.025"
	  Phase			  "0"
	  Frequency		  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Base Emitter Junction"
	  Ports			  [0, 1, 0, 0, 0, 1, 1]
	  Position		  [285, 224, 335, 266]
	  AncestorBlock		  "simcircuits_library_1/diode"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskPromptString	  "Saturation Current"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "Is=@1;"
	  MaskDisplay		  "plot(-140,-140,150,140,2*[30,30,59,30,30,0]"
"-75,(2*[71,50,72,92,71,71]-92),2*[59,59]-75,(2*[50,93]-92),[116,59]-16,(2*[71"
",71]-90));"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "IEs"
	  Port {
	    PortNumber		    1
	    Name		    "If"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Base Emitter Junction"
	    Location		    [168, 113, 791, 374]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Fcn
	      Name		      "Diode Equation"
	      Position		      [245, 95, 305, 125]
	      Expr		      "Is* (exp(u /.025)  -1  );  % ideal diod"
"e equation @ room temp"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vf\n"
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [170, 98, 195, 122]
	      AttributesFormatString  "\\n"
	      SourceBlock	      "powerlib/Measurements/Voltage Measureme"
"nt"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      on
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "ik1"
	      Description	      "source block"
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [380, 97, 420, 153]
	      AttributesFormatString  "\\n"
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled"
" Current Source"
	      SourceType	      "Controlled Current Source"
	      ShowPortLabels	      on
	      Initialize	      on
	      SourceType	      "AC"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Anode"
	      Tag		      "PMCPort"
	      Position		      [70, 96, 100, 114]
	      Port		      "1"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "cathode\n"
	      Tag		      "PMCPort"
	      Position		      [520, 116, 550, 134]
	      Orientation	      "left"
	      Port		      "2"
	      Side		      "Right"
	    }
	    Block {

⌨️ 快捷键说明

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