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

📄 psbfftdemo.mdl

📁 一定要有说明吗?但是。丹风门地方灵敏度;的。./md dvvddd/.dd /ds,d/ d,
💻 MDL
📖 第 1 页 / 共 2 页
字号:
# $Revision: 1.3 $
Model {
  Name			  "psbfftdemo"
  Version		  5.0
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  on
  ShowLineDimensions	  on
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ExecutionOrder	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks on
  BrowserLookUnderMasks	  on
  Created		  "Fri Aug 31 08:01:53 2001"
  Creator		  "sybille"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Fri May 06 13:55:42 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:46>"
  ConfigurationManager	  "None"
  SimParamPage		  "Solver"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock off
  BufferReuse		  on
  RTWExpressionDepthLimit 5
  SimulationMode	  "normal"
  Solver		  "ode45"
  SolverMode		  "Auto"
  StartTime		  "0.0"
  StopTime		  "1"
  MaxOrder		  5
  MaxStep		  "auto"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  Refine		  "1"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  Decimation		  "1"
  LimitDataPoints	  on
  MaxDataPoints		  "1000"
  SignalLoggingName	  "sigsOut"
  ConsistencyChecking	  "none"
  ArrayBoundsChecking	  "none"
  AlgebraicLoopMsg	  "warning"
  BlockPriorityViolationMsg "warning"
  MinStepSizeMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  DiscreteInheritContinuousMsg "warning"
  MultiTaskRateTransMsg	  "error"
  SingleTaskRateTransMsg  "none"
  CheckForMatrixSingularity "none"
  IntegerOverflowMsg	  "warning"
  Int32ToFloatConvMsg	  "warning"
  ParameterDowncastMsg	  "error"
  ParameterOverflowMsg	  "error"
  ParameterPrecisionLossMsg "warning"
  UnderSpecifiedDataTypeMsg "none"
  UnnecessaryDatatypeConvMsg "none"
  VectorMatrixConversionMsg "none"
  InvalidFcnCallConnMsg	  "error"
  SignalLabelMismatchMsg  "none"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  SfunCompatibilityCheckMsg "none"
  RTWInlineParameters	  off
  BlockReductionOpt	  on
  BooleanDataType	  off
  ConditionallyExecuteInputs on
  ParameterPooling	  on
  OptimizeBlockIOStorage  on
  ZeroCross		  on
  AssertionControl	  "UseLocalSettings"
  ProdHWDeviceType	  "Microprocessor"
  ProdHWWordLengths	  "8,16,32,32"
  RTWSystemTargetFile	  "grt.tlc"
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  RTWRetainRTWFile	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  TLCAssertion		  off
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      DiscreteStateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      SampleTime	      "1"
      Realization	      "auto"
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ShowAdditionalParam     off
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      PortDimensions	      "-1"
      SampleTime	      "-1"
      ShowAdditionalParam     off
      LatchInput	      off
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      MATLABFcn
      MATLABFcn		      "sin"
      OutputDimensions	      "-1"
      OutputSignalType	      "auto"
      Output1D		      on
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Selector
      InputType		      "Vector"
      ElementSrc	      "Internal"
      Elements		      "1"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      PortCounts	      "[]"
      SFunctionModules	      "''"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      ShowAdditionalParam     off
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    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		    "psbfftdemo"
    Location		    [14, 90, 802, 489]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Sin
      Name		      "11th harm.\n30 V "
      Position		      [45, 149, 80, 181]
      SineType		      "Time based"
      Amplitude		      "30"
      Frequency		      "11*50*2*pi"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "19th harm.\n10 V "
      Position		      [45, 209, 80, 241]
      SineType		      "Time based"
      Amplitude		      "10"
      Frequency		      "19*50*2*pi"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "5th harm.\n40 V "
      Position		      [45, 92, 80, 118]
      SineType		      "Time based"
      Amplitude		      "40"
      Frequency		      "5*50*2*pi"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "FFT"
      Ports		      [3, 2]
      Position		      [325, 80, 400, 150]
      AncestorBlock	      "powerlib_extras/Discrete\nMeasurements/FFT"
      TreatAsAtomicUnit	      off
      MaskType		      "Fast Fourier by Matlab Function"
      MaskDescription	      "This block  implements on-line FFT analysis  of"
" 3  signals.\n\nIt can be used as a \"real time\" analyzer during simulation "
"(note speed reduction !) or off line by reading the signals from workspace af"
"ter simulation.\n\nThe F(n) output is a [N,3] matrix of the 3 signal spectra "
" (harmonic orders 0 to N-1), where N is the number of harmonics computed  giv"
"en by : N= 1/f1/Ts/2.\nThe RMS output is a [5,3] matrix of 5 different RMS va"
"lues of the 3 signals: Line 1=  Total RMS; 2=DC component; 3=RMS value of fun"
"damental; 4= RMS value of harmonics; 6=Total  AC rms .\n\nThe 3 spectra are d"
"isplayed on specified Figure number. By selecting different Figure numbers mu"
"ltiple blocks can be used. A mask parameter can be used to modify plot appear"
"ance (1 or -1 row vector)\n"
      MaskPromptString	      "Fundamental frequency f1 (Hz):|Sampling time Ts"
" (s):|FFT Sampling time F(n)|Base peak value (1 for absolute , size=[1 nSigna"
"ls ])|Decimals to display RMS values on spectrum (0 for no text)|Mask (nomall"
"y ones(1,nSignals))|Figure number"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on"
      MaskCallbackString      "||||||"
      MaskEnableString	      "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,"
      MaskVariables	      "f1=@1;Ts=@2;TsFFT=@3;base=@4;nDec=@5;mask=@6;fi"
"gure_N=@7;"
      MaskInitialization      "Navg=fix((1/f1)/Ts);"
      MaskDisplay	      "color('blue');disp('FFT')"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "50|500e-6|0.1|[1 1  1] |0|[1 -1 1]|1"
      System {
	Name			"FFT"
	Location		[2, 74, 790, 537]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "f1(k)"
	  Position		  [30, 48, 60, 62]
	}
	Block {
	  BlockType		  Inport
	  Name			  "f2(k)"
	  Position		  [30, 208, 60, 222]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "f3(k)"
	  Position		  [30, 333, 60, 347]
	  Port			  "3"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Averager1"
	  Ports			  [1, 1]
	  Position		  [85, 36, 165, 74]
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "Shift Register with discrete state space bl"
"ock"
	  MaskDescription	  "This block is a shift register storing valu"
"es [u(k) u(k-1) ... u(k-(Navg-1))]' . This vector can be used for a FFT analy"
"sis."
	  MaskHelp		  "This block is a shift register storing valu"
"es [u(k) u(k-1) ... u(k-(Navg-1))]' . This vector can be used for a FFT analy"
"sis."
	  MaskPromptString	  "Number of Samples inl. in(k)|Inititial Cond"
"ition|Sample Time (-1 for inherited)"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "Navg=@1;x0=@2;Ts=@3;"
	  MaskInitialization	  "%Discrete State Space model of averager\n%o"
"ne scalar input\n%Navg sized output [in(k) in(k-1) .... in(k-(Navg-1))]\nQ=ey"
"e(Navg-1);\nA=[Q(:,2:length(Q))  Q(:,1)] ;\nA(1,Navg-1)=0;\nB=[1 ; zeros(Navg"
"-2,1)];\nC=eye(Navg) ;\nC=C(:,2:length(C));\nD=[1 ; zeros(Navg-1,1)];\n\n\n\n"
	  MaskDisplay		  "disp('Shift\\nRegister')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Navg|0|Ts"
	  System {
	    Name		    "Averager1"
	    Location		    [172, 161, 753, 519]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "u"
	      Position		      [35, 183, 65, 197]
	    }
	    Block {
	      BlockType		      DiscreteStateSpace
	      Name		      "Discrete State-Space"
	      Position		      [155, 172, 275, 208]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "D"
	      X0		      "x0"
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "[u;x]"
	      Position		      [350, 183, 380, 197]
	    }
	    Line {
	      SrcBlock		      "Discrete State-Space"
	      SrcPort		      1
	      DstBlock		      "[u;x]"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "u"
	      SrcPort		      1
	      DstBlock		      "Discrete State-Space"
	      DstPort		      1
	    }
	  }
	}

⌨️ 快捷键说明

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