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

📄 kalamn.mdl

📁 一种扩展卡尔曼滤波算法源程序 简单易懂 功能强大
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn3"
	  Position		  [120, 240, 180, 270]
	  Expr			  "sin"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [225, 41, 270, 74]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [225, 106, 270, 139]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [225, 156, 270, 189]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [225, 231, 270, 264]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [340, 24, 360, 66]
	  ShowName		  off
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [355, 114, 375, 176]
	  ShowName		  off
	  Inputs		  "|++"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [420, 68, 450, 82]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [420, 138, 450, 152]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn3"
	  SrcPort		  1
	  DstBlock		  "Product3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "Product2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In3"
	  SrcPort		  1
	  Points		  [0, 0; 135, 0]
	  Branch {
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 75]
	    DstBlock		    "Product3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  Points		  [0, 0; 130, 0]
	  Branch {
	    Points		    [20, 0]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 35]
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [20, 0; 0, 30]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [0, -15]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0; 25, 0]
	  Branch {
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 80]
	    Branch {
	      DstBlock		      "Fcn1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 65]
	      Branch {
		DstBlock		"Fcn2"
		DstPort			1
	      }
	      Branch {
		Points			[0, 60]
		DstBlock		"Fcn3"
		DstPort			1
	      }
	    }
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem2"
      Ports		      [3, 2]
      Position		      [220, 260, 260, 320]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem2"
	Location		[18, 156, 586, 448]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 43, 55, 57]
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [25, 73, 55, 87]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In3"
	  Position		  [30, 158, 60, 172]
	  Port			  "3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [120, 35, 180, 65]
	  Expr			  "cos"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [120, 115, 180, 145]
	  Expr			  "sin"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn2"
	  Position		  [120, 180, 180, 210]
	  Expr			  "cos"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn3"
	  Position		  [120, 240, 180, 270]
	  Expr			  "sin"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [225, 41, 270, 74]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [225, 106, 270, 139]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [225, 156, 270, 189]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [225, 231, 270, 264]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [340, 24, 360, 66]
	  ShowName		  off
	  Inputs		  "|++"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [355, 114, 375, 176]
	  ShowName		  off
	  Inputs		  "|-+"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [420, 68, 450, 82]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [420, 138, 450, 152]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn3"
	  SrcPort		  1
	  DstBlock		  "Product3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "Product2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In3"
	  SrcPort		  1
	  Points		  [135, 0]
	  Branch {
	    Points		    [0, 75]
	    DstBlock		    "Product3"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  Points		  [130, 0]
	  Branch {
	    Points		    [0, 35]
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [20, 0]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [20, 0; 0, 30]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [0, -15]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [0, 80]
	    Branch {
	      Points		      [0, 65]
	      Branch {
		Points			[0, 60]
		DstBlock		"Fcn3"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Fcn2"
		DstPort			1
	      }
	    }
	    Branch {
	      DstBlock		      "Fcn1"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "iqref"
      Ports		      [1, 1]
      Position		      [120, 38, 145, 62]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskType		      "PI Controller"
      MaskPromptString	      "Integral|Proportional:|Minimum and maximum outp"
"uts:"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskInitialization      "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
      MaskDisplay	      "disp('PI')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "2.6|50| [-30, 30]"
      System {
	Name			"iqref"
	Location		[136, 98, 490, 268]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In_1"
	  Position		  [25, 75, 45, 95]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Integral"
	  Position		  [110, 67, 145, 103]
	  Numerator		  "[I]"
	  Denominator		  "[1 0]"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional"
	  Position		  [120, 28, 140, 52]
	  NamePlacement		  "alternate"
	  Gain			  "P"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 53, 255, 77]
	  UpperLimit		  "max"
	  LowerLimit		  "min"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [180, 15, 200, 110]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out_1"
	  Position		  [285, 55, 305, 75]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Proportional"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In_1"
	  SrcPort		  1
	  Points		  [15, 0; 15, 0]
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Proportional"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Integral"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Integral"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Permanent Magnet\nSynchronous Machine"
      SrcPort		      1
      DstBlock		      "Machines\nMeasurement\nDemux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PWM inv."
      SrcPort		      1
      DstBlock		      "Permanent Magnet\nSynchronous Machine"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PWM inv."
      SrcPort		      2
      DstBlock		      "Permanent Magnet\nSynchronous Machine"
      DstPort		      2
    }
    Line {
      SrcBlock		      "PWM inv."
      SrcPort		      3
      DstBlock		      "Permanent Magnet\nSynchronous Machine"
      DstPort		      3
    }
    Line {
      SrcBlock		      "iqref"
      SrcPort		      1
      DstBlock		      "PWM inv."
      DstPort		      1
    }
    Line {
      SrcBlock		      "Machines\nMeasurement\nDemux"
      SrcPort		      1
      Points		      [30, 0; 0, 145]
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "iqref"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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