Index: mttroot/mtt/lib/rep/sfun_rep/mdl.tmpl ================================================================== --- mttroot/mtt/lib/rep/sfun_rep/mdl.tmpl +++ mttroot/mtt/lib/rep/sfun_rep/mdl.tmpl @@ -1,7 +1,7 @@ Model { - Name "" + Name "mdl" Version 4.00 SampleTimeColors off LibraryLinkDisplay "all" WideLines off ShowLineDimensions on @@ -25,12 +25,12 @@ Creator "geraint" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "geraint" ModifiedDateFormat "%" - LastModifiedDate "Thu May 23 16:35:42 2002" - ModelVersionFormat "1.%" + LastModifiedDate "Tue Jun 18 18:49:28 2002" + ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" StartTime "0.0" StopTime "10.0" SolverMode "Auto" @@ -152,12 +152,12 @@ FontSize 9 FontWeight "normal" FontAngle "normal" } System { - Name "" - Location [51, 441, 346, 574] + Name "mdl" + Location [61, 487, 356, 620] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" @@ -188,11 +188,11 @@ RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "MTT Model\n" - Location [45, 448, 1008, 720] + Location [55, 494, 1018, 766] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" @@ -254,10 +254,26 @@ LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } + Block { + BlockType Memory + Name "Memory" + Position [870, 80, 900, 110] + X0 "0" + InheritSampleTime off + RTWStateStorageClass "Auto" + } + Block { + BlockType Memory + Name "Memory1" + Position [860, 175, 890, 205] + X0 "0" + InheritSampleTime off + RTWStateStorageClass "Auto" + } Block { BlockType "S-Function" Name "S-Function" Ports [4, 2] Position [710, 47, 840, 238] @@ -306,29 +322,41 @@ SrcBlock "MTT Model Inputs" SrcPort 1 DstBlock "S-Function" DstPort 1 } - Line { - SrcBlock "S-Function" - SrcPort 1 - Points [30, 0; 0, -70; -850, 0; 0, 105] - DstBlock "MTT Plant Model" - DstPort 1 - } Line { SrcBlock "In1" SrcPort 1 DstBlock "S-Function" DstPort 4 } Line { SrcBlock "S-Function" - SrcPort 2 + SrcPort 1 + DstBlock "Memory" + DstPort 1 + } + Line { + SrcBlock "Memory" + SrcPort 1 + Points [0, -55; -855, 0] + DstBlock "MTT Plant Model" + DstPort 1 + } + Line { + SrcBlock "Memory1" + SrcPort 1 DstBlock "Out1" DstPort 1 } + Line { + SrcBlock "S-Function" + SrcPort 2 + DstBlock "Memory1" + DstPort 1 + } } } Block { BlockType Outport Name "Out1"