Model { Name "model_PWM_dspic" Version 7.4 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.7" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" MaxMDLFileLineLength 120 Created "Tue Apr 05 13:26:21 2011" Creator "ELMAY" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ELMAY" ModifiedDateFormat "%" LastModifiedDate "Fri Apr 15 00:43:53 2011" RTWModifiedTimeStamp 224728725 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" 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 ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.6.0" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 2 Version "1.6.0" StartTime "0.0" StopTime "0.08" AbsTol "auto" FixedStep "0.00001" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 3 Version "1.6.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.6.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on ExpressionFolding on BooleansAsBitfields off EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode on LifeSpan "1" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.6.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "warning" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.6.0" Array { Type "Cell" Dimension 2 Cell "ProdHWDeviceType" Cell "ProdEqTarget" PropName "DisabledProps" } ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 16 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "LittleEndian" ProdWordSize 16 ProdShiftRightIntArith on ProdHWDeviceType "16-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.6.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.SFSimCC { $ObjectID 8 Version "1.6.0" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.6.0" Array { Type "Cell" Dimension 1 Cell "TargetLang" PropName "DisabledProps" } SystemTargetFile "dspic.tlc" GenCodeOnly off MakeCommand "make_CreateMPLAB" GenerateMakefile on TemplateMakefile "dspic_pic30_gcc.tmf" PostCodeGenCommand "dsPIC_Compile()" Description "Embedded Target for Microchip dsPIC (real-time)" GenerateReport on SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "dspic_make_rtw_hook" ConfigAtBuild off RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport on LaunchReport on TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.6.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses off IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.STFCustomTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.6.0" Array { Type "Cell" Dimension 6 Cell "GenerateSampleERTMain" Cell "MatFileLogging" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" Cell "ModelReferenceCompliant" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn off GeneratePreprocessorConditionals "Use local settings" CombineOutputUpdateFcns on SuppressErrorStatus on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off SystemTargetFile "dspic.tlc" DialogCategory 0 Array { Type "Handle" Dimension 1 Simulink.ERTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 12 Version "1.6.0" Array { Type "Cell" Dimension 9 Cell "GenerateSampleERTMain" Cell "GenerateErtSFunction" Cell "MatFileLogging" Cell "GRTInterface" Cell "ERTCustomFileTemplate" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" Cell "ModelReferenceCompliant" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn off GeneratePreprocessorConditionals "Use local settings" CombineOutputUpdateFcns on SuppressErrorStatus on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off GenerateErtSFunction off GenerateASAP2 off ExtMode off ExtModeTransport 0 ExtModeStaticAlloc off ExtModeStaticAllocSize 1000000 ExtModeTesting off ExtModeMexFile "ext_serial_win32_comm" ExtModeIntrfLevel "Level1" InlinedParameterPlacement "NonHierarchical" TargetOS "BareBoardExample" MultiInstanceErrorCode "Error" RateGroupingCode on RootIOFormat "Individual arguments" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off ERTSrcFileBannerTemplate "dsPIC_code_template.cgt" ERTHdrFileBannerTemplate "dsPIC_code_template.cgt" ERTDataSrcFileTemplate "dsPIC_code_template.cgt" ERTDataHdrFileTemplate "dsPIC_code_template.cgt" ERTCustomFileTemplate "dsPIC_main.tlc" ModuleNamingRule "Unspecified" SignalDisplayLevel 10 ParamTuneLevel 10 GlobalDataDefinition "Auto" DataDefinitionFile "global.c" GlobalDataReference "Auto" DataReferenceFile "global.h" GRTInterface off PreserveExpressionOrder off PreserveIfCondition off ConvertIfToSwitch off PreserveExternInFcnDecls on EnableUserReplacementTypes off Array { Type "Struct" Dimension 1 MATStruct { double "" single "" int32 "" int16 "" int8 "" uint32 "" uint16 "" uint8 "" boolean "" int "" uint "" char "" } PropName "ReplacementTypes" } MemSecPackage "--- None ---" MemSecDataConstants "Default" MemSecDataIO "Default" MemSecDataInternal "Default" MemSecDataParameters "Default" MemSecFuncInitTerm "Default" MemSecFuncExecute "Default" } PropName "Components" } CustomProperty { DataType "string" Name "GMAKE_PLACE" Value "D:\\PROGRA~1\\MATLAB\\R2009b\\bin\\win32\\gmake" } CustomProperty { DataType "string" Name "OPTIM_GCC" Value "-mcpu=30f4011 -O3 -fschedule-insns -fschedule-insns2 " } CustomProperty { DataType "string" Name "LDFLAGS" Value " -Xlinker -t -Xlinker --report-mem -Xlinker -Map=../untitled.map -Xlinker --heap=0 -Xlinker -cref" } CustomProperty { DataType "string" Name "LDPICTYPE" Value " -Xlinker --script=D:\\PROGRA~1\\MICROC~1\\mplabc30\\v3.25\\support\\dsPIC30F\\gld\\p30f4011.gld" } CustomProperty { DataType "string" Name "LDLIBPIC" Value " D:\\PROGRA~1\\MICROC~1\\mplabc30\\v3.25\\lib\\libpic30-coff.a D:\\PROGRA~1\\MICROC~1\\mplabc30\\v3.25\\lib" "\\dsPIC30F\\libp30f4011-coff.a D:\\PROGRA~1\\MICROC~1\\mplabc30\\v3.25\\lib\\libc-coff.a D:\\PROGRA~1\\MICROC~1\\mpl" "abc30\\v3.25\\lib\\libm-coff.a" } CustomProperty { DataType "string" Name "PIC_INCLUDES" Value " D:\\PROGRA~1\\MICROC~1\\mplabc30\\v3.25\\include" } CustomProperty { DataType "string" Name "PIC_REF" Value "30f4011" } CustomProperty { DataType "string" Name "GCCPATH" Value "''" } } PropName "Components" } } hdlcoderui.hdlcc { $ObjectID 13 Version "1.6.0" Description "HDL Coder custom configuration component" Name "HDL Coder" Array { Type "Cell" Dimension 1 Cell "" PropName "HDLConfigFile" } HDLCActiveTab "0" } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 " CurrentDlgPage "Solver" ConfigPrmDlgPosition " [ 72, 69, 952, 699 ] " } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" LockScale off SampleTime "inf" FramePeriod "inf" } Block { BlockType DataTypeConversion OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via back propagation" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Inherit via back propagation" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType DiscreteIntegrator IntegratorMethod "Integration: Forward Euler" gainval "1.0" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" InitialConditionMode "State and output" SampleTime "1" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow off LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off IgnoreLimit off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" SampleTime "-1" } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" ZeroCross on SampleTime "-1" } Block { BlockType Scope 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 SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } } System { Name "model_PWM_dspic" Location [2, 82, 1014, 722] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" SIDHighWatermark 487 Block { BlockType Reference Name "Configure Model \nfor dsPIC" SID 1 Ports [] Position [115, 29, 234, 95] ForegroundColor "blue" BackgroundColor "yellow" NamePlacement "alternate" LibraryVersion "3.19" FontName "Arial" FontWeight "bold" SourceBlock "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC" SourceType "" } Block { BlockType DataTypeConversion Name "Data Type Conversion" SID 189 Position [290, 148, 365, 182] OutDataTypeMode "boolean" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion1" SID 366 Position [290, 228, 365, 262] OutDataTypeMode "boolean" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion2" SID 479 Position [290, 308, 365, 342] OutDataTypeMode "boolean" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion3" SID 481 Position [555, 148, 630, 182] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "uint16" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion4" SID 484 Position [555, 228, 630, 262] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "uint16" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion5" SID 485 Position [555, 308, 630, 342] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "uint16" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Generate Code" SID 3 Ports [] Position [555, 30, 679, 96] ForegroundColor "blue" BackgroundColor "yellow" DropShadow on NamePlacement "alternate" LibraryVersion "3.19" SourceBlock "dsPICdrivers/Simulink Configuration/Generate Code" SourceType "" } Block { BlockType Reference Name "Input Capture" SID 188 Tag "dsPIC_PWM_IC" Ports [0, 6] Position [35, 141, 205, 389] Priority "5" LibraryVersion "3.19" FontName "Arial" FontSize 14 SourceBlock "dsPICdrivers/Peripheral I//O/Input Capture" SourceType "Input driver for Input Capture Peripheral" IntPriority "7" Channel "[ 1 2 7]" Channel_UP_Down_Periode "[5 5 5]" MaxChannel "[0.01 0.01 0.01]" SafeMarge "[10 10 10]" MaxName " ' IC1max , IC2max , IC7max ' " Precision "[13.8725 13.8725 13.8725]" Timer "[2 2 2]" ChangeDetected "[0 0 0]" ChangeDetectedPortRef "3" SampleTime "-1" Status "OK" } Block { BlockType Reference Name "Master" SID 4 Tag "dsPIC_MASTER" Ports [] Position [349, 32, 461, 95] BackgroundColor "lightBlue" DropShadow on NamePlacement "alternate" Priority "1" LibraryVersion "3.19" List { ListType RTWdata NumBusyPort "-1" } FontName "Arial" FontWeight "bold" FontAngle "italic" SourceBlock "dsPICdrivers/Master" SourceType "Master" TimeStepType "Timer1" picType "30f4011" fcy "12e6" Quartz_33f "5e6" PLLActive_33f off fcyDesired_33f "0" tmr1 "[1 119 1.1842e-014]" tmr1Info "Time Step : 1e-005 ; Error : 1.1842e-014% PR1=119" tmr2345 "[8 0 0 0]" tmr2345cfg "[-1 -1 -1 -1]" IOautoConf on typePort "[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 6 0 0 0 0 0 0 0 0 0 " "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " " 0 0 0 0 0 0 ]" TRIS "[ 65535 65535 65535 65535 65535 65535 65535 ]" ADPCFG "48" MasterBusyPort "None" MasterOverloadPort "None" FOSC "HS" ClockSwitchMonitor "Both disabled" TempProtection_33f "TEMP_ON" FPBOR "PBOR_OFF" PWRT "PWRT_OFF" MCLR "MCLR_DIS" ICD "ICS_PGD1" JTAGEN "JTAGEN_OFF" PowerSave off OverrideFcy off NewFcy "1e6" PR2345 "[65535 65535 65535 65535]" } Block { BlockType Reference Name "PWM Motor Output" SID 480 Tag "dsPIC_PWM_Motor" Ports [1] Position [750, 136, 900, 194] Priority "5" LibraryVersion "3.19" SourceBlock "dsPICdrivers/Peripheral I//O/PWM Motor Output" SourceType "PWM Motor Output" PWMref "1" PWM12 "1" InputEnableChk off InputPeriodeChk off Channel "[1 ]" TPeriode "0.02" PrescalerValue "16" PeriodeInteger "15000" MaxName "'PWM'" Centered off HChannelON off Info "Nbr Bits : 14.8727 || PWM = 30000 || Prescaler = 16" Delay "0" IntPriority "5" nbrPwmChannelPIC "3" Status "OK" DeadTimePrescaleA "0" DeadTimePrescaleB "0" DeadTimeInfo "Dead Time A = 0" DTPWM1a "Prescaler A" DTPWM1i "Prescaler A" DTPWM2a "Prescaler A" DTPWM2i "Prescaler A" DTPWM3a "Prescaler A" DTPWM3i "Prescaler A" DTPWM4a "Prescaler A" DTPWM4i "Prescaler A" DTCON1 "0" DTCON2 "0" } Block { BlockType Reference Name "PWM Motor Output1" SID 486 Tag "dsPIC_PWM_Motor" Ports [1] Position [750, 296, 900, 354] Priority "5" LibraryVersion "3.19" SourceBlock "dsPICdrivers/Peripheral I//O/PWM Motor Output" SourceType "PWM Motor Output" PWMref "1" PWM12 "1" InputEnableChk off InputPeriodeChk off Channel "[3 ]" TPeriode "0.02" PrescalerValue "16" PeriodeInteger "15000" MaxName "'PWM'" Centered off HChannelON off Info "Nbr Bits : 14.8727 || PWM = 30000 || Prescaler = 16" Delay "0" IntPriority "5" nbrPwmChannelPIC "3" Status "OK" DeadTimePrescaleA "0" DeadTimePrescaleB "0" DeadTimeInfo "Dead Time A = 0" DTPWM1a "Prescaler A" DTPWM1i "Prescaler A" DTPWM2a "Prescaler A" DTPWM2i "Prescaler A" DTPWM3a "Prescaler A" DTPWM3i "Prescaler A" DTPWM4a "Prescaler A" DTPWM4i "Prescaler A" DTCON1 "0" DTCON2 "0" } Block { BlockType Reference Name "PWM Motor Output2" SID 483 Tag "dsPIC_PWM_Motor" Ports [1] Position [750, 216, 900, 274] Priority "5" LibraryVersion "3.19" SourceBlock "dsPICdrivers/Peripheral I//O/PWM Motor Output" SourceType "PWM Motor Output" PWMref "1" PWM12 "1" InputEnableChk off InputPeriodeChk off Channel "[2 ]" TPeriode "0.02" PrescalerValue "16" PeriodeInteger "15000" MaxName "'PWM'" Centered off HChannelON off Info "Nbr Bits : 14.8727 || PWM = 30000 || Prescaler = 16" Delay "0" IntPriority "5" nbrPwmChannelPIC "3" Status "OK" DeadTimePrescaleA "0" DeadTimePrescaleB "0" DeadTimeInfo "Dead Time A = 0" DTPWM1a "Prescaler A" DTPWM1i "Prescaler A" DTPWM2a "Prescaler A" DTPWM2i "Prescaler A" DTPWM3a "Prescaler A" DTPWM3i "Prescaler A" DTPWM4a "Prescaler A" DTPWM4i "Prescaler A" DTCON1 "0" DTCON2 "0" } Block { BlockType Scope Name "Scope4" SID 487 Ports [1] Position [680, 439, 710, 471] Floating off Location [1, 52, 1025, 737] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-1" YMax "1" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Subsystem" SID 5 Ports [1, 1] Position [435, 135, 475, 195] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Subsystem" Location [0, 82, 995, 744] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 252 Position [30, 168, 60, 182] IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 253 Ports [2, 1] Position [320, 47, 350, 78] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" SID 254 Ports [2, 1] Position [290, 222, 320, 253] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add2" SID 255 Ports [2, 1] Position [290, 277, 320, 308] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add3" SID 256 Ports [2, 1] Position [305, 422, 335, 453] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add4" SID 257 Ports [2, 1] Position [305, 472, 335, 503] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add5" SID 258 Ports [2, 1] Position [305, 522, 335, 553] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add6" SID 259 Ports [2, 1] Position [285, 332, 315, 363] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add7" SID 260 Ports [2, 1] Position [285, 382, 315, 413] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add8" SID 261 Ports [2, 1] Position [305, 572, 335, 603] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add9" SID 262 Ports [2, 1] Position [305, 622, 335, 653] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Constant1" SID 263 Position [160, 73, 210, 97] Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 264 Position [200, 418, 250, 442] NamePlacement "alternate" Value "180" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 265 Position [30, 43, 80, 67] NamePlacement "alternate" Value "2.9026" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 266 Position [35, 233, 85, 257] NamePlacement "alternate" Value "21.2370" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant5" SID 267 Position [35, 288, 85, 312] NamePlacement "alternate" Value "30.7691" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant6" SID 268 Position [35, 343, 85, 367] NamePlacement "alternate" Value "42.7750" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant7" SID 269 Position [35, 388, 85, 412] NamePlacement "alternate" Value "54.4892" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 270 Ports [2, 1] Position [445, 136, 515, 174] ShowName off IntegratorMethod "Integration: Trapezoidal" ExternalReset "rising" InitialConditionSource "internal" InitialConditionMode "State only (most efficient)" SampleTime "-1" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Logic Name "Logical\nOperator" SID 272 Ports [2, 1] Position [735, 270, 770, 310] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID 273 Ports [2, 1] Position [725, 495, 760, 535] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator2" SID 274 Ports [1, 1] Position [835, 605, 870, 645] ShowName off Operator "NOT" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID 275 Ports [2, 1] Position [790, 605, 825, 645] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator4" SID 276 Ports [2, 1] Position [805, 315, 840, 355] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID 277 Ports [2, 1] Position [900, 425, 935, 465] ShowName off AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 279 Ports [2, 1] Position [580, 98, 610, 122] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator10" SID 280 Ports [2, 1] Position [580, 376, 615, 409] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator11" SID 281 Ports [2, 1] Position [655, 320, 690, 355] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator12" SID 282 Ports [2, 1] Position [580, 573, 610, 597] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator13" SID 283 Ports [2, 1] Position [580, 623, 610, 647] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator14" SID 284 Ports [2, 1] Position [650, 540, 685, 575] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 285 Ports [2, 1] Position [555, 223, 585, 247] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 286 Ports [2, 1] Position [640, 210, 675, 245] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator4" SID 287 Ports [2, 1] Position [580, 278, 610, 302] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator5" SID 288 Ports [2, 1] Position [580, 423, 610, 447] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator6" SID 289 Ports [2, 1] Position [580, 473, 610, 497] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator7" SID 290 Ports [2, 1] Position [580, 523, 610, 547] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator8" SID 291 Ports [2, 1] Position [655, 445, 690, 480] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator9" SID 292 Ports [2, 1] Position [580, 326, 615, 359] ShowName off Operator ">" } Block { BlockType Scope Name "Scope2" SID 293 Ports [1] Position [930, 229, 960, 261] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" SID 294 Ports [1] Position [785, 59, 815, 91] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope4" SID 295 Ports [1] Position [630, 29, 660, 61] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Gain Name "Talpha1" SID 296 Position [410, 224, 440, 256] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha10" SID 297 Position [415, 624, 445, 656] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha2" SID 298 Position [410, 279, 440, 311] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha3" SID 299 Position [465, 49, 495, 81] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha4" SID 300 Position [415, 424, 445, 456] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha5" SID 301 Position [420, 474, 450, 506] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha6" SID 302 Position [415, 524, 445, 556] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha7" SID 303 Position [410, 334, 440, 366] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha8" SID 304 Position [410, 384, 440, 416] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha9" SID 305 Position [415, 574, 445, 606] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "freq" SID 306 Position [295, 132, 340, 158] Value "50" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out1" SID 307 Position [960, 438, 990, 452] IconDisplay "Port number" } Line { SrcBlock "Add9" SrcPort 1 DstBlock "Talpha10" DstPort 1 } Line { SrcBlock "Talpha10" SrcPort 1 DstBlock "Relational\nOperator13" DstPort 2 } Line { SrcBlock "Relational\nOperator13" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 2 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 Points [10, 0] DstBlock "Logical\nOperator5" DstPort 2 } Line { SrcBlock "Logical\nOperator4" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator5" DstPort 1 } Line { SrcBlock "Logical\nOperator3" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Logical\nOperator1" SrcPort 1 Points [10, 0] DstBlock "Logical\nOperator3" DstPort 1 } Line { SrcBlock "Relational\nOperator14" SrcPort 1 Points [20, 0] DstBlock "Logical\nOperator1" DstPort 2 } Line { SrcBlock "Relational\nOperator7" SrcPort 1 Points [20, 0] DstBlock "Relational\nOperator14" DstPort 1 } Line { SrcBlock "Relational\nOperator12" SrcPort 1 Points [10, 0; 0, -20] DstBlock "Relational\nOperator14" DstPort 2 } Line { SrcBlock "Talpha9" SrcPort 1 DstBlock "Relational\nOperator12" DstPort 2 } Line { SrcBlock "Add8" SrcPort 1 DstBlock "Talpha9" DstPort 1 } Line { SrcBlock "Relational\nOperator10" SrcPort 1 Points [75, 0] Branch { Points [95, 0] DstBlock "Logical\nOperator4" DstPort 2 } Branch { Points [0, -320] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Relational\nOperator11" SrcPort 1 Points [20, 0; 0, -40] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator9" SrcPort 1 DstBlock "Relational\nOperator11" DstPort 2 } Line { SrcBlock "Talpha8" SrcPort 1 DstBlock "Relational\nOperator10" DstPort 2 } Line { SrcBlock "Talpha7" SrcPort 1 DstBlock "Relational\nOperator9" DstPort 2 } Line { SrcBlock "Add7" SrcPort 1 DstBlock "Talpha8" DstPort 1 } Line { SrcBlock "Add6" SrcPort 1 DstBlock "Talpha7" DstPort 1 } Line { SrcBlock "Constant7" SrcPort 1 Points [0, 5; 95, 0] Branch { DstBlock "Add7" DstPort 2 } Branch { Points [0, 40] DstBlock "Add3" DstPort 2 } } Line { SrcBlock "Constant6" SrcPort 1 Points [80, 0] Branch { DstBlock "Add6" DstPort 2 } Branch { Points [0, 140] DstBlock "Add4" DstPort 2 } } Line { SrcBlock "Constant2" SrcPort 1 Points [20, 0] Branch { DstBlock "Add3" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add4" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add5" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add8" DstPort 1 } Branch { Points [0, 50] DstBlock "Add9" DstPort 1 } } } } } Line { SrcBlock "Add4" SrcPort 1 DstBlock "Talpha5" DstPort 1 } Line { SrcBlock "Add5" SrcPort 1 DstBlock "Talpha6" DstPort 1 } Line { SrcBlock "Constant5" SrcPort 1 Points [65, 0] Branch { DstBlock "Add2" DstPort 2 } Branch { Points [0, 245] DstBlock "Add5" DstPort 2 } } Line { SrcBlock "Constant4" SrcPort 1 Points [50, 0] Branch { DstBlock "Add1" DstPort 2 } Branch { Points [0, 350] DstBlock "Add8" DstPort 2 } } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Talpha1" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [0, -15; 20, 0] Branch { DstBlock "Add" DstPort 2 } Branch { Points [0, 190] Branch { DstBlock "Add1" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Add2" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Add6" DstPort 1 } Branch { Points [0, 20] DstBlock "Add7" DstPort 1 } } } } } Line { SrcBlock "Constant3" SrcPort 1 Points [20, 0] Branch { DstBlock "Add" DstPort 1 } Branch { Points [0, 590] DstBlock "Add9" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 DstBlock "Talpha3" DstPort 1 } Line { SrcBlock "Relational\nOperator8" SrcPort 1 Points [10, 0; 0, 40] DstBlock "Logical\nOperator1" DstPort 1 } Line { SrcBlock "Relational\nOperator6" SrcPort 1 Points [20, 0; 0, -15] DstBlock "Relational\nOperator8" DstPort 2 } Line { SrcBlock "Relational\nOperator5" SrcPort 1 Points [20, 0; 0, 20] DstBlock "Relational\nOperator8" DstPort 1 } Line { SrcBlock "Talpha6" SrcPort 1 DstBlock "Relational\nOperator7" DstPort 2 } Line { SrcBlock "Talpha5" SrcPort 1 DstBlock "Relational\nOperator6" DstPort 2 } Line { SrcBlock "Add3" SrcPort 1 DstBlock "Talpha4" DstPort 1 } Line { SrcBlock "Talpha4" SrcPort 1 DstBlock "Relational\nOperator5" DstPort 2 } Line { SrcBlock "Relational\nOperator2" SrcPort 1 DstBlock "Relational\nOperator3" DstPort 2 } Line { SrcBlock "Relational\nOperator3" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 Points [15, 0] DstBlock "Logical\nOperator4" DstPort 1 } Line { SrcBlock "Relational\nOperator4" SrcPort 1 Points [25, 0] DstBlock "Relational\nOperator11" DstPort 1 } Line { SrcBlock "Add2" SrcPort 1 DstBlock "Talpha2" DstPort 1 } Line { SrcBlock "Talpha2" SrcPort 1 DstBlock "Relational\nOperator4" DstPort 2 } Line { SrcBlock "Talpha1" SrcPort 1 DstBlock "Relational\nOperator2" DstPort 2 } Line { SrcBlock "freq" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Talpha3" SrcPort 1 Points [65, 0] DstBlock "Relational\nOperator1" DstPort 2 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [15, 0] Branch { Points [0, 105] Branch { DstBlock "Relational\nOperator2" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, -25] DstBlock "Relational\nOperator4" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Relational\nOperator9" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, 45] Branch { DstBlock "Relational\nOperator5" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Relational\nOperator6" DstPort 1 } Branch { Points [0, 45] Branch { Points [0, -25] DstBlock "Relational\nOperator7" DstPort 1 } Branch { Points [0, 50] Branch { Labels [2, 0] Points [0, -25] DstBlock "Relational\nOperator12" DstPort 1 } Branch { Points [0, 25] DstBlock "Relational\nOperator13" DstPort 1 } } } } } Branch { DstBlock "Relational\nOperator10" DstPort 1 } } } } } Branch { Points [10, 0; 0, -50; 5, 0] Branch { DstBlock "Relational\nOperator1" DstPort 1 } Branch { Points [0, -60] DstBlock "Scope4" DstPort 1 } } } Line { SrcBlock "Relational\nOperator1" SrcPort 1 Points [10, 0] DstBlock "Relational\nOperator3" DstPort 1 } Line { SrcBlock "Logical\nOperator5" SrcPort 1 Points [5, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, -100; -30, 0] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [0, 5; 330, 0; 0, -15] DstBlock "Discrete-Time\nIntegrator" DstPort 2 } } } Block { BlockType SubSystem Name "Subsystem1" SID 368 Ports [1, 1] Position [435, 215, 475, 275] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Subsystem1" Location [0, 82, 995, 744] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 369 Position [30, 168, 60, 182] IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 370 Ports [2, 1] Position [320, 47, 350, 78] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" SID 371 Ports [2, 1] Position [290, 222, 320, 253] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add2" SID 372 Ports [2, 1] Position [290, 277, 320, 308] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add3" SID 373 Ports [2, 1] Position [305, 422, 335, 453] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add4" SID 374 Ports [2, 1] Position [305, 472, 335, 503] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add5" SID 375 Ports [2, 1] Position [305, 522, 335, 553] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add6" SID 376 Ports [2, 1] Position [285, 332, 315, 363] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add7" SID 377 Ports [2, 1] Position [285, 382, 315, 413] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add8" SID 378 Ports [2, 1] Position [305, 572, 335, 603] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add9" SID 379 Ports [2, 1] Position [305, 622, 335, 653] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Constant1" SID 380 Position [160, 73, 210, 97] Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 381 Position [200, 418, 250, 442] NamePlacement "alternate" Value "180" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 382 Position [30, 43, 80, 67] NamePlacement "alternate" Value "2.9026" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 383 Position [35, 233, 85, 257] NamePlacement "alternate" Value "21.2370" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant5" SID 384 Position [35, 288, 85, 312] NamePlacement "alternate" Value "30.7691" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant6" SID 385 Position [35, 343, 85, 367] NamePlacement "alternate" Value "42.7750" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant7" SID 386 Position [35, 388, 85, 412] NamePlacement "alternate" Value "54.4892" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 387 Ports [2, 1] Position [445, 136, 515, 174] ShowName off IntegratorMethod "Integration: Trapezoidal" ExternalReset "rising" InitialConditionSource "internal" InitialConditionMode "State only (most efficient)" SampleTime "-1" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Logic Name "Logical\nOperator" SID 388 Ports [2, 1] Position [735, 270, 770, 310] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID 389 Ports [2, 1] Position [725, 495, 760, 535] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator2" SID 390 Ports [1, 1] Position [835, 605, 870, 645] ShowName off Operator "NOT" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID 391 Ports [2, 1] Position [790, 605, 825, 645] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator4" SID 392 Ports [2, 1] Position [805, 315, 840, 355] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID 393 Ports [2, 1] Position [900, 425, 935, 465] ShowName off AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 394 Ports [2, 1] Position [580, 98, 610, 122] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator10" SID 395 Ports [2, 1] Position [580, 376, 615, 409] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator11" SID 396 Ports [2, 1] Position [655, 320, 690, 355] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator12" SID 397 Ports [2, 1] Position [580, 573, 610, 597] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator13" SID 398 Ports [2, 1] Position [580, 623, 610, 647] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator14" SID 399 Ports [2, 1] Position [650, 540, 685, 575] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 400 Ports [2, 1] Position [555, 223, 585, 247] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 401 Ports [2, 1] Position [640, 210, 675, 245] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator4" SID 402 Ports [2, 1] Position [580, 278, 610, 302] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator5" SID 403 Ports [2, 1] Position [580, 423, 610, 447] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator6" SID 404 Ports [2, 1] Position [580, 473, 610, 497] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator7" SID 405 Ports [2, 1] Position [580, 523, 610, 547] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator8" SID 406 Ports [2, 1] Position [655, 445, 690, 480] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator9" SID 407 Ports [2, 1] Position [580, 326, 615, 359] ShowName off Operator ">" } Block { BlockType Scope Name "Scope2" SID 408 Ports [1] Position [930, 229, 960, 261] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" SID 409 Ports [1] Position [785, 59, 815, 91] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope4" SID 410 Ports [1] Position [630, 29, 660, 61] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Gain Name "Talpha1" SID 411 Position [410, 224, 440, 256] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha10" SID 412 Position [415, 624, 445, 656] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha2" SID 413 Position [410, 279, 440, 311] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha3" SID 414 Position [465, 49, 495, 81] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha4" SID 415 Position [415, 424, 445, 456] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha5" SID 416 Position [420, 474, 450, 506] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha6" SID 417 Position [415, 524, 445, 556] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha7" SID 418 Position [410, 334, 440, 366] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha8" SID 419 Position [410, 384, 440, 416] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha9" SID 420 Position [415, 574, 445, 606] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "freq" SID 421 Position [295, 132, 340, 158] Value "50" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out1" SID 422 Position [960, 438, 990, 452] IconDisplay "Port number" } Line { SrcBlock "Add9" SrcPort 1 DstBlock "Talpha10" DstPort 1 } Line { SrcBlock "Talpha10" SrcPort 1 DstBlock "Relational\nOperator13" DstPort 2 } Line { SrcBlock "Relational\nOperator13" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 2 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 Points [10, 0] DstBlock "Logical\nOperator5" DstPort 2 } Line { SrcBlock "Logical\nOperator4" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator5" DstPort 1 } Line { SrcBlock "Logical\nOperator3" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Logical\nOperator1" SrcPort 1 Points [10, 0] DstBlock "Logical\nOperator3" DstPort 1 } Line { SrcBlock "Relational\nOperator14" SrcPort 1 Points [20, 0] DstBlock "Logical\nOperator1" DstPort 2 } Line { SrcBlock "Relational\nOperator7" SrcPort 1 Points [20, 0] DstBlock "Relational\nOperator14" DstPort 1 } Line { SrcBlock "Relational\nOperator12" SrcPort 1 Points [10, 0; 0, -20] DstBlock "Relational\nOperator14" DstPort 2 } Line { SrcBlock "Talpha9" SrcPort 1 DstBlock "Relational\nOperator12" DstPort 2 } Line { SrcBlock "Add8" SrcPort 1 DstBlock "Talpha9" DstPort 1 } Line { SrcBlock "Relational\nOperator10" SrcPort 1 Points [75, 0] Branch { Points [95, 0] DstBlock "Logical\nOperator4" DstPort 2 } Branch { Points [0, -320] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Relational\nOperator11" SrcPort 1 Points [20, 0; 0, -40] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator9" SrcPort 1 DstBlock "Relational\nOperator11" DstPort 2 } Line { SrcBlock "Talpha8" SrcPort 1 DstBlock "Relational\nOperator10" DstPort 2 } Line { SrcBlock "Talpha7" SrcPort 1 DstBlock "Relational\nOperator9" DstPort 2 } Line { SrcBlock "Add7" SrcPort 1 DstBlock "Talpha8" DstPort 1 } Line { SrcBlock "Add6" SrcPort 1 DstBlock "Talpha7" DstPort 1 } Line { SrcBlock "Constant7" SrcPort 1 Points [0, 5; 95, 0] Branch { DstBlock "Add7" DstPort 2 } Branch { Points [0, 40] DstBlock "Add3" DstPort 2 } } Line { SrcBlock "Constant6" SrcPort 1 Points [80, 0] Branch { DstBlock "Add6" DstPort 2 } Branch { Points [0, 140] DstBlock "Add4" DstPort 2 } } Line { SrcBlock "Constant2" SrcPort 1 Points [20, 0] Branch { DstBlock "Add3" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add4" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add5" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add8" DstPort 1 } Branch { Points [0, 50] DstBlock "Add9" DstPort 1 } } } } } Line { SrcBlock "Add4" SrcPort 1 DstBlock "Talpha5" DstPort 1 } Line { SrcBlock "Add5" SrcPort 1 DstBlock "Talpha6" DstPort 1 } Line { SrcBlock "Constant5" SrcPort 1 Points [65, 0] Branch { DstBlock "Add2" DstPort 2 } Branch { Points [0, 245] DstBlock "Add5" DstPort 2 } } Line { SrcBlock "Constant4" SrcPort 1 Points [50, 0] Branch { DstBlock "Add1" DstPort 2 } Branch { Points [0, 350] DstBlock "Add8" DstPort 2 } } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Talpha1" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [0, -15; 20, 0] Branch { DstBlock "Add" DstPort 2 } Branch { Points [0, 190] Branch { DstBlock "Add1" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Add2" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Add6" DstPort 1 } Branch { Points [0, 20] DstBlock "Add7" DstPort 1 } } } } } Line { SrcBlock "Constant3" SrcPort 1 Points [20, 0] Branch { DstBlock "Add" DstPort 1 } Branch { Points [0, 590] DstBlock "Add9" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 DstBlock "Talpha3" DstPort 1 } Line { SrcBlock "Relational\nOperator8" SrcPort 1 Points [10, 0; 0, 40] DstBlock "Logical\nOperator1" DstPort 1 } Line { SrcBlock "Relational\nOperator6" SrcPort 1 Points [20, 0; 0, -15] DstBlock "Relational\nOperator8" DstPort 2 } Line { SrcBlock "Relational\nOperator5" SrcPort 1 Points [20, 0; 0, 20] DstBlock "Relational\nOperator8" DstPort 1 } Line { SrcBlock "Talpha6" SrcPort 1 DstBlock "Relational\nOperator7" DstPort 2 } Line { SrcBlock "Talpha5" SrcPort 1 DstBlock "Relational\nOperator6" DstPort 2 } Line { SrcBlock "Add3" SrcPort 1 DstBlock "Talpha4" DstPort 1 } Line { SrcBlock "Talpha4" SrcPort 1 DstBlock "Relational\nOperator5" DstPort 2 } Line { SrcBlock "Relational\nOperator2" SrcPort 1 DstBlock "Relational\nOperator3" DstPort 2 } Line { SrcBlock "Relational\nOperator3" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 Points [15, 0] DstBlock "Logical\nOperator4" DstPort 1 } Line { SrcBlock "Relational\nOperator4" SrcPort 1 Points [25, 0] DstBlock "Relational\nOperator11" DstPort 1 } Line { SrcBlock "Add2" SrcPort 1 DstBlock "Talpha2" DstPort 1 } Line { SrcBlock "Talpha2" SrcPort 1 DstBlock "Relational\nOperator4" DstPort 2 } Line { SrcBlock "Talpha1" SrcPort 1 DstBlock "Relational\nOperator2" DstPort 2 } Line { SrcBlock "freq" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Talpha3" SrcPort 1 Points [65, 0] DstBlock "Relational\nOperator1" DstPort 2 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [15, 0] Branch { Points [0, 105] Branch { DstBlock "Relational\nOperator2" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, -25] DstBlock "Relational\nOperator4" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Relational\nOperator9" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, 45] Branch { DstBlock "Relational\nOperator5" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Relational\nOperator6" DstPort 1 } Branch { Points [0, 45] Branch { Points [0, -25] DstBlock "Relational\nOperator7" DstPort 1 } Branch { Points [0, 50] Branch { Labels [2, 0] Points [0, -25] DstBlock "Relational\nOperator12" DstPort 1 } Branch { Points [0, 25] DstBlock "Relational\nOperator13" DstPort 1 } } } } } Branch { DstBlock "Relational\nOperator10" DstPort 1 } } } } } Branch { Points [10, 0; 0, -50; 5, 0] Branch { DstBlock "Relational\nOperator1" DstPort 1 } Branch { Points [0, -60] DstBlock "Scope4" DstPort 1 } } } Line { SrcBlock "Relational\nOperator1" SrcPort 1 Points [10, 0] DstBlock "Relational\nOperator3" DstPort 1 } Line { SrcBlock "Logical\nOperator5" SrcPort 1 Points [5, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, -100; -30, 0] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [0, 5; 330, 0; 0, -15] DstBlock "Discrete-Time\nIntegrator" DstPort 2 } } } Block { BlockType SubSystem Name "Subsystem2" SID 424 Ports [1, 1] Position [435, 295, 475, 355] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Subsystem2" Location [0, 82, 995, 744] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 425 Position [30, 168, 60, 182] IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 426 Ports [2, 1] Position [320, 47, 350, 78] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" SID 427 Ports [2, 1] Position [290, 222, 320, 253] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add2" SID 428 Ports [2, 1] Position [290, 277, 320, 308] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add3" SID 429 Ports [2, 1] Position [305, 422, 335, 453] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add4" SID 430 Ports [2, 1] Position [305, 472, 335, 503] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add5" SID 431 Ports [2, 1] Position [305, 522, 335, 553] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add6" SID 432 Ports [2, 1] Position [285, 332, 315, 363] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add7" SID 433 Ports [2, 1] Position [285, 382, 315, 413] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add8" SID 434 Ports [2, 1] Position [305, 572, 335, 603] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add9" SID 435 Ports [2, 1] Position [305, 622, 335, 653] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Constant1" SID 436 Position [160, 73, 210, 97] Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 437 Position [200, 418, 250, 442] NamePlacement "alternate" Value "180" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 438 Position [30, 43, 80, 67] NamePlacement "alternate" Value "2.9026" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 439 Position [35, 233, 85, 257] NamePlacement "alternate" Value "21.2370" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant5" SID 440 Position [35, 288, 85, 312] NamePlacement "alternate" Value "30.7691" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant6" SID 441 Position [35, 343, 85, 367] NamePlacement "alternate" Value "42.7750" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant7" SID 442 Position [35, 388, 85, 412] NamePlacement "alternate" Value "54.4892" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 443 Ports [2, 1] Position [445, 136, 515, 174] ShowName off IntegratorMethod "Integration: Trapezoidal" ExternalReset "rising" InitialConditionSource "internal" InitialConditionMode "State only (most efficient)" SampleTime "-1" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Logic Name "Logical\nOperator" SID 444 Ports [2, 1] Position [735, 270, 770, 310] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID 445 Ports [2, 1] Position [725, 495, 760, 535] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator2" SID 446 Ports [1, 1] Position [835, 605, 870, 645] ShowName off Operator "NOT" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID 447 Ports [2, 1] Position [790, 605, 825, 645] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator4" SID 448 Ports [2, 1] Position [805, 315, 840, 355] ShowName off Operator "OR" AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID 449 Ports [2, 1] Position [900, 425, 935, 465] ShowName off AllPortsSameDT off OutDataTypeMode "boolean" LogicDataType "fixdt(0, 8)" OutDataTypeStr "boolean" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 450 Ports [2, 1] Position [580, 98, 610, 122] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator10" SID 451 Ports [2, 1] Position [580, 376, 615, 409] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator11" SID 452 Ports [2, 1] Position [655, 320, 690, 355] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator12" SID 453 Ports [2, 1] Position [580, 573, 610, 597] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator13" SID 454 Ports [2, 1] Position [580, 623, 610, 647] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator14" SID 455 Ports [2, 1] Position [650, 540, 685, 575] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 456 Ports [2, 1] Position [555, 223, 585, 247] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 457 Ports [2, 1] Position [640, 210, 675, 245] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator4" SID 458 Ports [2, 1] Position [580, 278, 610, 302] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator5" SID 459 Ports [2, 1] Position [580, 423, 610, 447] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator6" SID 460 Ports [2, 1] Position [580, 473, 610, 497] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator7" SID 461 Ports [2, 1] Position [580, 523, 610, 547] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator8" SID 462 Ports [2, 1] Position [655, 445, 690, 480] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator9" SID 463 Ports [2, 1] Position [580, 326, 615, 359] ShowName off Operator ">" } Block { BlockType Scope Name "Scope2" SID 464 Ports [1] Position [930, 229, 960, 261] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" SID 465 Ports [1] Position [785, 59, 815, 91] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope4" SID 466 Ports [1] Position [630, 29, 660, 61] Floating off Location [5, 43, 1033, 762] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Gain Name "Talpha1" SID 467 Position [410, 224, 440, 256] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha10" SID 468 Position [415, 624, 445, 656] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha2" SID 469 Position [410, 279, 440, 311] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha3" SID 470 Position [465, 49, 495, 81] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha4" SID 471 Position [415, 424, 445, 456] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha5" SID 472 Position [420, 474, 450, 506] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha6" SID 473 Position [415, 524, 445, 556] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha7" SID 474 Position [410, 334, 440, 366] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha8" SID 475 Position [410, 384, 440, 416] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Talpha9" SID 476 Position [415, 574, 445, 606] Gain "1/360" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "freq" SID 477 Position [285, 132, 330, 158] Value "50" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out1" SID 478 Position [960, 438, 990, 452] IconDisplay "Port number" } Line { SrcBlock "Add9" SrcPort 1 DstBlock "Talpha10" DstPort 1 } Line { SrcBlock "Talpha10" SrcPort 1 DstBlock "Relational\nOperator13" DstPort 2 } Line { SrcBlock "Relational\nOperator13" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 2 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 Points [10, 0] DstBlock "Logical\nOperator5" DstPort 2 } Line { SrcBlock "Logical\nOperator4" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator5" DstPort 1 } Line { SrcBlock "Logical\nOperator3" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Logical\nOperator1" SrcPort 1 Points [10, 0] DstBlock "Logical\nOperator3" DstPort 1 } Line { SrcBlock "Relational\nOperator14" SrcPort 1 Points [20, 0] DstBlock "Logical\nOperator1" DstPort 2 } Line { SrcBlock "Relational\nOperator7" SrcPort 1 Points [20, 0] DstBlock "Relational\nOperator14" DstPort 1 } Line { SrcBlock "Relational\nOperator12" SrcPort 1 Points [10, 0; 0, -20] DstBlock "Relational\nOperator14" DstPort 2 } Line { SrcBlock "Talpha9" SrcPort 1 DstBlock "Relational\nOperator12" DstPort 2 } Line { SrcBlock "Add8" SrcPort 1 DstBlock "Talpha9" DstPort 1 } Line { SrcBlock "Relational\nOperator10" SrcPort 1 Points [75, 0] Branch { Points [95, 0] DstBlock "Logical\nOperator4" DstPort 2 } Branch { Points [0, -320] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Relational\nOperator11" SrcPort 1 Points [20, 0; 0, -40] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator9" SrcPort 1 DstBlock "Relational\nOperator11" DstPort 2 } Line { SrcBlock "Talpha8" SrcPort 1 DstBlock "Relational\nOperator10" DstPort 2 } Line { SrcBlock "Talpha7" SrcPort 1 DstBlock "Relational\nOperator9" DstPort 2 } Line { SrcBlock "Add7" SrcPort 1 DstBlock "Talpha8" DstPort 1 } Line { SrcBlock "Add6" SrcPort 1 DstBlock "Talpha7" DstPort 1 } Line { SrcBlock "Constant7" SrcPort 1 Points [0, 5; 95, 0] Branch { DstBlock "Add7" DstPort 2 } Branch { Points [0, 40] DstBlock "Add3" DstPort 2 } } Line { SrcBlock "Constant6" SrcPort 1 Points [80, 0] Branch { DstBlock "Add6" DstPort 2 } Branch { Points [0, 140] DstBlock "Add4" DstPort 2 } } Line { SrcBlock "Constant2" SrcPort 1 Points [20, 0] Branch { DstBlock "Add3" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add4" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add5" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Add8" DstPort 1 } Branch { Points [0, 50] DstBlock "Add9" DstPort 1 } } } } } Line { SrcBlock "Add4" SrcPort 1 DstBlock "Talpha5" DstPort 1 } Line { SrcBlock "Add5" SrcPort 1 DstBlock "Talpha6" DstPort 1 } Line { SrcBlock "Constant5" SrcPort 1 Points [65, 0] Branch { DstBlock "Add2" DstPort 2 } Branch { Points [0, 245] DstBlock "Add5" DstPort 2 } } Line { SrcBlock "Constant4" SrcPort 1 Points [50, 0] Branch { DstBlock "Add1" DstPort 2 } Branch { Points [0, 350] DstBlock "Add8" DstPort 2 } } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Talpha1" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [0, -15; 20, 0] Branch { DstBlock "Add" DstPort 2 } Branch { Points [0, 190] Branch { DstBlock "Add1" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Add2" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Add6" DstPort 1 } Branch { Points [0, 20] DstBlock "Add7" DstPort 1 } } } } } Line { SrcBlock "Constant3" SrcPort 1 Points [20, 0] Branch { DstBlock "Add" DstPort 1 } Branch { Points [0, 590] DstBlock "Add9" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 DstBlock "Talpha3" DstPort 1 } Line { SrcBlock "Relational\nOperator8" SrcPort 1 Points [10, 0; 0, 40] DstBlock "Logical\nOperator1" DstPort 1 } Line { SrcBlock "Relational\nOperator6" SrcPort 1 Points [20, 0; 0, -15] DstBlock "Relational\nOperator8" DstPort 2 } Line { SrcBlock "Relational\nOperator5" SrcPort 1 Points [20, 0; 0, 20] DstBlock "Relational\nOperator8" DstPort 1 } Line { SrcBlock "Talpha6" SrcPort 1 DstBlock "Relational\nOperator7" DstPort 2 } Line { SrcBlock "Talpha5" SrcPort 1 DstBlock "Relational\nOperator6" DstPort 2 } Line { SrcBlock "Add3" SrcPort 1 DstBlock "Talpha4" DstPort 1 } Line { SrcBlock "Talpha4" SrcPort 1 DstBlock "Relational\nOperator5" DstPort 2 } Line { SrcBlock "Relational\nOperator2" SrcPort 1 DstBlock "Relational\nOperator3" DstPort 2 } Line { SrcBlock "Relational\nOperator3" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 Points [15, 0] DstBlock "Logical\nOperator4" DstPort 1 } Line { SrcBlock "Relational\nOperator4" SrcPort 1 Points [25, 0] DstBlock "Relational\nOperator11" DstPort 1 } Line { SrcBlock "Add2" SrcPort 1 DstBlock "Talpha2" DstPort 1 } Line { SrcBlock "Talpha2" SrcPort 1 DstBlock "Relational\nOperator4" DstPort 2 } Line { SrcBlock "Talpha1" SrcPort 1 DstBlock "Relational\nOperator2" DstPort 2 } Line { SrcBlock "freq" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Talpha3" SrcPort 1 Points [65, 0] DstBlock "Relational\nOperator1" DstPort 2 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [15, 0] Branch { Points [0, 105] Branch { DstBlock "Relational\nOperator2" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, -25] DstBlock "Relational\nOperator4" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Relational\nOperator9" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, 45] Branch { DstBlock "Relational\nOperator5" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Relational\nOperator6" DstPort 1 } Branch { Points [0, 45] Branch { Points [0, -25] DstBlock "Relational\nOperator7" DstPort 1 } Branch { Points [0, 50] Branch { Labels [2, 0] Points [0, -25] DstBlock "Relational\nOperator12" DstPort 1 } Branch { Points [0, 25] DstBlock "Relational\nOperator13" DstPort 1 } } } } } Branch { DstBlock "Relational\nOperator10" DstPort 1 } } } } } Branch { Points [10, 0; 0, -50; 5, 0] Branch { DstBlock "Relational\nOperator1" DstPort 1 } Branch { Points [0, -60] DstBlock "Scope4" DstPort 1 } } } Line { SrcBlock "Relational\nOperator1" SrcPort 1 Points [10, 0] DstBlock "Relational\nOperator3" DstPort 1 } Line { SrcBlock "Logical\nOperator5" SrcPort 1 Points [5, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, -100; -30, 0] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [0, 5; 330, 0; 0, -15] DstBlock "Discrete-Time\nIntegrator" DstPort 2 } } } Line { SrcBlock "Data Type Conversion" SrcPort 1 DstBlock "Subsystem" DstPort 1 } Line { SrcBlock "Input Capture" SrcPort 1 DstBlock "Data Type Conversion" DstPort 1 } Line { SrcBlock "Data Type Conversion1" SrcPort 1 DstBlock "Subsystem1" DstPort 1 } Line { SrcBlock "Input Capture" SrcPort 3 DstBlock "Data Type Conversion1" DstPort 1 } Line { SrcBlock "Subsystem1" SrcPort 1 DstBlock "Data Type Conversion4" DstPort 1 } Line { SrcBlock "Input Capture" SrcPort 5 DstBlock "Data Type Conversion2" DstPort 1 } Line { SrcBlock "Subsystem2" SrcPort 1 DstBlock "Data Type Conversion5" DstPort 1 } Line { SrcBlock "Data Type Conversion2" SrcPort 1 DstBlock "Subsystem2" DstPort 1 } Line { SrcBlock "Data Type Conversion3" SrcPort 1 Points [25, 0] Branch { DstBlock "PWM Motor Output" DstPort 1 } Branch { Points [0, 290] DstBlock "Scope4" DstPort 1 } } Line { SrcBlock "Data Type Conversion4" SrcPort 1 DstBlock "PWM Motor Output2" DstPort 1 } Line { SrcBlock "Data Type Conversion5" SrcPort 1 DstBlock "PWM Motor Output1" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 1 DstBlock "Data Type Conversion3" DstPort 1 } } }