mmck.mdl

来自「Matlab: simulink mdl files for some basi」· MDL 代码 · 共 1,518 行 · 第 1/5 页

MDL
1,518
字号
	  NumInputs		  "1"
	  AttributeNameY	  "Count"
	  XInputOptionSignal	  "Event time"
	  XInputOptionEntity	  "Event time"
	  AttributeNameX	  "Count"
	  EnableEntityOutport	  on
	  XMin			  "0"
	  XMax			  "10"
	  XLimitExceededOption	  "Stretch axis limits"
	  YMin			  "0"
	  YMax			  "10"
	  YLimitExceededOption	  "Stretch axis limits"
	  AxisGrid		  on
	  AxisLegend		  "off"
	  LineDisables		  " "
	  LineColors		  "b"
	  LineStyles		  "-"
	  LineMarkers		  "."
	  OpenScopeAtSimStart	  on
	  Title			  " "
	  YLabel		  " "
	  XLabel		  "Time"
	  FigurePosition	  "des_figposition([5 60 25 25])"
	  AxisZoom		  off
	  DataStoreOption	  "Limited"
	  DataPointsLimit	  "10000"
	  StatNumberArrived	  "Off"
	  ShowCountPlotted	  on
	  ShowToolbar		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Read Timer"
	  Ports			  [0, 1, 0, 0, 0, 1, 1]
	  Position		  [785, 504, 845, 551]
	  Priority		  "0"
	  UserDataPersistent	  on
	  UserData		  "DataTag5"
	  SourceBlock		  "simeventstiming1/Read Timer"
	  SourceType		  "Read Timer"
	  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"
	  TimerTag		  "T1"
	  TimerModeOption	  "Error"
	  TimerStop		  off
	  StatNumberDeparted	  "Off"
	  StatTimerNumberDeparted "Off"
	  StatTimeElapsed	  "Off"
	  StatAverageTimeElapsed  "On"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Server Utilization"
	  Ports			  [1]
	  Position		  [975, 359, 1035, 401]
	  Priority		  "1"
	  UserDataPersistent	  on
	  UserData		  "DataTag6"
	  SourceBlock		  "simeventssink1/Signal Scope"
	  SourceType		  "Signal Scope"
	  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"
	  PlotType		  "Stair"
	  InputType		  "Signal"
	  NumInputs		  "1"
	  AttributeNameY	  "Count"
	  XInputOptionSignal	  "Event time"
	  XInputOptionEntity	  "Event time"
	  AttributeNameX	  "Count"
	  EnableEntityOutport	  on
	  XMin			  "0"
	  XMax			  "10"
	  XLimitExceededOption	  "Stretch axis limits"
	  YMin			  "0"
	  YMax			  "10"
	  YLimitExceededOption	  "Stretch axis limits"
	  AxisGrid		  on
	  AxisLegend		  "off"
	  LineDisables		  " "
	  LineColors		  "b"
	  LineStyles		  "-"
	  LineMarkers		  "."
	  OpenScopeAtSimStart	  on
	  Title			  " "
	  YLabel		  " "
	  XLabel		  "Time"
	  FigurePosition	  "des_figposition([5 60 25 25])"
	  AxisZoom		  off
	  DataStoreOption	  "Limited"
	  DataPointsLimit	  "10000"
	  StatNumberArrived	  "Off"
	  ShowCountPlotted	  off
	  ShowToolbar		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Start Timer"
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [125, 151, 180, 199]
	  Priority		  "0"
	  UserDataPersistent	  on
	  UserData		  "DataTag7"
	  SourceBlock		  "simeventstiming1/Start Timer"
	  SourceType		  "Start Timer"
	  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"
	  TimerTag		  "T1"
	  TimerStartedOption	  "Warn and continue"
	  StatNumberDeparted	  "Off"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Time-Based\nEntity Generator"
	  Ports			  [0, 0, 0, 0, 0, 0, 1]
	  Position		  [25, 152, 90, 198]
	  Priority		  "1"
	  AttributesFormatString  "Distribution = %<Distribution>\\nMean = %<Mean>"
	  UserDataPersistent	  on
	  UserData		  "DataTag8"
	  DialogController	  "des_ddg_create"
	  DialogControllerArgs	  "DataTag9"
	  FontSize		  12
	  SourceBlock		  "simeventsgenerators1/Entity Generators/Time-Based\nEntity Generator"
	  SourceType		  "Time-Based Entity Generator"
	  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"
	  GenerateEntitiesUpon	  "Intergeneration time from dialog"
	  Distribution		  "Exponential"
	  Minimum		  "0"
	  Maximum		  "1"
	  Mean			  "lambda"
	  InitialSeed		  "67437"
	  Period		  "1"
	  PriorityEntityGeneration "300"
	  GenerateEntityAtSimulationStart off
	  ResponseWhenBlocked	  "Pause generation"
	  ResponseWhenUnblocked	  "Immediate restart"
	  EntityType		  "Standard"
	  StatNumberDeparted	  "Off"
	  StatPendingEntity	  "Off"
	  StatAverageIntergenerationTime "Off"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Waiting time in the system"
	  Ports			  [1]
	  Position		  [965, 444, 1025, 486]
	  Priority		  "1"
	  UserDataPersistent	  on
	  UserData		  "DataTag10"
	  SourceBlock		  "simeventssink1/Signal Scope"
	  SourceType		  "Signal Scope"
	  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"
	  PlotType		  "Stair"
	  InputType		  "Signal"
	  NumInputs		  "1"
	  AttributeNameY	  "Count"
	  XInputOptionSignal	  "Event time"
	  XInputOptionEntity	  "Event time"
	  AttributeNameX	  "Count"
	  EnableEntityOutport	  on
	  XMin			  "0"
	  XMax			  "10"
	  XLimitExceededOption	  "Stretch axis limits"
	  YMin			  "0"
	  YMax			  "10"
	  YLimitExceededOption	  "Stretch axis limits"
	  AxisGrid		  on
	  AxisLegend		  "off"
	  LineDisables		  " "
	  LineColors		  "b"
	  LineStyles		  "-"
	  LineMarkers		  "."
	  OpenScopeAtSimStart	  on
	  Title			  " "
	  YLabel		  " "
	  XLabel		  "Time"
	  FigurePosition	  "des_figposition([5 60 25 25])"
	  AxisZoom		  off
	  DataStoreOption	  "Limited"
	  DataPointsLimit	  "10000"
	  StatNumberArrived	  "Off"
	  ShowCountPlotted	  off
	  ShowToolbar		  on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Server Waiting time"
	  Position		  [750, 323, 780, 337]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Queue Waiting Time"
	  Position		  [395, 138, 425, 152]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "System Waiting Time"
	  Position		  [980, 508, 1010, 522]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Server utilization"
	  Position		  [750, 418, 780, 432]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Queue length"
	  Position		  [395, 198, 425, 212]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Number of entities"
	  Position		  [395, 78, 425, 92]
	  Port			  "6"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "FIFO Queue"
	  SrcPort		  RConn1
	  Points		  [0, 175]
	  DstBlock		  "N-Server"
	  DstPort		  LConn1
	}
	Line {
	  SrcBlock		  "Event-Based\nRandom Number"
	  SrcPort		  1
	  Points		  [-55, 0; 0, 80]
	  DstBlock		  "N-Server"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "N-Server"
	  SrcPort		  1
	  Points		  [10, 0; 0, -75]
	  DstBlock		  "Server Waiting time"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "N-Server"
	  SrcPort		  2
	  Points		  [25, 0]
	  Branch {
	    Labels		    [1, 0]
	    Points		    [0, -45]
	    DstBlock		    "Server Utilization"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Server utilization"
	    DstPort		    1

⌨️ 快捷键说明

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