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

📄 test_singleloop1.mdl

📁 控制电机程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Ports		      [1]
      Position		      [555, 109, 585, 141]
      Location		      [54, 133, 378, 372]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "DDC"
      Ports		      [1, 1]
      Position		      [540, 189, 640, 231]
      TreatAsAtomicUnit	      off
      MaskType		      "DDC_HY_8072"
      MaskPromptString	      "Sample Time:"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "T_samp=@1;"
      MaskDisplay	      "fprintf('DDC_HY_8072');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.0033"
      System {
	Name			"DDC"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [110, 103, 140, 117]
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-Function"
	  Ports			  [1, 1]
	  Position		  [205, 95, 265, 125]
	  FunctionName		  "DDC_HY_8072"
	  Parameters		  "T_samp"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [360, 103, 390, 117]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "S-Function"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "S-Function"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 3]
      Position		      [690, 191, 695, 229]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "3"
    }
    Block {
      BlockType		      Memory
      Name		      "Memory"
      Position		      [535, 405, 565, 435]
      Orientation	      "left"
    }
    Block {
      BlockType		      Memory
      Name		      "Memory1"
      Position		      [615, 285, 645, 315]
      Orientation	      "left"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [300, 334, 330, 366]
      Orientation	      "left"
      Location		      [188, 365, 512, 604]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Signal Builder"
      Tag		      "STV Subsys"
      Ports		      [0, 1]
      Position		      [170, 185, 245, 225]
      CopyFcn		      "sigbuilder_block('copy');"
      DeleteFcn		      "sigbuilder_block('delete');"
      ModelCloseFcn	      "sigbuilder_block('modelClose');"
      PreSaveFcn	      "sigbuilder_block('preSave');"
      StartFcn		      "sigbuilder_block('start');"
      StopFcn		      "sigbuilder_block('stop');"
      NameChangeFcn	      "sigbuilder_block('namechange');"
      ClipboardFcn	      "sigbuilder_block('clipboard');"
      OpenFcn		      "sigbuilder_block('open',[50 50 520 400 ]);"
      CloseFcn		      "sigbuilder_block('close');"
      TreatAsAtomicUnit	      off
      MaskType		      "Sigbuilder block"
      MaskDescription	      "Sigbuilder GUI"
      MaskInitialization      "if ~strcmp(get_param(bdroot(gcb),'SimulationSta"
"tus'),'stopped') tuvar = sigbuilder_block('maskInit'); end"
      MaskDisplay	      "plot(0,0,100,100,[10,10,40,40,10],[80,20,20,80,"
"80],[40,10],[50,50], [40,27,10],[65,72,56],[40,25,25,10],[28,28,43,43]);"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "port"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Signal Builder"
	Location		[480, 85, 980, 386]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Tag			  "STV Demux"
	  Ports			  [1, 1]
	  Position		  [150, 30, 160, 600]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  FromWorkspace
	  Name			  "FromWs"
	  Tag			  "STV FromWs"
	  Position		  [30, 300, 115, 350]
	  VariableName		  "tuvar"
	  SampleTime		  "0"
	  SigBuilderData	  "DataTag0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Signal 1"
	  Tag			  "STV Outport"
	  Position		  [280, 30, 300, 40]
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [50, 0; 0, -280]
	  DstBlock		  "Signal 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FromWs"
	  SrcPort		  1
	  Points		  [5, 0; 0, -10]
	  DstBlock		  "Demux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [3, 1]
      Position		      [320, 188, 345, 232]
      ShowName		      off
      Inputs		      "|+--"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Scope
      Name		      "Ui"
      Ports		      [1]
      Position		      [925, 304, 955, 336]
      Location		      [366, 482, 690, 721]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Un"
      Ports		      [1]
      Position		      [920, 194, 950, 226]
      Location		      [364, 183, 688, 422]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "UnSet"
      Ports		      [1]
      Position		      [915, 114, 945, 146]
      Location		      [83, 132, 407, 371]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      DataFormat	      "StructureWithTime"
    }
    Line {
      SrcBlock		      "DDC"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [0, 0; 60, 0]
      Branch {
	Points			[0, 210]
	DstBlock		"Memory"
	DstPort			1
      }
      Branch {
	DstBlock		"Un"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [95, 0; 0, -70]
      DstBlock		      "UnSet"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [0, 0; 30, 0]
      Branch {
	Points			[65, 0; 0, 100]
	DstBlock		"Ui"
	DstPort			1
      }
      Branch {
	Points			[0, 80]
	DstBlock		"Memory1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Controller"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	Points			[0, -85]
	DstBlock		"ControllerOut"
	DstPort			1
      }
      Branch {
	DstBlock		"DDC"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Controller"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Signal Builder"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Memory"
      SrcPort		      1
      Points		      [-250, 0; 0, -205]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Compare"
      SrcPort		      1
      Points		      [0, 0; -75, 0]
      Branch {
	Points			[-70, 0; 0, -75]
	DstBlock		"Sum"
	DstPort			3
      }
      Branch {
	Points			[0, 50]
	DstBlock		"Scope3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Memory1"
      SrcPort		      1
      DstBlock		      "Compare"
      DstPort		      1
    }
    Annotation {
      Position		      [796, 78]
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    : H   8    (     @         %    "
"\"     $    !     0         %  0 #     $   !(    9W)I9%-E='1I;F< 8VAA;FYE;', "
"    87AE<P          8V]M;6]N        9&%T85-E=       9&%T85-E=$ED>   #@   #   "
"  &    \"     0         !0    @    !     @    $         !  $ &\\ ;@ .      4 "
"  8    (     @         %    \"     $    !     0         %  0 \"@    $   \"\" "
"   >$1A=&$      'E$871A      !S=&5P6       <W1E<%D      'E-:6X       !Y36%X  "
"      8V]L;W(      &QI;F53='EL90!L:6YE5VED=&@ ;&%B96P      &]U=$EN9&5X  !A;&Q"
"81&%T80  86QL641A=&$           X   !@    !@    @    &          4    (     0  "
"  8    !          D    P              !>C\\+U*%SO/UZ/PO4H7.\\_ 0      ($ !   "
"    @0        \"1 #@   &     &    \"     8         !0    @    !    !@    $   "
"      \"0   #                          V*-P/0K7!T#8HW ]\"M<'0                "
"      .    .     8    (    !@         %    \"     $    !     0         )    "
"\"               #@   #@    &    \"     8         !0    @    !     0    $    "
"     \"0    @               X    P    !@    @    &          4    (           "
"    !          D         #@   #     &    \"     8         !0    @            "
"   $         \"0         .    2     8    (    !@         %    \"     $    #  "
"   0         )    &    $(^Z-FL^NH_                      X    P    !@    @    "
"$          4    (     0    $    !          0  @ M    #@   #@    &    \"     8"
"         !0    @    !     0    $         \"0    @           #X/PX   !     !@ "
"   @    $          4    (     0    @    !          0    0    4P!I &< ;@!A &P "
"(  Q  X    X    !@    @    &          4    (     0    $    !          D    ( "
"           \\#\\.    D     8    (     0         %    \"     $    !     0     "
"    .    8     8    (    !@         %    \"     $    &     0         )    ,  "
"             7H_\"]2A<[S]>C\\+U*%SO/P$      \"!  0      ($         D0 X   \"0"
"    !@    @    !          4    (     0    $    !          X   !@    !@    @  "
"  &          4    (     0    8    !          D    P                         -"
"BC<#T*UP= V*-P/0K7!T                      #@   + !   &    \"     (         !0"
"    @    !     0    $         !0 $  L    !    -P   &-H86YN96QS    >4QI;0     "
"   !L86)E;%!O<P   &QA8F5L2       ;&%B96Q0871C:   #@   #@    &    \"     8    "
"     !0    @    !     0    $         \"0    @           #P/PX   !     !@    @"
"    &          4    (     0    (    !          D    0            X+\\        "
",0 X    P    !@    @    $          4    (     0    (    !          0 ! !4 $P "
"#@   #@    &    \"     8         !0    @    !     0    $         \"0    @    "
"      :\"-0 X    X    !@    @    &          4    (     0    $    !          D"
"    (          &8C4 .    : $   8    (     @         %    \"     $    !     0 "
"        %  0 \"0    $    D    9&ES<%1I;64 9&ES<$UO9&4 ;6EN5&EM90  ;6%X5&EM90 "
"       X   !     !@    @    &          4    (     0    (    !          D    0"
"                       D0 X    X    !@    @    &          4    (     0    $  "
"  !          D    (            \\#\\.    .     8    (    !@         %    \"  "
"   $    !     0         )    \"               #@   #@    &    \"     8       "
"  !0    @    !     0    $         \"0    @            D0 X    X 0  !@    @   "
" \"          4    (     0    $    !          4 !  .     0   \"H   !A8W1I=F5$:"
"7-P261X '1I;65286YG90      ;F%M90                     .    .     8    (    !@"
"         %    \"     $    !     0         )    \"            / _#@   $     & "
"   \"     8         !0    @    !     @    $         \"0   !                  "
"     \"1 #@   $     &    \"     0         !0    @    !    !P    $         !  "
"   X   !' '( ;P!U '  (  Q    #@   #@    &    \"     8         !0    @    !   "
"  0    $         \"0    @           #P/P"
  }
}

⌨️ 快捷键说明

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