




已阅读5页,还剩11页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
SIMULINK的模块库介绍(1)Commonly UsedBus CreatorCreate signal busBus SelectorSelect signals from incoming busConstantGenerate constant valueData Type ConversionConvert input signal to specified data typeDemuxExtract and output elements of vector signalDiscrete-Time IntegratorPerform discrete-time integration or accumulation of signalGainMultiply input by constantGroundGround unconnected input portInportCreate input port for subsystem or external inputIntegrator,Integrator LimitedIntegrate signalLogical OperatorPerform specified logical operation on inputMuxCombine several input signals into vectorOutportCreate output port for subsystem or external outputProductMultiply and divide scalars and nonscalars or multiply and invert matricesRelational OperatorPerform specified relational operation on inputsSaturationLimit range of signalScope and Floating ScopeDisplay signals generated during simulationSubsystem,Atomic Subsystem,Nonvirtual Subsystem,CodeReuse SubsystemRepresent system within another systemSum,Add,Subtract,Sum of ElementsAdd or subtract inputsSwitchSwitch output between first input and third input based on value of second inputTerminatorTerminate unconnected output portUnit DelayDelay signal one sample period(2)ContinuousDerivativeOutput time derivative of inputIntegrator,Integrator LimitedIntegrate signalPID ControllerSimulate continuous-or discrete-time PID controllersPID Controller(2 DOF)Simulate continuous-or discrete-time two-degree-of-freedom PID controllersSecond-Order Integrator,Second-Order Integrator LimitedIntegrate input signal twiceState-SpaceImplement linear state-space systemTransfer FcnModel linear system by transfer functionTransport DelayDelay input by given amount of timeVariable Time Delay,Variable Transport DelayDelay input by variable amount of timeZero-PoleModel system by zero-pole-gain transfer function(3)DiscontinuitiesBacklashModel behavior of system with playCoulomb and Viscous FrictionModel discontinuity at zero,with linear gain elsewhereDead ZoneProvide region of zero outputDead Zone DynamicSet inputs within bounds to zeroHit CrossingDetect crossing pointQuantizerDiscretize input at specified intervalRate LimiterLimit rate of change of signalRate Limiter DynamicLimit rising and falling rates of signalRelaySwitch output between two constantsSaturationLimit range of signalSaturation DynamicBound range of inputWrap To ZeroSet output to zero if input is above threshold(4)DiscreteDifferenceCalculate change in signal over one time stepDiscrete DerivativeCompute discrete time derivativeDiscrete FilterModel Infinite Impulse Response(IIR)direct form II filtersDiscrete FIR FilterModel FIR filtersDiscrete State-SpaceImplement discrete state-space systemDiscrete Transfer FcnImplement discrete transfer functionDiscrete Zero-PoleModel system defined by zeros and poles of discrete transfer functionDiscrete-Time IntegratorPerform discrete-time integration or accumulation of signalFirst-Order HoldImplement first-order sample-and-holdInteger DelayDelay signal N sample periodsMemoryOutput input from previous time stepPID ControllerSimulate continuous-or discrete-time PID controllersPID Controller(2 DOF)Simulate continuous-or discrete-time two-degree-of-freedom PID controllersTapped DelayDelay scalar signal multiple sample periods and output all delayed versionsTransfer Fcn First OrderImplement discrete-time first order transfer functionTransfer Fcn Lead or LagImplement discrete-time lead or lag compensatorTransfer Fcn Real ZeroImplement discrete-time transfer function that has real zero and no poleUnit DelayDelay signal one sample periodZero-Order HoldImplement zero-order hold of one sample period(5)Logic and Bit OperationsBit ClearSet specified bit of stored integer to zeroBit SetSet specified bit of stored integer to oneBitwise OperatorSpecified bitwise operation on inputsCombinatorial LogicImplement truth tableCompare To ConstantDetermine how signal compares to specified constantCompare To ZeroDetermine how signal compares to zeroDetect ChangeDetect change in signal valueDetect DecreaseDetect decrease in signal valueDetect Fall NegativeDetect falling edge when signal value decreases to strictly negative value,and its previous value was nonnegativeDetect Fall NonpositiveDetect falling edge when signal value decreases to nonpositive value,and its previous value was strictly positiveDetect IncreaseDetect increase in signal valueDetect Rise NonnegativeDetect rising edge when signal value increases to nonnegative value,and its previous value was strictly negativeDetect Rise PositiveDetect rising edge when signal value increases to strictly positive value,and its previous value was nonpositiveExtract BitsOutput selection of contiguous bits from input signalInterval TestDetermine if signal is in specified intervalInterval Test DynamicDetermine if signal is in specified intervalLogical OperatorPerform specified logical operation on inputRelational OperatorPerform specified relational operation on inputsShift ArithmeticShift bits or binary point of signal(6)Lookup TablesDirect Lookup Table(n-D)Index into N-dimensional table to retrieve element,column,or 2-D matrixInterpolation Using PrelookupUse precalculated index and fraction values to accelerate approximation of N-dimensional functionLookup TableApproximate one-dimensional functionLookup Table(2-D)Approximate two-dimensional functionLookup Table(n-D)Approximate N-dimensional functionLookup Table DynamicApproximate one-dimensional function using dynamic tablePrelookupCompute index and fraction for Interpolation Using Prelookup blockSine,CosineImplement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry(7)Math OperationsAbsOutput absolute value of inputAlgebraic ConstraintConstrain input signal to zeroAssignmentAssign values to specified elements of signalBiasAdd bias to inputComplex to Magnitude-AngleCompute magnitude and/or phase angle of complex signalComplex to Real-ImagOutput real and imaginary parts of complex input signalDivideDivide one input by anotherDot ProductGenerate dot product of two vectorsFindFind nonzero elements in arrayGainMultiply input by constantMagnitude-Angle to ComplexConvert magnitude and/or a phase angle signal to complex signalMath FunctionPerform mathematical functionMatrix Concatenate,Vector ConcatenateConcatenate input signals of same data type to create contiguous output signalMinMaxOutput minimum or maximum input valueMinMax Running ResettableDetermine minimum or maximum of signal over timePermute DimensionsRearrange dimensions of multidimensional array dimensionsPolynomialPerform evaluation of polynomial coefficients on input valuesProductMultiply and divide scalars and nonscalars or multiply and invert matricesProduct of ElementsCopy or invert one scalar input,or collapse one nonscalar inputReal-Imag to ComplexConvert real and/or imaginary inputs to complex signalReshapeChange dimensionality of signalRounding FunctionApply rounding function to signalSignIndicate sign of inputSine Wave FunctionGenerate sine wave,using external signal as time sourceSlider GainVary scalar gain using sliderSqrt,Signed Sqrt,Reciprocal SqrtCalculate square root,signed square root,or reciprocal of square rootSqueezeRemove singleton dimensions from multidimensional signalSum,Add,Subtract,Sum of ElementsAdd or subtract inputsTrigonometric FunctionSpecified trigonometric function on inputUnary MinusNegate inputWeighted Sample Time MathSupport calculations involving sample time(8)Model VerificationAssertionCheck whether signal is zeroCheck Discrete GradientCheck that absolute value of difference between successive samples of discrete signal is less than upper boundCheck Dynamic GapCheck that gap of possibly varying width occurs in range of signals amplitudesCheck Dynamic Lower BoundCheck that one signal is always less than another signalCheck Dynamic RangeCheck that signal falls inside range of amplitudes that varies from time step to time stepCheck Dynamic Upper BoundCheck that one signal is always greater than another signalCheck Input ResolutionCheck that input signal has specified resolutionCheck Static GapCheck that gap exists in signals range of amplitudesCheck Static Lower BoundCheck that signal is greater than(or optionally equal to)static lower boundCheck Static RangeCheck that signal falls inside fixed range of amplitudesCheck Static Upper BoundCheck that signal is less than(or optionally equal to)static upper bound(9)Model-Wide UtilitiesBlock Support TableView data type support for Simulink blocksDocBlockCreate text that documents model and save text with modelModel InfoDisplay revision control information in modelTimed-Based LinearizationGenerate linear models in base workspace at specific timesTrigger-Based LinearizationGenerate linear models in base workspace when triggered(10)Ports&SubsystemsTriggerAdd trigger port to model or subsystemAction PortImplement Action subsystems used by if and switch control flow statements in Simulink softwareConfigurable SubsystemRepresent any block selected from user-specified library of blocksEnableAdd enabling port to subsystemEnabled and Triggered SubsystemRepresent subsystem whose execution is enabled and triggered by external inputEnabled SubsystemRepresent subsystem whose execution is enabled by external inputFor EachEnable blocks inside For Each Subsystem to process elements or subarrays of input signal independentlyFor Each SubsystemRepeatedly perform algorithm on each element or subarray of input signal and concatenate resultsFor IteratorRepeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limitFor Iterator SubsystemRepresent subsystem that executes repeatedly during simulation time stepFunction-Call GeneratorExecute function-call subsystem specified number of times at specified rateFunction-Call SplitProvide junction for splitting function-call signalFunction-Call SubsystemRepresent subsystem that can be invoked as function by another blockIfModel if-else control flowIf Action SubsystemRepresent subsystem whose execution is triggered by If blockInportCreate input port for subsystem or external inputModelInclude model as block in another modelOutportCreate output port for subsystem or external outputSubsystem,Atomic Subsystem,Nonvirtual Subsystem,CodeReuse SubsystemRepresent system within another systemSwitch CaseImplement C-like switch control flow statementSwitch Case Action SubsystemRepresent subsystem whose execution is triggered by Switch Case blockTriggered SubsystemRepresent subsystem whose execution is triggered by external inputWhile Iterator SubsystemRepresent subsystem that executes repeatedly while condition is satisfied during simulation time step(11)Signal AttributesSignal SpecificationSpecify desired dimensions,sample time,data type,numeric type,and other attributes of signalBus to VectorConvert virtual bus to vectorData Type ConversionConvert input signal to specified data typeData Type Conversion InheritedConvert from one data type to another using inherited data type and scalingData Type DuplicateForce all inputs to same data typeData Type PropagationSet data type and scaling of propagated signal based on information from reference signalsData Type Scaling StripRemove scaling and map to built in integerICSet initial value of signalProbeOutput signals attributes,including width,dimensionality,sample time,and/or complex signal flagRate TransitionHandle transfer of data between blocks operating at different ratesSignal ConversionConvert signal to new type without altering signal valuesWeighted Sample TimeSupport calculations involving sample timeWidthOutput width of input vector(12)Signal RoutingBus AssignmentReplace specified bus elementsBus CreatorCreate signal busBus SelectorSelect signals from incoming busData Store MemoryDefine data storeData Store ReadRead data from data storeData Store WriteWrite data to data storeDemuxExtract and output elements of vector signalEnvironment ControllerCreate branches of block diagram that apply only to simulation or only to code generationFromAccept input from Goto blockGotoPass block input to From blocksGoto Tag VisibilityDefine scope of Goto block tagIndex VectorSwitch output between different inputs based on value of first inputManual SwitchSwitch between two inputsMergeCombine multiple signals into single signalMultiport SwitchChoose between multiple block inputsMuxCombine several input signals into vectorSelectorSelect input elements from vector,matrix,or multidimensional signalSwitchSwitch output between first input and third input based on value of second input(13)SinksDisplayShow value of inputOutportCreate output port for subsystem or external outputScope and Floating ScopeDisplay signals generated during simulationStop SimulationStop simulation when input is nonzeroTerminatorTerminate unconnected output portTo FileWrite data to fileTo WorkspaceWrite data to MATLAB workspaceXY GraphDisplay X-Y plot of signals using MATLAB figure window(14)SourcesBand-Limited White NoiseIntroduce white noise into continuous systemChirp SignalGenerate sine wave with increasing frequencyClockDisplay and provide simulation timeConstantGenerate constant valueCounter Free-RunningCount up and overflow back to zero after reaching maximum value for specified number of bitsCounter LimitedCount up and wrap back to zero after outputting specified upper limitDigital ClockOutput
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 面向2025的工业互联网平台联邦学习隐私保护技术创新动态报告
- 自考专业(计算机信息管理)通关题库及完整答案详解
- 企业品牌塑造策略与实践案例分享会
- 自考专业(计算机信息管理)考试黑钻押题含答案详解(轻巧夺冠)
- 三农服务体系升级方案设计书
- 中级银行从业资格之中级银行业法律法规与综合能力综合检测提分完整答案详解
- 咨询工程师高频难、易错点题附完整答案详解(全优)
- 电竞公司薪酬体系管理办法
- 注册公用设备工程师通关题库及完整答案详解一套
- 自考专业(电子商务)试题预测试卷【考点提分】附答案详解
- 中医辨证施护课件
- 学校十五五规划(同名11527)
- 高中心理健康测试题及答案大全
- 小学二年级上册《健康成长》全册教学设计
- 蓝色简约风医学生职业生涯规划展示模板
- 土建安全员c类考试试题及答案
- T/SHPTA 031-2022电缆和光缆用复合防护尼龙12护套料
- 高中生国防教育
- 汕头侨乡文化课件下载
- 体育公园大众冰雪运动项目配置指南 DB23T 3943-2025
- 值长面试题及答案
评论
0/150
提交评论