sanjay_run_model1.mdl

来自「this simulink file is to provide cross r」· MDL 代码 · 共 2,281 行 · 第 1/5 页

MDL
2,281
字号
	  Position		  [180, 100, 230, 180]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[2 1]"
	  EnableBusSupport	  on
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 111, 480, 129]
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, -20]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "fs2"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Embedded\nMATLAB Function4"
      Ports		      [8, 3]
      Position		      [175, 50, 310, 210]
      BackgroundColor	      "cyan"
      PermitHierarchicalResolution "ExplicitOnly"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Array {
	Type			"Handle"
	Dimension		0
	PropName		"AvailSigsLoadSave"
      }
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('cross_range');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Embedded\nMATLAB Function4"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "pi2"
	  Position		  [20, 101, 40, 119]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "c"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "fc"
	  Position		  [20, 171, 40, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Xc"
	  Position		  [20, 206, 40, 224]
	  Port			  "4"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "L"
	  Position		  [20, 246, 40, 264]
	  Port			  "5"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Y0"
	  Position		  [20, 281, 40, 299]
	  Port			  "6"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Yc"
	  Position		  [20, 316, 40, 334]
	  Port			  "7"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "cj"
	  Position		  [20, 351, 40, 369]
	  Port			  "8"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 485, 320, 525]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function sanjay_run_model1 5"
	  Ports			  [8, 4]
	  Position		  [180, 183, 230, 487]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[8 4]"
	  EnableBusSupport	  on
	  Port {
	    PortNumber		    2
	    Name		    "u"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	  Port {
	    PortNumber		    3
	    Name		    "fs0"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	  Port {
	    PortNumber		    4
	    Name		    "fs1"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 496, 480, 514]
	}
	Block {
	  BlockType		  Outport
	  Name			  "u"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "fs0"
	  Position		  [460, 136, 480, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "fs1"
	  Position		  [460, 171, 480, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 280]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "pi2"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "c"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "fc"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Xc"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "L"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Y0"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "Yc"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  7
	}
	Line {
	  SrcBlock		  "cj"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  8
	}
	Line {
	  Name			  "u"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "u"
	  DstPort		  1
	}
	Line {
	  Name			  "fs0"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  3
	  DstBlock		  "fs0"
	  DstPort		  1
	}
	Line {
	  Name			  "fs1"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  4
	  DstBlock		  "fs1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "FFT"
      Ports		      [1, 1]
      Position		      [435, 113, 475, 147]
      BackgroundColor	      "red"
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag0"
      SourceBlock	      "dspxfrm3/FFT"
      SourceType	      "FFT"
      CompMethod	      "Table lookup"
      TableOpt		      "Speed"
      BitRevOrder	      off
      InheritFFTLength	      on
      FFTLength		      "512"
      additionalParams	      off
      SkipNorm		      on
      allowOverrides	      on
      firstCoeffMode	      "Same word length as input"
      firstCoeffWordLength    "16"
      firstCoeffFracLength    "15"
      outputMode	      "Inherit via internal rule"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      prodOutputMode	      "Inherit via internal rule"
      prodOutputWordLength    "32"
      prodOutputFracLength    "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Reference
      Name		      "IFFT"
      Ports		      [1, 1]
      Position		      [810, 139, 850, 171]
      BackgroundColor	      "red"
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag1"
      SourceBlock	      "dspxfrm3/IFFT"
      SourceType	      "IFFT"
      CompMethod	      "Table lookup"
      TableOpt		      "Speed"
      BitRevOrder	      off
      cs_in		      off
      SkipNorm		      off
      InheritFFTLength	      on
      FFTLength		      "64"
      mode		      "Complex"
      additionalParams	      off
      allowOverrides	      on
      firstCoeffMode	      "Same word length as input"
      firstCoeffWordLength    "16"
      firstCoeffFracLength    "15"
      outputMode	      "Inherit via internal rule"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      prodOutputMode	      "Inherit via internal rule"
      prodOutputWordLength    "32"
      prodOutputFracLength    "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Constant
      Name		      "L"
      Position		      [95, 125, 125, 155]
      Value		      "150"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Reference
      Name		      "Pad"
      Ports		      [1, 1]
      Position		      [330, 110, 405, 150]
      BackgroundColor	      "orange"
      SourceBlock	      "dspsigops/Pad"
      SourceType	      "Pad"
      padAlong		      "Rows"
      dimsToPad		      "1"
      valSrc		      "Specify via dialog"
      padVal		      "0"
      spec		      "Output size"
      padNumOutRowsSpecMethod "User-specified"
      numOutRows	      "1"
      padNumOutColsSpecMethod "Next power of two"
      numOutCols	      "1"
      isVarDimsMode	      off
      padBeginning	      "0"
      padEnd		      "0"
      outSizeMode	      "User-specified"
      outSize		      "1"
      padSigAt		      "End"
      trunc_flag	      "None"
      outputMode	      "Same as input"
      outputWordLength	      "0"
      outputFracLength	      "0"
      accumMode		      "Same as input"
      accumWordLength	      "0"
      accumFracLength	      "0"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
      truncOrWrapMode	      "Truncate"
      wrap_flag		      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Pad1"
      Ports		      [1, 1]
      Position		      [335, 165, 410, 205]
      BackgroundColor	      "orange"
      SourceBlock	      "dspsigops/Pad"
      SourceType	      "Pad"
      padAlong		      "Rows"
      dimsToPad		      "1"
      valSrc		      "Specify via dialog"
      padVal		      "0"
      spec		      "Output size"
      padNumOutRowsSpecMethod "User-specified"
      numOutRows	      "1"
      padNumOutColsSpecMethod "Next power of two"
      numOutCols	      "1"
      isVarDimsMode	      off
      padBeginning	      "0"
      padEnd		      "0"
      outSizeMode	      "User-specified"
      outSize		      "1"
      padSigAt		      "End"
      trunc_flag	      "None"
      outputMode	      "Same as input"
      outputWordLength	      "0"
      outputFracLength	      "0"
      accumMode		      "Same as input"
      accumWordLength	      "0"
      accumFracLength	      "0"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
      truncOrWrapMode	      "Truncate"
      wrap_flag		      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Pad2"
      Ports		      [1, 1]
      Position		      [325, 55, 400, 95]
      BackgroundColor	      "orange"
      SourceBlock	      "dspsigops/Pad"
      SourceType	      "Pad"
      padAlong		      "Rows"
      dimsToPad		      "1"
      valSrc		      "Specify via dialog"
      padVal		      "0"
      spec		      "Output size"
      padNumOutRowsSpecMethod "User-specified"
      numOutRows	      "1"
      padNumOutColsSpecMethod "Next power of two"
      numOutCols	      "1"
      isVarDimsMode	      off
      padBeginning	      "0"
      padEnd		      "0"
      outSizeMode	      "User-specified"
      outSize		      "1"
      padSigAt		      "End"
      trunc_flag	      "None"
      outputMode	      "Same as input"
      outputWordLength	      "0"
      outputFracLength	      "0"
      accumMode		      "Same as input"
      accumWordLength	      "0"
      accumFracLength	      "0"

⌨️ 快捷键说明

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