Model { Name "assignment5SLV4R12" Version 4.0 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Mar 20 06:13:53 2008" Creator "joel" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "joel" ModifiedDateFormat "%" LastModifiedDate "Sun Apr 27 09:02:08 2008" ModelVersionFormat "1.%" ConfigurationManager "None" SimulationMode "normal" LinearizationMsg "none" Profile off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on 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 ExtModeLogAll on BufferReuse on Solver "ode45" SolverMode "Auto" StartTime "0.0" StopTime "40.0" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" 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" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType on OptimizeBlockIOStorage on RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off RTWOptions "-aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -a" "InlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr" "eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn" "itFltsAndDblsToZero=1 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aInc" "ludeHyperlinkInReport=0 -aLaunchReport=0 -aForceParamTrailComments=0 -aGenera" "teComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdL" "en=31 -aShowEliminatedStatements=0 -aPrefixModelToSubsysFcnNames=1 -aIncDataT" "ypeInIds=0 -aInsertBlockDesc=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess=" "\"Literals\" -aSuppressErrorStatus=0 -aModelReferenceCompliant=1 -aParenthes" "esLevel=\"Nominal\" -aModelStepFunctionPrototypeControlCompliant=0 -aPortable" "WordSizes=0 -aSupportNonInlinedSFcns=1 -aSupportContinuousTime=1 -aSupportCom" "plex=1 -aSupportNonFinite=1 -aSupportAbsoluteTime=1 -aTargetPreCompLibLocatio" "n=\"\" -aTargetLibSuffix=\"\" -aTargetFcnLib=\"ansi_tfl_tmw.mat\" -aMultiInst" "anceERTCode=0 -aLogVarNameModifier=\"rt_\" -aIsPILTarget=0 -aCombineOutputUpd" "ateFcns=0 -aGenerateASAP2=0 -aGenerateClassInterface=0 -aGenerateTestInterfac" "es=0 -aGenerateSampleERTMain=0 -aGenerateFullHeader=1 -aUtilityFuncGeneration" "=\"Auto\" -aIncludeFileDelimiter=\"Auto\" -aIncludeMdlTerminateFcn=1 -aPurely" "IntegerCode=0 -aERTCustomFileBanners=0 -aRTWCAPIStates=0 -aRTWCAPIParams=0 -a" "RTWCAPISignals=0 -aMatFileLogging=1 -aGenFloatMathFcnCalls=\"ANSI_C\" -aExtMo" "deMexFile=\"ext_comm\" -aExtModeTransport=0 -aExtModeStaticAllocSize=1000000 " "-aExtModeTesting=0 -aExtModeStaticAlloc=0 -aExtMode=0 " BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType From } Block { BlockType Fcn Expr "sin(u[1])" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Goto } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ContinuousStateAttributes "''" } Block { BlockType Mux Inputs "4" DisplayOption "none" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on } Block { BlockType Sum IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType ToFile Filename "untitled.mat" MatrixName "ans" Decimation "1" SampleTime "-1" } } 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 "tp020748" Location [684, 97, 1467, 772] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Gain Name "-L_q" Position [265, 311, 330, 349] Orientation "left" NamePlacement "alternate" Gain "-L_qu" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "1/T_d0p" Position [210, 69, 280, 111] Gain "1/T_d0p" SaturateOnIntegerOverflow off } Block { BlockType Step Name "E_qp(0)" Position [315, 15, 345, 45] Orientation "down" NamePlacement "alternate" Time "0.0" After "mE_qp0" SampleTime "0" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [140, 75, 170, 105] } Block { BlockType Gain Name "L_dp" Position [541, 130, 579, 180] Orientation "up" Gain "L_dp" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "L_du-L_dp" Position [425, 205, 520, 255] Orientation "left" Gain "L_du - L_dp" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [460, 375, 465, 615] ShowName off DisplayOption "bar" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [75, 80, 95, 100] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [320, 80, 340, 100] ShowName off IconShape "round" Inputs "++|" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [550, 80, 570, 100] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [355, 220, 375, 240] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "++|" SaturateOnIntegerOverflow off } Block { BlockType ToFile Name "To File" Position [535, 480, 630, 510] Filename "outputfile.mat" MatrixName "outputdata" } Block { BlockType Step Name "i_d" Position [625, 215, 655, 245] Orientation "left" NamePlacement "alternate" Before "I_d0" After "0" SampleTime "0" } Block { BlockType Goto Name "i_f" Position [150, 250, 190, 280] GotoTag "i_f" TagVisibility "local" } Block { BlockType From Name "i_f1" Position [210, 391, 250, 419] CloseFcn "tagdialog Close" GotoTag "i_f" } Block { BlockType Step Name "i_q" Position [365, 315, 395, 345] Orientation "left" NamePlacement "alternate" Before "I_q0" After "0" SampleTime "0" } Block { BlockType Goto Name "psi_d" Position [620, 30, 650, 70] Orientation "up" GotoTag "psi_d" TagVisibility "local" } Block { BlockType From Name "psi_d1" Position [210, 451, 250, 479] CloseFcn "tagdialog Close" GotoTag "psi_d" } Block { BlockType Goto Name "psi_q" Position [195, 315, 235, 345] Orientation "left" NamePlacement "alternate" GotoTag "psi_q" TagVisibility "local" } Block { BlockType From Name "psi_q1" Position [215, 511, 255, 539] CloseFcn "tagdialog Close" GotoTag "psi_q" } Block { BlockType Fcn Name "saturation" Position [282, 145, 448, 175] Orientation "down" NamePlacement "alternate" Expr "(1+S_e1*u(1)^X)*u(1)" } Block { BlockType Step Name "v_fd" Position [20, 75, 50, 105] Time "0" After "V_fd" SampleTime "0" } Block { BlockType Goto Name "v_q" Position [685, 75, 725, 105] GotoTag "v_q" TagVisibility "local" } Block { BlockType From Name "v_q1" Position [215, 571, 255, 599] CloseFcn "tagdialog Close" GotoTag "v_q" } Line { SrcBlock "v_fd" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "1/T_d0p" DstPort 1 } Line { SrcBlock "E_qp(0)" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "1/T_d0p" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [0, 0; 20, 0] Branch { DstBlock "Sum2" DstPort 1 } Branch { DstBlock "saturation" DstPort 1 } } Line { SrcBlock "saturation" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [-225, 0] Branch { Points [-40, 0] DstBlock "Sum" DstPort 2 } Branch { Points [0, 35] DstBlock "i_f" DstPort 1 } } Line { SrcBlock "L_du-L_dp" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "L_dp" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 Points [60, 0; 0, -5] Branch { Points [0, 5] DstBlock "v_q" DstPort 1 } Branch { DstBlock "psi_d" DstPort 1 } } Line { SrcBlock "-L_q" SrcPort 1 DstBlock "psi_q" DstPort 1 } Line { SrcBlock "i_f1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "psi_d1" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "psi_q1" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "v_q1" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "i_d" SrcPort 1 Points [-60, 0] Branch { DstBlock "L_du-L_dp" DstPort 1 } Branch { DstBlock "L_dp" DstPort 1 } } Line { SrcBlock "i_q" SrcPort 1 DstBlock "-L_q" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "To File" DstPort 1 } Annotation { Text "I_fde" Position [381, 191] } Annotation { Text "i_fd = R_fd*i_fd" Position [201, 213] } } }