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

📄 s2c.mdl

📁 simulink electrical machine(2)
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  System {
	    Name		    "Sign1"
	    Location		    [159, 417, 467, 586]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [35, 30, 55, 50]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [65, 105, 85, 125]
	      Value		      "0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [140, 32, 170, 63]
	      Operator		      >
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator1"
	      Position		      [140, 92, 170, 123]
	      Operator		      <
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Position		      [215, 64, 235, 91]
	      Inputs		      "+-"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [265, 70, 285, 90]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "out_1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      Points		      [10, 0; 0, 20]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator1"
	      SrcPort		      1
	      Points		      [10, 0; 0, -25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, -60]
		DstBlock		"Relational\nOperator"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Relational\nOperator1"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      Points		      [35, 0]
	      Branch {
		Points			[0, 60]
		DstBlock		"Relational\nOperator1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Sign2"
	  Position		  [560, 247, 590, 273]
	  ShowPortLabels	  off
	  MaskType		  "Sign"
	  MaskDescription	  "y = sign(x)"
	  MaskHelp		  "Sign Function:\\n\\t\\t\\ty = 1 if x "
				  "> 0\\n\\t\\t\\ty = 0 if x = 0\\n\\t\\t\\ty "
				  "= -1 if x < 0"
	  MaskDisplay		  "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50"
				  ",50],[-40,0],[-30,-30],[0,40],[30,30])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  off
	  MaskIconUnits		  autoscale
	  System {
	    Name		    "Sign2"
	    Location		    [159, 417, 467, 586]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [35, 30, 55, 50]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [65, 105, 85, 125]
	      Value		      "0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [140, 32, 170, 63]
	      Operator		      >
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator1"
	      Position		      [140, 92, 170, 123]
	      Operator		      <
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Position		      [215, 64, 235, 91]
	      Inputs		      "+-"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [265, 70, 285, 90]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "out_1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      Points		      [10, 0; 0, 20]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator1"
	      SrcPort		      1
	      Points		      [10, 0; 0, -25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, -60]
		DstBlock		"Relational\nOperator"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Relational\nOperator1"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      Points		      [35, 0]
	      Branch {
		Points			[0, 60]
		DstBlock		"Relational\nOperator1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Volts/hertz"
	  Position		  [145, 63, 220, 107]
	  InputValues		  "we_vf"
	  OutputValues		  "vrms_vf"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "cos"
	  Position		  [230, 145, 265, 185]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "1"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Gain
	  Name			  "pksine2pksquare"
	  Position		  [290, 66, 360, 104]
	  Gain			  "pi/4"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "sin"
	  Position		  [240, 256, 275, 294]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "0"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Gain
	  Name			  "wb"
	  Position		  [90, 71, 125, 99]
	  Gain			  "wb"
	}
	Block {
	  BlockType		  Outport
	  Name			  "vag"
	  Position		  [715, 125, 735, 145]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "vbg"
	  Position		  [710, 185, 730, 205]
	  Port			  "2"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "vcg"
	  Position		  [715, 245, 735, 265]
	  Port			  "3"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "pu speed\nreference"
	  SrcPort		  1
	  DstBlock		  "wb"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "wb"
	  SrcPort		  1
	  DstBlock		  "Volts/hertz"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "we"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [20, 0; 0, 110]
	    DstBlock		    "Inner\nProduct"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Inner\nProduct1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "pksine2pksquare"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [245, 0; 0, 165]
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [245, 0; 0, 105]
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [245, 0; 0, 45]
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Volts/hertz"
	  SrcPort		  1
	  DstBlock		  "pksine2pksquare"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Sign"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sign"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sign1"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sign2"
	  SrcPort		  1
	  DstBlock		  "Product2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "vag"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  DstBlock		  "vbg"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  DstBlock		  "vcg"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "sin"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [10, 0; 0, -40]
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [10, 0; 0, -40; -140, 0]
	    DstBlock		    "Inner\nProduct1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "cos"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [10, 0; 0, -40; -175, 0; 0, 155]
	    DstBlock		    "Inner\nProduct"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  DstBlock		  "Sign2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Sign1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [10, 0; 0, 60]
	    DstBlock		    "Fcn2"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [10, 0; 0, -60]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Inner\nProduct1"
	  SrcPort		  1
	  DstBlock		  "cos"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Inner\nProduct"
	  SrcPort		  1
	  DstBlock		  "-1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "-1"
	  SrcPort		  1
	  DstBlock		  "sin"
	  DstPort		  1
	}
	Annotation {
	  Position		  [247, 67]
	  VerticalAlignment	  top
	  Text			  "Vpksine"
	}
	Annotation {
	  Position		  [297, 213]
	  VerticalAlignment	  top
	  Text			  "sin_wet"
	}
	Annotation {
	  Position		  [307, 136]
	  VerticalAlignment	  top
	  Text			  "cos_wet"
	}
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Position		      [710, 139, 725, 201]
      Inputs		      "+++"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Position		      [100, 138, 115, 167]
      Inputs		      "+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Position		      [160, 230, 175, 265]
      Inputs		      "++"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Tmech"
      Position		      [405, 264, 445, 286]
      ShowPortLabels	      off
      MaskType		      "Repeating table"
      MaskDescription	      "Repeating table.\nEnter values of time and "
			      "output for first cycle."
      MaskHelp		      "Repeats cycle given in table. Time values "
			      "should be monotonically increasing."
      MaskPromptString	      "Time values:|Output values:"
      MaskStyleString	      "edit,edit"
      MaskInitialization      "period = max(@1); t = @1; y = @2;"
      MaskDisplay	      "plot([t,t+period,t+2*period],[y,y,y])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      MaskValueString	      "time_tmech|tmech_tmech"
      System {
	Name			"Tmech"
	Location		[5, 40, 315, 196]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Clock
	  Name			  "Clock"
	  Position		  [45, 60, 65, 80]
	  DeleteFcn		  "simclock BlockIsBeingDestroyed"
	  PostSaveFcn		  "simclock Save"
	  Location		  [30, 40, 140, 75]
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [110, 60, 150, 80]
	  Expr			  "rem(u[1],period)"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up Table"
	  Position		  [210, 58, 250, 82]
	  InputValues		  "t"
	  OutputValues		  "y"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [285, 60, 305, 80]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Look-Up Table"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up Table"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [300, 32, 350, 48]
      Orientation	      left
      VariableName	      "y"
      Buffer		      "80000"
      Decimation	      "2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "abc2qds"
      Position		      [400, 141, 445, 244]

⌨️ 快捷键说明

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