Model { Name "tvgte" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines on ShowLineDimensions off ShowPortDataTypes off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Feb 07 14:41:15 2002" Creator "dmedonza" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "dmedonza" ModifiedDateFormat "%" LastModifiedDate "Thu Feb 07 14:41:50 2002" ModelVersionFormat "1.%" ConfigurationManager "rcs" SimParamPage "Diagnostics" StartTime "0.0" StopTime "999999" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-3" AbsTol "1e-3" Refine "1" MaxStep ".10" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" LimitDataPoints off MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "none" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "rtwspox.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "rtwspox30.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "swextcom" 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 on OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt on RTWExpressionDepthLimit 5 BooleanDataType off 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 "tvgte" Location [250, 202, 871, 502] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Constant1" Ports [0, 1] Position [110, 137, 170, 163] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "rand(3,2)" System { Name "Constant1" Location [480, 85, 980, 386] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "Constant1" Position [90, 62, 150, 88] Value "K" VectorParams1D on } Block { BlockType Outport Name "Out1" Position [180, 75, 200, 95] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Scope Name "Scope" Ports [1] Position [480, 60, 510, 90] Floating off Location [752, 100, 1083, 414] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "12.000000" YMin "-3" YMax "3" SaveToWorkspace off SaveName "ScopeData" DataFormat "Array" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sin Name "Sine Wave" Position [105, 53, 150, 97] SineType "Time-based" Amplitude "[1 3]" Bias "0" Frequency "[3 1]" Phase "[2 2]" Samples "10" Offset "0" SampleTime "-1" VectorParams1D on } Block { BlockType SubSystem Name "Time Varying\nMatrix Gain" Ports [2, 1] Position [270, 90, 360, 145] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying matrix gai" "n. The intial gain K determines the resizing of the vector input gain. The ga" "in matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Time" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('K(t)')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "ones(3,2)|-1" MaskVariableAliases "," System { Name "Time Varying\nMatrix Gain" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" LatchInput off Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" DisplayOption "none" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" PortCounts "[]" SFunctionModules "''" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } } } Block { BlockType ToWorkspace Name "To Workspace" Position [415, 112, 465, 128] VariableName "yout" MaxDataPoints "1000" Decimation "1" SampleTime "0" SaveFormat "Array" } Line { SrcBlock "Sine Wave" SrcPort 1 Points [50, 0; 0, 30] DstBlock "Time Varying\nMatrix Gain" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [40, 0; 0, -20] DstBlock "Time Varying\nMatrix Gain" DstPort 2 } Line { SrcBlock "Time Varying\nMatrix Gain" SrcPort 1 Points [25, 0] Branch { Points [0, -45] DstBlock "Scope" DstPort 1 } Branch { DstBlock "To Workspace" DstPort 1 } } } }