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

📄 ationtargetexample.mdl

📁 Engine control Unit Source code
💻 MDL
📖 第 1 页 / 共 3 页
字号:
		}
		Name			"OverrideSignalType"
		Value			"Native"
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"UseASAP2Names"
		Value			off
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"MakeOnTargetTimingCode"
		Value			off
	      }
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      ExtraOptions	      "-aFunctionCallTrigger=0 "
      CurrentDlgPage	      "Real-Time Workshop/ATI code generation options"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      DataTypeConversion
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Lookup2D
      RowIndex		      "[0 1]"
      ColumnIndex	      "[0 1]"
      OutputValues	      "[0 0;0 0]"
      LookUpMeth	      "Interpolation-Extrapolation"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError	      "0.01"
      LUTDesignAbsError	      "1e-6"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      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		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SignalSpecification
      Dimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
  }
  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		    "ATIOnTargetExample"
    Location		    [79, 106, 659, 395]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      "S-Function"
      Name		      "ATIOnTargetExample"
      Tag		      "ATIStrategySelect"
      Ports		      []
      Position		      [135, 16, 276, 94]
      DropShadow	      on
      UserDataPersistent      on
      UserData		      "DataTag0"
      List {
	ListType		RTWdata
	CodeArea		"0x60670"
	CodeSize		"0xF990"
	CaliArea		"0x502504"
	CaliSize		"0xFFFC"
	RamArea			"0x3FF02C"
	RamSize			"0xFD4"
	NumTasks		"1"
	ArchitectureName	"PowerPC"
	MakeTimingCode		"0"
      }
      InitFcn		      "ATIInitBlockOnTarget"
      OpenFcn		      "StrategySelectOpenDlg"
      FunctionName	      "ATIOnTargetStrategySelect"
      MaskInitialization      "warning off"
      MaskDisplay	      "image(imread('atilogoOnTarget.bmp'), [0.1, 0.1,"
" 0.7, 0.4])\ntext(0.15, 0.75, 'Select Strategy')\ntext(0.17, 0.60, '(double c"
"lick)')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
    }
    Block {
      BlockType		      SubSystem
      Name		      "TaskBlock"
      Tag		      "ATIOnTargetTaskBlock"
      Ports		      []
      Position		      [135, 132, 278, 208]
      DropShadow	      on
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Function"
      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, 'Trigger:')\ntext(0.17, 0.60, Trigger)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
      System {
	Name			"TaskBlock"
	Location		[114, 426, 1114, 875]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "BypassModel"
	  Ports			  [2, 2]
	  Position		  [350, 159, 590, 281]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "BypassModel"
	    Location		    [0, 86, 879, 397]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "EngineCoolantTempature"
	      Position		      [125, 63, 155, 77]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TansmissionOilTempature"
	      Position		      [120, 178, 150, 192]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [430, 145, 480, 185]
	      Value		      "int16(80)"
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type Conversion1"
	      Position		      [225, 171, 280, 199]
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type Conversion2"
	      Position		      [615, 146, 670, 174]
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type Conversion3"
	      Position		      [230, 56, 285, 84]
	    }
	    Block {
	      BlockType		      Lookup2D
	      Name		      "Look-Up\nTable (2-D)"
	      Position		      [395, 57, 450, 108]
	      RowIndex		      "[-40:20:120]"
	      ColumnIndex	      "[-40:20:120]"
	      OutputValues	      "max([-40:20:120],0)'*max([-40:20:120],0"
")/((120*120)/100)"
	      LookUpMeth	      "Interpolation-Use End Values"
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [545, 142, 575, 173]
	      Operator		      ">"
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Scaling"
	      Position		      [485, 70, 515, 100]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "FanDutyCycle"
	      Position		      [705, 78, 735, 92]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Lamp"
	      Position		      [710, 153, 740, 167]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Data Type Conversion2"
	      SrcPort		      1
	      DstBlock		      "Lamp"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Data Type Conversion2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Data Type Conversion1"
	      SrcPort		      1
	      Points		      [45, 0; 0, -90]
	      DstBlock		      "Look-Up\nTable (2-D)"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "TansmissionOilTempature"
	      SrcPort		      1
	      DstBlock		      "Data Type Conversion1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Data Type Conversion3"
	      SrcPort		      1
	      DstBlock		      "Look-Up\nTable (2-D)"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Look-Up\nTable (2-D)"
	      SrcPort		      1
	      DstBlock		      "Scaling"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "EngineCoolantTempature"
	      SrcPort		      1
	      DstBlock		      "Data Type Conversion3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Scaling"
	      SrcPort		      1
	      Points		      [0, 0; 10, 0]
	      Branch {
		DstBlock		"FanDutyCycle"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "BypassModelInput"
	  Tag			  "ATIOnTargetOutputBlock3"
	  Ports			  [0, 2]
	  Position		  [25, 175, 245, 255]
	  DropShadow		  on
	  UserDataPersistent	  on
	  UserData		  "DataTag1"
	  InitFcn		  "ATICheckForStrategyBlock"
	  OpenFcn		  "ATIOnTargetOutputBlockOpen"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskInitialization	  "warning off"
	  MaskDisplay		  "image(imread('atilogoOnTarget.bmp'), [25, 7"
", 100, 30])\ntext(15, 52, 'ECU to model. Engineering Units')\ntext(25, 42, '("
"double click)')"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "pixels"
	  System {
	    Name		    "BypassModelInput"
	    Location		    [580, 116, 1423, 816]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      SubSystem
	      Name		      "EngConv1"
	      Ports		      [1, 1]
	      Position		      [350, 152, 450, 188]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"EngConv1"
		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		      "EngConv2"
	      Ports		      [1, 1]
	      Position		      [350, 232, 450, 268]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"EngConv2"
		Location		[433, 403, 931, 703]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"

⌨️ 快捷键说明

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