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

📄 single_single.mdl

📁 单相到单相频率变换
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    }
    Block {
      BlockType		      Lookup
      InputValues	      "[-4:5]"
      OutputValues	      " rand(1,10)-0.5"
      LookUpMeth	      "Interpolation-Extrapolation"
      OutDataTypeMode	      "Same as 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"
      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		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      PortCounts	      "[]"
      SFunctionModules	      "''"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  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		    "single_single"
    Location		    [2, 78, 1278, 717]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [30, 235, 50, 255]
      Decimation	      "10"
    }
    Block {
      BlockType		      RelationalOperator
      Name		      "Relational\nOperator"
      Position		      [370, 222, 400, 253]
      Operator		      "<="
      InputSameDT	      off
      LogicOutDataTypeMode    "Boolean"
    }
    Block {
      BlockType		      RelationalOperator
      Name		      "Relational\nOperator1"
      Position		      [375, 352, 405, 383]
      Operator		      "<="
      InputSameDT	      off
      LogicOutDataTypeMode    "Boolean"
    }
    Block {
      BlockType		      Reference
      Name		      "Repeating\nSequence"
      Ports		      [0, 1]
      Position		      [280, 165, 310, 195]
      SourceBlock	      "simulink/Sources/Repeating\nSequence"
      SourceType	      "Repeating table"
      ShowPortLabels	      on
      rep_seq_t		      "[0 1/1000 2/1000]"
      rep_seq_y		      "[0 1 0]"
    }
    Block {
      BlockType		      Reference
      Name		      "Repeating\nSequence1"
      Ports		      [0, 1]
      Position		      [275, 295, 305, 325]
      SourceBlock	      "simulink/Sources/Repeating\nSequence"
      SourceType	      "Repeating table"
      ShowPortLabels	      on
      rep_seq_t		      "[0 1/1000 2/1000]"
      rep_seq_y		      "[0 1 0]"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [705, 224, 735, 256]
      Location		      [5, 54, 1285, 741]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-120"
      YMax		      "110"
      SaveToWorkspace	      on
      SaveName		      "u3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [525, 230, 545, 250]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Switch
      Name		      "Switch"
      Position		      [455, 225, 485, 255]
      InputSameDT	      off
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Switch
      Name		      "Switch1"
      Position		      [455, 355, 485, 385]
      InputSameDT	      off
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Transfer Fcn"
      Position		      [580, 222, 640, 258]
      Numerator		      "[10]"
      Denominator	      "[1 1]"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold"
      Position		      [275, 230, 310, 260]
      SampleTime	      "1/100000"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold1"
      Position		      [275, 360, 310, 390]
      SampleTime	      "1/100000"
    }
    Block {
      BlockType		      Constant
      Name		      "cont_n"
      Position		      [180, 415, 210, 445]
      Value		      "0"
    }
    Block {
      BlockType		      Fcn
      Name		      "fun_Vi"
      Position		      [175, 135, 235, 165]
      Expr		      "sqrt(2)*311*sin(100*pi*u[1])"
    }
    Block {
      BlockType		      Fcn
      Name		      "fun_Vo1"
      Position		      [175, 230, 235, 260]
      Expr		      "1/2*(1+0.4*sin(20*pi*u[1]+pi/6)/sin(100*pi*u[1]"
"))"
    }
    Block {
      BlockType		      Fcn
      Name		      "fun_Vo2"
      Position		      [175, 360, 235, 390]
      Expr		      "1/2*(1+0.4*sin(20*pi*u[1])/sin(100*pi*u[1]))"
    }
    Block {
      BlockType		      Reference
      Name		      "powergui"
      Ports		      []
      Position		      [580, 320, 660, 365]
      Priority		      "2"
      FontSize		      11
      SourceBlock	      "powerlib/powergui"
      SourceType	      "PSB option menu block"
      ShowPortLabels	      on
      Frange		      "[0:2:500]"
      Ylog		      off
      Xlog		      on
      save		      off
      variable		      "ZData"
      structure		      "u3"
      ZoomFFT		      off
      StartTime		      "0.0"
      cycles		      "1"
      DisplayStyle	      "1"
      fundamental	      "10"
      FreqAxis		      off
      MaxFrequency	      "1000"
      frequencyindice	      "1"
      frequencyindicesteady   "1"
      RmsSteady		      "1"
      display		      off
      Ts		      "0"
      methode		      off
      frequency		      "60"
      echomessages	      off
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	Points			[35, 0]
	Branch {
	  DstBlock		  "fun_Vo1"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -95]
	  DstBlock		  "fun_Vi"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 130]
	DstBlock		"fun_Vo2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "fun_Vo1"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold"
      SrcPort		      1
      DstBlock		      "Relational\nOperator"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Repeating\nSequence"
      SrcPort		      1
      Points		      [10, 0; 0, 50]
      DstBlock		      "Relational\nOperator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relational\nOperator"
      SrcPort		      1
      DstBlock		      "Switch"
      DstPort		      2
    }
    Line {
      SrcBlock		      "fun_Vi"
      SrcPort		      1
      Points		      [180, 0; 0, 80]
      Branch {
	Points			[0, 130]
	DstBlock		"Switch1"
	DstPort			1
      }
      Branch {
	DstBlock		"Switch"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Switch"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "fun_Vo2"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold1"
      SrcPort		      1
      DstBlock		      "Relational\nOperator1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Repeating\nSequence1"
      SrcPort		      1
      Points		      [15, 0; 0, 50]
      DstBlock		      "Relational\nOperator1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relational\nOperator1"
      SrcPort		      1
      DstBlock		      "Switch1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Switch1"
      SrcPort		      1
      Points		      [45, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Transfer Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Transfer Fcn"
      SrcPort		      1
      DstBlock		      "Scope3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "cont_n"
      SrcPort		      1
      Points		      [215, 0; 0, -50]
      Branch {
	Points			[0, -130]
	DstBlock		"Switch"
	DstPort			3
      }
      Branch {
	DstBlock		"Switch1"
	DstPort			3
      }
    }
  }
}

⌨️ 快捷键说明

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