Model { Name "testZOH" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "10.0" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" 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 off Created "Wed Jun 2 11:14:21 1999" Creator "rob" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "rob" ModifiedDateFormat "%" LastModifiedDate "Wed Jun 2 11:36:50 1999" ModelVersionFormat "1.%" ConfigurationManager "none" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } 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 "testZOH" Location [48, 155, 748, 552] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Gain Name "Gain1" Position [335, 140, 365, 170] Gain "2" SaturateOnIntegerOverflow on } Block { BlockType Mux Name "Mux" Ports [3, 1, 0, 0, 0] Position [470, 60, 515, 150] ShowName off Inputs "3" DisplayOption "signals" } Block { BlockType Sin Name "Sine Wave" Position [50, 41, 115, 109] Amplitude "1" Frequency "2*pi" Phase "0" SampleTime "0" } Block { BlockType ToWorkspace Name "To Workspace" Position [545, 48, 580, 162] VariableName "simout" Buffer "inf" Decimation "1" SampleTime "-1" SaveFormat "Matrix" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [190, 86, 225, 124] SampleTime ".1" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold1" Position [410, 136, 445, 174] SampleTime ".1" } Line { SrcBlock "Sine Wave" SrcPort 1 Points [30, 0] Branch { Points [0, 30] DstBlock "Zero-Order\nHold" DstPort 1 } Branch { DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Zero-Order\nHold1" SrcPort 1 Points [5, 0] DstBlock "Mux" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "To Workspace" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Zero-Order\nHold1" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 Points [75, 0] Branch { DstBlock "Mux" DstPort 2 } Branch { Points [0, 50] DstBlock "Gain1" DstPort 1 } } } }