Model { Name "XC12" Version 5.1 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off SortedOrder 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 off BrowserLookUnderMasks off Created "Fri Feb 17 14:21:58 2023" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "KRIM" ModifiedDateFormat "%" LastModifiedDate "Fri Feb 17 17:02:10 2023" ModelVersionFormat "1.%" 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 on BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode1" SolverMode "SingleTasking" StartTime "0.0" StopTime "0.02" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "1/200000" 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 on 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 Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Relay OnSwitchValue "eps" OffSwitchValue "eps" OnOutputValue "1" OffOutputValue "0" ShowAdditionalParam off OutputDataTypeScalingMode "All ports same datatype" OutDataType "sfix(16)" OutScaling "2^0" ConRadixGroup "Use specified scaling" ZeroCross on } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off } Block { BlockType SignalGenerator WaveForm "sine" Amplitude "1" Frequency "1" Units "Hertz" VectorParams1D on } Block { BlockType Sin SineType "Time based" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" VectorParams1D on } 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 Switch Criteria "u2 >= Threshold" Threshold "0" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "auto" } } 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 "XC12" Location [132, 79, 998, 434] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Switch Name "D5" Position [385, 130, 415, 160] Threshold "0.65" InputSameDT off } Block { BlockType Switch Name "D6" Position [385, 30, 415, 60] Threshold "0.65" InputSameDT off } Block { BlockType Scope Name "DATAIN" Ports [1] Position [820, 69, 850, 101] Location [686, 451, 1006, 598] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType Sum Name "Diff" Ports [2, 1] Position [540, 65, 565, 105] Inputs "-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sin Name "F3995Hz_0" Position [25, 95, 55, 125] BackgroundColor "lightBlue" SineType "Time based" Amplitude "4" Frequency "2*pi*3995" SampleTime "0" } Block { BlockType TransferFcn Name "F4110Hz" Position [210, 127, 270, 163] Numerator "[-17934.00286944 0]" Denominator "[1 7390.9830007391 667167882.06096]" } Block { BlockType Sin Name "F5327Hz_1" Position [25, 30, 55, 60] BackgroundColor "yellow" SineType "Time based" Amplitude "4" Frequency "2*pi*5327" SampleTime "0" } Block { BlockType TransferFcn Name "F5552Hz" Position [210, 27, 270, 63] Numerator "[-21777.003484321 0]" Denominator "[1 10162.601626016 1217210560.6073]" } Block { BlockType TransferFcn Name "FC1026Hz_A" Position [595, 67, 655, 103] Numerator "[6447.4532559639]" Denominator "[1 6447.4532559639]" } Block { BlockType TransferFcn Name "FC1026Hz_B" Position [675, 67, 735, 103] Numerator "[6447.4532559639]" Denominator "[1 6447.4532559639]" } Block { BlockType TransferFcn Name "FC2257Hz_0" Position [445, 127, 505, 163] Numerator "[14184.397163121]" Denominator "[1 14184.397163121]" } Block { BlockType TransferFcn Name "FC2257Hz_1" Position [445, 27, 505, 63] Numerator "[14184.397163121]" Denominator "[1 14184.397163121]" } Block { BlockType SignalGenerator Name "M_600bauds" Position [25, 180, 55, 210] BackgroundColor "green" WaveForm "square" Frequency "600" } Block { BlockType Switch Name "Switch" Position [130, 65, 160, 95] Threshold "0.5" InputSameDT off } Block { BlockType Scope Name "TAPE" Ports [1] Position [210, 219, 240, 251] Location [64, 357, 644, 580] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType Relay Name "T_OC" Position [770, 70, 800, 100] OnOutputValue "0" OffOutputValue "1" } Block { BlockType Scope Name "Test1" Ports [2] Position [420, 256, 450, 289] Location [140, 451, 660, 672] Open on NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } List { ListType SelectedSignals axes1 "" axes2 "" } YMin "-20~-20" YMax "20~20" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType Scope Name "Test2" Ports [1] Position [615, 219, 645, 251] Location [334, 267, 914, 490] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } YMin "-9" YMax "1" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType Scope Name "Test3" Ports [1] Position [775, 219, 805, 251] Location [180, 381, 760, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } YMin "-12.5" YMax "12.5" SaveName "ScopeData4" DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType Constant Name "Zero" Position [310, 190, 340, 220] Value "0" } Line { SrcBlock "F3995Hz_0" SrcPort 1 Points [20, 0; 0, -20] DstBlock "Switch" DstPort 3 } Line { SrcBlock "F5327Hz_1" SrcPort 1 Points [20, 0; 0, 25] DstBlock "Switch" DstPort 1 } Line { SrcBlock "M_600bauds" SrcPort 1 Points [35, 0; 0, -115] DstBlock "Switch" DstPort 2 } Line { SrcBlock "FC1026Hz_A" SrcPort 1 DstBlock "FC1026Hz_B" DstPort 1 } Line { SrcBlock "FC1026Hz_B" SrcPort 1 Points [5, 0] Branch { DstBlock "T_OC" DstPort 1 } Branch { Points [0, 150] DstBlock "Test3" DstPort 1 } } Line { SrcBlock "T_OC" SrcPort 1 DstBlock "DATAIN" DstPort 1 } Line { SrcBlock "Diff" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "FC1026Hz_A" DstPort 1 } Branch { Points [0, 150] DstBlock "Test2" DstPort 1 } } Line { SrcBlock "FC2257Hz_1" SrcPort 1 Points [5, 0; 0, 30] DstBlock "Diff" DstPort 1 } Line { SrcBlock "D6" SrcPort 1 DstBlock "FC2257Hz_1" DstPort 1 } Line { SrcBlock "D5" SrcPort 1 DstBlock "FC2257Hz_0" DstPort 1 } Line { SrcBlock "FC2257Hz_0" SrcPort 1 Points [5, 0; 0, -50] DstBlock "Diff" DstPort 2 } Line { SrcBlock "Switch" SrcPort 1 Points [15, 0] Branch { Points [0, -35] DstBlock "F5552Hz" DstPort 1 } Branch { Points [0, 65] Branch { DstBlock "F4110Hz" DstPort 1 } Branch { Points [0, 90] DstBlock "TAPE" DstPort 1 } } } Line { SrcBlock "Zero" SrcPort 1 Points [10, 0; 0, -50] Branch { Points [0, -100] DstBlock "D6" DstPort 3 } Branch { DstBlock "D5" DstPort 3 } } Line { SrcBlock "F4110Hz" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [50, 0] Branch { DstBlock "D5" DstPort 2 } Branch { Points [0, -10] DstBlock "D5" DstPort 1 } } Branch { Points [0, 135] DstBlock "Test1" DstPort 2 } } Line { SrcBlock "F5552Hz" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [40, 0] Branch { DstBlock "D6" DstPort 2 } Branch { Points [0, -10] DstBlock "D6" DstPort 1 } } Branch { Points [0, 220] DstBlock "Test1" DstPort 1 } } } }