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

📄 apf_zhaoyu01.mdl

📁 有源滤波器Matlab仿真模型
💻 MDL
📖 第 1 页 / 共 5 页
字号:
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "Inherit: Inherit via internal rule"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn1"
		  Position		  [550, 162, 740, 188]
		  ShowName		  off
		  Expr			  "-2/3*((u[1]*u[4])+(u[2]*u[6])+(u[3]*u[8]))"
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn2"
		  Position		  [550, 88, 735, 112]
		  ShowName		  off
		  Expr			  "2/3*((u[1]*u[5])+(u[2]*u[7])+(u[3]*u[9]))"
		}
		Block {
		  BlockType		  Constant
		  Name			  "K1"
		  Position		  [35, 286, 75, 304]
		  ShowName		  off
		  Value			  "2*pi/3"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [2, 1]
		  Position		  [485, 136, 490, 214]
		  ShowName		  off
		  Inputs		  "2"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux2"
		  Ports			  [6, 1]
		  Position		  [415, 108, 420, 342]
		  ShowName		  off
		  Inputs		  "6"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "cos"
		  Ports			  [1, 1]
		  Position		  [260, 155, 285, 175]
		  Operator		  "cos"
		  Port {
		    PortNumber		    1
		    Name		    "cos(wt)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "cos1"
		  Ports			  [1, 1]
		  Position		  [260, 235, 285, 255]
		  Operator		  "cos"
		  Port {
		    PortNumber		    1
		    Name		    "cos(wt-2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "cos2"
		  Ports			  [1, 1]
		  Position		  [260, 315, 285, 335]
		  Operator		  "cos"
		  Port {
		    PortNumber		    1
		    Name		    "cos(wt+2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "sin"
		  Ports			  [1, 1]
		  Position		  [260, 114, 285, 136]
		  Port {
		    PortNumber		    1
		    Name		    "sin(wt)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "sin1"
		  Ports			  [1, 1]
		  Position		  [260, 194, 285, 216]
		  Port {
		    PortNumber		    1
		    Name		    "sin(wt-2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "sin2"
		  Ports			  [1, 1]
		  Position		  [260, 274, 285, 296]
		  Port {
		    PortNumber		    1
		    Name		    "sin(wt+2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "d"
		  Position		  [810, 93, 840, 107]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Outport
		  Name			  "q"
		  Position		  [810, 168, 840, 182]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Line {
		  Labels		  [2, 1]
		  SrcBlock		  "abc"
		  SrcPort		  1
		  Points		  [335, 0; 0, 95]
		  DstBlock		  "Mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Mux2"
		  SrcPort		  1
		  Points		  [30, 0; 0, -30]
		  DstBlock		  "Mux"
		  DstPort		  2
		}
		Line {
		  Name			  "sin(wt)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "sin"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  Points		  [20, 0]
		  Branch {
		    Points		    [0, -75]
		    DstBlock		    "Fcn2"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Fcn1"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Fcn1"
		  SrcPort		  1
		  DstBlock		  "q"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Fcn2"
		  SrcPort		  1
		  DstBlock		  "d"
		  DstPort		  1
		}
		Line {
		  Name			  "cos(wt+2pi/3)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "cos2"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  6
		}
		Line {
		  Name			  "sin(wt+2pi/3)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "sin2"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  5
		}
		Line {
		  Name			  "sin(wt-2pi/3)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "sin1"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  3
		}
		Line {
		  Name			  "cos(wt-2pi/3)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "cos1"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  4
		}
		Line {
		  Name			  "cos(wt)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "cos"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "jiao"
		  SrcPort		  1
		  Points		  [30, 0]
		  Branch {
		    Points		    [105, 0]
		    Branch {
		    DstBlock		    "sin"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 40]
		    DstBlock		    "cos"
		    DstPort		    1
		    }
		  }
		  Branch {
		    Points		    [0, 70; 25, 0]
		    Branch {
		    DstBlock		    "Add"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 80]
		    DstBlock		    "Add1"
		    DstPort		    1
		    }
		  }
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [30, 0]
		  Branch {
		    DstBlock		    "sin1"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 40]
		    DstBlock		    "cos1"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Add1"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    DstBlock		    "sin2"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 40]
		    DstBlock		    "cos2"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "K1"
		  SrcPort		  1
		  Points		  [30, 0]
		  Branch {
		    Points		    [0, -80]
		    DstBlock		    "Add"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "Add1"
		    DstPort		    2
		  }
		}
		Annotation {
		  Position		  [708, 330]
		  FontSize		  12
		}
		Annotation {
		  Position		  [668, 300]
		  FontSize		  12
		}
		Annotation {
		  Position		  [613, 360]
		  FontSize		  12
		}
		Annotation {
		  Name			  "Vq= -2/3 (Va*sinwt   + Vb*sin(wt-2pi/3)  + Vc*sin(wt+2pi/3)"
		  Position		  [668, 315]
		  FontSize		  12
		}
		Annotation {
		  Name			  "Vd= 2/3 (Va*coswt   + Vb*cos(wt-2pi/3)  + Vc*cos(wt+2pi/3)"
		  Position		  [668, 290]
		  FontSize		  12
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "jiao"
	      Ports		      [1, 1]
	      Position		      [335, 184, 385, 246]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"jiao"
		Location		[0, 82, 1012, 743]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "abc"
		  Position		  [185, 168, 215, 182]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  Ports			  [1, 2]
		  Position		  [370, 117, 375, 233]
		  BackgroundColor	  "black"
		  ShowName		  off
		  Outputs		  "2"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "K/P"
		  Ports			  [2, 1]
		  Position		  [430, 117, 490, 233]
		  MinAlgLoopOccurrences	  off
		  PropExecContextOutsideSubsystem off
		  RTWSystemCode		  "Auto"
		  FunctionWithSeparateData off
		  Opaque		  off
		  RequestExecContextInheritance	off
		  MaskHideContents	  off
		  System {
		    Name		    "K/P"
		    Location		    [2, 82, 1014, 721]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "ualfa"
		    Position		    [25, 83, 55, 97]
		    IconDisplay		    "Port number"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "ubelt"
		    Position		    [25, 148, 55, 162]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    }
		    Block {
		    BlockType		    Fcn
		    Name		    "Fcn"
		    Position		    [165, 89, 240, 111]
		    Expr		    "sqrt(u[1]*u[1]+u[2]*u[2])"
		    }
		    Block {
		    BlockType		    Fcn
		    Name		    "Fcn1"
		    Position		    [365, 65, 440, 85]
		    Expr		    "acos(u[1]/u[2])"
		    }
		    Block {
		    BlockType		    Fcn
		    Name		    "Fcn2"
		    Position		    [370, 170, 445, 190]
		    Expr		    "-acos(u[1]/u[2])"
		    }
		    Block {
		    BlockType		    Mux
		    Name		    "Mux"
		    Ports		    [2, 1]
		    Position		    [120, 80, 125, 120]
		    ShowName		    off
		    Inputs		    "2"
		    DisplayOption	    "bar"
		    }
		    Block {
		    BlockType		    Mux
		    Name		    "Mux1"
		    Ports		    [2, 1]
		    Position		    [295, 25, 300, 125]
		    ShowName		    off
		    Inputs		    "2"
		    DisplayOption	    "bar"
		    }
		    Block {
		    BlockType		    Switch
		    Name		    "Switch"
		    Position		    [505, 116, 545, 194]
		    Criteria		    "u2 > Threshold"
		    InputSameDT		    off
		    SaturateOnIntegerOverflow off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "jiao"
		    Position		    [580, 148, 610, 162]
		    IconDisplay		    "Port number"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    }
		    Line {
		    SrcBlock		    "ualfa"
		    SrcPort		    1
		    Points		    [30, 0]
		    Branch {
		    DstBlock		    "Mux"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, -40]
		    DstBlock		    "Mux1"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Mux"
		    SrcPort		    1
		    DstBlock		    "Fcn"
		    DstPort		    1

⌨️ 快捷键说明

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