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

📄 ad_9s12.mdl

📁 simulink real-time workshop for dragon12 development board from
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      TreatAsAtomicUnit	      off
      MaskHelp		      "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_ADC_In_blkref')"
      MaskPromptString	      "ADC bank|Channels ( 0 - 7 )|ADC resolution|Norm"
"alization|Sample time"
      MaskStyleString	      "popup(0|1),edit,popup(10 bits|8 bits),popup(raw"
" values|max. output:  1|max. output:  5),edit"
      MaskTunableValueString  "off,off,off,off,off"
      MaskCallbackString      "||||"
      MaskEnableString	      "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables	      "bank=@1;channels=&2;use10bits=@3;normalize=@4;s"
"ampletime=@5;"
      MaskInitialization      "[channelsStr, firstChannel, numChannels] = mbc_"
"adcinput(bank, channels, use10bits, normalize, sampletime);"
      MaskDisplay	      "disp(['ADC Input\\n' channelsStr])"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0|2 - 4|10 bits|max. output:  5|0.002"
      System {
	Name			"ADC Input"
	Location		[584, 145, 1067, 361]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  "S-Function"
	  Name			  "Analog Input SFcn"
	  Ports			  [0, 1]
	  Position		  [25, 25, 145, 65]
	  FunctionName		  "adc_sfcn_9S12"
	  Parameters		  "bank-1, firstChannel, numChannels, use10bit"
"s-1, normalize, sampletime"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [240, 23, 245, 207]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [410, 26, 430, 44]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [410, 71, 430, 89]
	  FontSize		  12
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out3"
	  Position		  [410, 116, 430, 134]
	  FontSize		  12
	  Port			  "3"
	}
	Line {
	  SrcBlock		  "Analog Input SFcn"
	  SrcPort		  1
	  Points		  [0, 70]
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [30, 0; 0, -20]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  DstBlock		  "Out3"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [210, 80, 240, 110]
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [210, 135, 240, 165]
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [210, 190, 240, 220]
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [430, 79, 460, 111]
      FontSize		      12
      Location		      [168, 506, 442, 680]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "2"
      YMin		      "-1"
      YMax		      "6"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [430, 134, 460, 166]
      FontSize		      12
      Location		      [453, 506, 729, 680]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "2"
      YMin		      "-1"
      YMax		      "6"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [430, 189, 460, 221]
      FontSize		      12
      Location		      [738, 507, 1019, 682]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "2"
      YMin		      "-1"
      YMax		      "6"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold"
      Position		      [325, 76, 360, 114]
      ShowName		      off
      SampleTime	      "0.02"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold1"
      Position		      [325, 131, 360, 169]
      ShowName		      off
      SampleTime	      "0.02"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold2"
      Position		      [325, 186, 360, 224]
      ShowName		      off
      SampleTime	      "0.02"
    }
    Line {
      SrcBlock		      "ADC Input"
      SrcPort		      1
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input"
      SrcPort		      2
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold1"
      SrcPort		      1
      DstBlock		      "Scope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold2"
      SrcPort		      1
      DstBlock		      "Scope2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input"
      SrcPort		      3
      DstBlock		      "Gain2"
      DstPort		      1
    }
    Annotation {
      Name		      "Real time data acquisition with the Freescale 9"
"S12 - single/multiple channel A/D\nSample rate : 2 ms, discarding factor : 10"
" (-> 50 uploads per second / channel)"
      Position		      [267, 17]
      VerticalAlignment	      "top"
      FontName		      "Times New Roman"
      FontSize		      14
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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