⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ationtargetexample.mdl

📁 Engine control Unit Source code
💻 MDL
📖 第 1 页 / 共 3 页
字号:
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [110, 103, 140, 117]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [360, 103, 390, 117]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "S-Function"
	      Tag		      "ATIOnTargetOutputSFcn"
	      Ports		      [0, 2]
	      Position		      [20, 140, 180, 260]
	      BackgroundColor	      "[0.988235, 0.984314, 0.839216]"
	      DropShadow	      on
	      UserDataPersistent      on
	      List {
		ListType		RTWdata
		Address			"0x3FAC04,0x3FAC08"
		DataType		"66"
	      }
	      FunctionName	      "ATIOnTargetOutput"
	      Parameters	      "2,0.1"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      SignalSpecification
	      Name		      "SetDataType1"
	      Position		      [250, 162, 300, 178]
	      DataType		      "single"
	    }
	    Block {
	      BlockType		      SignalSpecification
	      Name		      "SetDataType2"
	      Position		      [250, 242, 300, 258]
	      DataType		      "single"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "stp_ect"
	      Position		      [500, 162, 550, 178]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "stp_tot"
	      Position		      [500, 242, 550, 258]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "S-Function"
	      SrcPort		      1
	      DstBlock		      "SetDataType1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "SetDataType1"
	      SrcPort		      1
	      DstBlock		      "EngConv1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "EngConv1"
	      SrcPort		      1
	      DstBlock		      "stp_ect"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "S-Function"
	      SrcPort		      2
	      DstBlock		      "SetDataType2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "SetDataType2"
	      SrcPort		      1
	      DstBlock		      "EngConv2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "EngConv2"
	      SrcPort		      1
	      DstBlock		      "stp_tot"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "Block can be 'reset' by deleting all bl"
"ocks and lines, except the S-function."
	      Position		      [299, 53]
	      ForegroundColor	      "red"
	      UseDisplayTextAsClickCallback off
	      FontName		      "Arial"
	      FontSize		      12
	    }
	    Annotation {
	      Name		      "The content of this sub-system is autog"
"enerated \nand therefore should not be manually modified!"
	      Position		      [294, 28]
	      ForegroundColor	      "red"
	      UseDisplayTextAsClickCallback off
	      FontName		      "Arial"
	      FontSize		      12
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "BypassModelOutput"
	  Tag			  "ATIOnTargetInputBlock"
	  Ports			  [2]
	  Position		  [645, 168, 875, 272]
	  DropShadow		  on
	  UserDataPersistent	  on
	  UserData		  "DataTag2"
	  InitFcn		  "ATICheckForStrategyBlock"
	  OpenFcn		  "ATIOnTargetInputBlockOpen"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskInitialization	  "warning off"
	  MaskDisplay		  "image(imread('atilogoOnTarget.bmp'), [125, "
"7, 100, 30])\ntext(105, 52, 'Model to ECU')\ntext(115, 42, '(double click)')"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "pixels"
	  System {
	    Name		    "BypassModelOutput"
	    Location		    [703, 187, 1439, 619]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "stp_fan_speed"
	      Position		      [50, 132, 80, 148]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "stp_mil_lamp"
	      Position		      [50, 212, 80, 228]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "RawConv1"
	      Ports		      [1, 1]
	      Position		      [120, 100, 180, 160]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"RawConv1"
		Location		[433, 403, 931, 703]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [110, 103, 140, 117]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [360, 103, 390, 117]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "RawConv2"
	      Ports		      [1, 1]
	      Position		      [120, 180, 180, 240]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"RawConv2"
		Location		[433, 403, 931, 703]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [110, 103, 140, 117]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [360, 103, 390, 117]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "S-Function"
	      Tag		      "ATIOnTargetInputSFcn"
	      Ports		      [2]
	      Position		      [300, 110, 460, 230]
	      BackgroundColor	      "[0.984314, 0.992157, 0.858824]"
	      DropShadow	      on
	      List {
		ListType		RTWdata
		ReloAddress		"0x3FF014,0x3FF028"
		ActualAddress		"0x3FAC10,0x3FAC00"
		OnOffSwAddress		"0x502501,0x502502"
		DataType		"36"
		Usemask			"00"
		Bitmasks		"0x0,0x0"
		ReloValidAddress	""
	      }
	      FunctionName	      "ATIOnTargetInput"
	      Parameters	      "2"
	    }
	    Block {
	      BlockType		      SignalSpecification
	      Name		      "SetDataType1"
	      Position		      [210, 132, 260, 148]
	      DataType		      "int16"
	    }
	    Block {
	      BlockType		      SignalSpecification
	      Name		      "SetDataType2"
	      Position		      [210, 212, 260, 228]
	      DataType		      "single"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "info1"
	      Ports		      []
	      Position		      [185, 300, 485, 345]
	      ShowName		      off
	      FontSize		      12
	      FontWeight	      "bold"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      MaskDisplay	      "disp (' Library copy of block.\\n Never"
" updated.')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"info1"
		Location		[0, 74, 430, 504]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
	      }
	    }
	    Line {
	      SrcBlock		      "stp_fan_speed"
	      SrcPort		      1
	      DstBlock		      "RawConv1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "RawConv1"
	      SrcPort		      1
	      DstBlock		      "SetDataType1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "SetDataType1"
	      SrcPort		      1
	      DstBlock		      "S-Function"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "stp_mil_lamp"
	      SrcPort		      1
	      DstBlock		      "RawConv2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "RawConv2"
	      SrcPort		      1
	      DstBlock		      "SetDataType2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "SetDataType2"
	      SrcPort		      1
	      DstBlock		      "S-Function"
	      DstPort		      2
	    }
	    Annotation {
	      Name		      "The content of this sub-system is autog"
"enerated \nand therefore should not be manually modified!"
	      Position		      [344, 23]
	      ForegroundColor	      "red"
	      UseDisplayTextAsClickCallback off
	      FontName		      "Arial"
	      FontSize		      12
	      FontWeight	      "bold"
	    }
	    Annotation {
	      Name		      "Block can be 'reset' by deleting all bl"
"ocks and lines, except the S-function."
	      Position		      [349, 48]
	      ForegroundColor	      "red"
	      UseDisplayTextAsClickCallback off
	      FontName		      "Arial"
	      FontSize		      12
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "TriggerBlock (AutoCreated)"
	  Tag			  "ATIOnTargetTriggerBlock"
	  Ports			  []
	  Position		  [25, 30, 244, 114]
	  DropShadow		  on
	  UserDataPersistent	  on
	  UserData		  "DataTag3"
	  InitFcn		  "ATICheckForStrategyBlock"
	  OpenFcn		  "ATIOnTargetTriggerBlockOpen"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskInitialization	  "Trigger = 'DataItem: stp_ect';"
	  MaskDisplay		  "image(imread('atilogoOnTarget.bmp'), [0.1, "
"0.1, 0.7, 0.4])\ntext(0.15, 0.75, 'Task Trigger:')\ntext(0.17, 0.60, Trigger)"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "normalized"
	  System {
	    Name		    "TriggerBlock (AutoCreated)"
	    Location		    [0, 82, 750, 334]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      "S-Function"
	      Name		      "S-Function"
	      Tag		      "ATIOnTargetTriggerSFcn"
	      Ports		      []
	      Position		      [160, 60, 320, 180]
	      BackgroundColor	      "[0.988235, 0.984314, 0.839216]"
	      DropShadow	      on
	      UserDataPersistent      on
	      List {
		ListType		RTWdata
		TriggerID		"0"
	      }
	      FunctionName	      "ATIOnTargetTriggerBlock"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	  }
	}
	Line {
	  SrcBlock		  "BypassModel"
	  SrcPort		  2
	  Points		  [5, 0; 0, -5]
	  DstBlock		  "BypassModelOutput"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "BypassModel"
	  SrcPort		  1
	  Points		  [0, 5]
	  DstBlock		  "BypassModelOutput"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "BypassModelInput"
	  SrcPort		  1
	  Points		  [40, 0; 0, -5]
	  DstBlock		  "BypassModel"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "BypassModelInput"
	  SrcPort		  2
	  Points		  [40, 0; 0, 15]
	  DstBlock		  "BypassModel"
	  DstPort		  2
	}
      }
    }
  }
}
MatData {
  NumRecords		  4
  DataRecord {
    Tag			    DataTag3
    Data		    "  %)30     .    \\ $   8    (     0         %    "
"\"     4    !     0         .    R     8    (     0         %    \"     (    "
"!     0         .    2     8    (    !          %    \"     $    4     0     "
"    0    %    $UE87-U<F5M96YT<RYS='!?96-T      X   !(    !@    @    $        "
"  4    (     0   !0    !         !     4    365A<W5R96UE;G1S+G-T<%]T;W0     #"
"@   #@    &    \"     0         !0    @    !    !P    $         $     <   !S="
"'!?96-T  X    X    !@    @    &          4    (     0    $    !          D   "
" (    FIF9F9F9N3\\.    ,     8    (    !          %    \"     $    $     0   "
"      0  0 +#$L,0X    X    !@    @    &          4    (     0    $    !      "
"    D    (            \\#\\"
  }
  DataRecord {
    Tag			    DataTag2
    Data		    "  %)30     .    \" $   8    (     0         %    "
"\"     $    !     0         .    V     8    (     0         %    \"     (    "
"!     0         .    4     8    (    !          %    \"     $    :     0     "
"    0    &@   $UE87-U<F5M96YT<RYS='!?9F%N7W-P965D        #@   %     &    \"  "
"   0         !0    @    !    &0    $         $    !D   !-96%S=7)E;65N=',N<W1P"
"7VUI;%]L86UP          "
  }
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    \\ $   8    (     0         %    "
"\"     4    !     0         .    R     8    (     0         %    \"     (    "
"!     0         .    2     8    (    !          %    \"     $    4     0     "
"    0    %    $UE87-U<F5M96YT<RYS='!?96-T      X   !(    !@    @    $        "
"  4    (     0   !0    !         !     4    365A<W5R96UE;G1S+G-T<%]T;W0     #"
"@   #@    &    \"     0         !0    @    !    !P    $         $     <   !S="
"'!?96-T  X    X    !@    @    &          4    (     0    $    !          D   "
" (    FIF9F9F9N3\\.    ,     8    (    !          %    \"     $    $     0   "
"      0  0 +#$L,0X    X    !@    @    &          4    (     0    $    !      "
"    D    (            \\#\\"
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    \\ $   8    (     0         %    "
"\"     8    !     0         .    4     8    (    !          %    \"     $    "
"<     0         0    '    $%422!);B!/=70@0FQO8VL@5F5R<VEO;B Q+C      #@   '  "
"   &    \"     0         !0    @    !    /@    $         $    #X   !#.EQ625-)"
"3TX@4')O:F5C='-<4V%M<&QE<UQ/;E1A<F=E=%Q00TU<051)3VY487)G971%>&%M<&QE+G9S=   #"
"@   #@    &    \"     8         !0    @    !     0    $         \"0    @     "
"          X    X    !@    @    &          4    (     0    $    !          D  "
"  (               .    .     8    (    !@         %    \"     $    !     0   "
"      )    \"            / _#@   #     &    \"     0         !0    @         "
"      $         $          "
  }
}

⌨️ 快捷键说明

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