Model { Name "U_EM" Version 7.0 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.29" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue May 31 13:52:21 2011" Creator "Math_Adm" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Philler" ModifiedDateFormat "%" LastModifiedDate "Tue May 31 21:42:39 2011" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" 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 covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on 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.3.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.3.0" StartTime "0.0" StopTime "0.5" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "0.01" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "ode45" SolverName "ode45" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.3.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.3.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.3.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "none" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" 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" 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" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.3.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-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.3.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.3.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off RTWCompilerOptimization "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 16 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } Version "1.3.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on 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" 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 } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 13 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.3.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType Derivative LinearizePole "inf" } Block { BlockType From IconDisplay "Tag" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } 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 "[]" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Goto IconDisplay "Tag" } Block { BlockType SignalConversion OverrideOpt off } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow 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 "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit 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 OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } 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 "[]" SampleTime "inf" FramePeriod "inf" } Block { BlockType Lookup InputValues "[-4:5]" Table " rand(1,10)-0.5" LookUpMeth "Interpolation-Extrapolation" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" LUTDesignTableMode "Redesign Table" LUTDesignDataSource "Block Dialog" LUTDesignFunctionName "sqrt(x)" LUTDesignUseExistingBP on LUTDesignRelError "0.01" LUTDesignAbsError "1e-6" } Block { BlockType Trigonometry Operator "sin" OutputSignalType "auto" SampleTime "-1" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "U_EM" Location [6, 82, 1266, 771] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant" Position [500, 455, 530, 485] Value "200" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "E-Maschine Antrieb" Ports [2, 6] Position [665, 257, 950, 458] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "E-Maschine Antrieb" Location [6, 82, 1266, 754] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Strangspannungen U" Position [170, 523, 200, 537] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Lastmoment [Nm]" Position [660, 388, 690, 402] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Scope Name "Drehmoment EAntrieb" Ports [1] Position [660, 269, 690, 301] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-2.25205e-006" YMax "-2.25163e-006" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Drehzahl" Ports [1] Position [1305, 349, 1335, 381] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-3949" YMax "-3933" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "EMaschine" Ports [3, 4] Position [290, 302, 495, 578] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "EMaschine" Location [6, 82, 1249, 754] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Winkelgeschwindigkeit [rad/s]" Position [95, 403, 125, 417] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkellage [rad]" Position [95, 573, 125, 587] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Strangspannung U" Position [55, 258, 85, 272] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "2Str_3Str" Ports [2, 3] Position [1015, 539, 1125, 691] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "2Str_3Str" Location [2, 82, 1390, 1004] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "i_alpha" Position [140, 253, 170, 267] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "i_beta" Position [140, 483, 170, 497] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [315, 325, 380, 355] Gain "-0.5" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [315, 399, 425, 431] Gain "sqrt(3)/2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [490, 330, 510, 350] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [560, 380, 580, 400] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "iu" Position [625, 253, 655, 267] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "iv" Position [625, 333, 655, 347] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "iw" Position [625, 383, 655, 397] BackgroundColor "red" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "i_alpha" SrcPort 1 Points [40, 0] Branch { DstBlock "iu" DstPort 1 } Branch { Points [0, 80] DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [70, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 50] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "i_beta" SrcPort 1 Points [60, 0; 0, -75] DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [70, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "iv" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "iw" DstPort 1 } } } Block { BlockType SubSystem Name "3Str_2Str\nClarke'sche Transformation" Ports [3, 2] Position [245, 197, 350, 333] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "3Str_2Str\nClarke'sche Transformation" Location [79, 389, 765, 907] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Uu" Position [80, 93, 110, 107] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Uv" Position [80, 158, 110, 172] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Uw" Position [80, 228, 110, 242] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant" Position [335, 25, 365, 55] Value "2/3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [355, 265, 385, 295] Value "2/3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [190, 149, 240, 181] Gain "0.5" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [190, 219, 240, 251] Gain "0.5" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [190, 322, 270, 358] Gain "sqrt(3)/2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [190, 407, 270, 443] Gain "sqrt(3)/2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product" Ports [2, 1] Position [430, 77, 460, 108] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [430, 317, 460, 348] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [255, 90, 275, 110] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [365, 90, 385, 110] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [360, 330, 380, 350] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "U_alpha" Position [530, 88, 560, 102] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "U_beta" Position [525, 328, 555, 342] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Uu" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Uv" SrcPort 1 Points [45, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 175] DstBlock "Gain2" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [20, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Uw" SrcPort 1 Points [20, 0] Branch { DstBlock "Gain1" DstPort 1 } Branch { Points [0, 190] DstBlock "Gain3" DstPort 1 } } Line { SrcBlock "Gain1" SrcPort 1 Points [130, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 Points [20, 0; 0, 45] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "U_alpha" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [95, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Product1" DstPort 2 } Line { SrcBlock "Constant1" SrcPort 1 Points [10, 0; 0, 45] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "U_beta" DstPort 1 } } } Block { BlockType Demux Name "Demux" Ports [1, 3] Position [125, 196, 130, 334] BackgroundColor "black" ShowName off Outputs "3" DisplayOption "bar" } Block { BlockType SubSystem Name "Drehmoment Antrieb" Ports [2, 1] Position [1015, 203, 1130, 347] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Drehmoment Antrieb" Location [6, 82, 1249, 771] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "id" Position [360, 328, 390, 342] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "iq" Position [360, 373, 390, 387] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant" Position [275, 450, 305, 480] Value "Ld" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [275, 530, 305, 560] Value "Lq" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" Position [435, 720, 490, 750] BackgroundColor "orange" Value "PsiPM" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [895, 419, 1010, 451] Gain "1.5*Polpaare" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product" Ports [3, 1] Position [660, 393, 695, 477] Inputs "3" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [590, 673, 625, 757] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [405, 455, 425, 475] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [795, 425, 815, 445] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Drehmoment EAntrieb" Position [1105, 428, 1135, 442] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Drehmoment EAntrieb" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [105, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 3 } Line { SrcBlock "iq" SrcPort 1 Points [0, 0; 40, 0] Branch { Points [0, 315] DstBlock "Product1" DstPort 1 } Branch { Points [165, 0; 0, 55] DstBlock "Product" DstPort 2 } } Line { SrcBlock "id" SrcPort 1 Points [225, 0; 0, 70] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [175, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Product1" DstPort 2 } } } Block { BlockType Gain Name "Gain" Position [205, 565, 300, 595] Gain "Polpaare" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Scope Name "I_3Str" Ports [1] Position [1275, 499, 1305, 531] Floating off Location [5, 56, 1405, 1023] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData7" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [425, 136, 430, 174] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [3, 1] Position [1205, 596, 1210, 634] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [3, 1] Position [225, 136, 230, 174] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [2, 1] Position [950, 141, 955, 179] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "U_3Str" Ports [1] Position [285, 139, 315, 171] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData8" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "U_alpha_beta" Ports [1] Position [555, 139, 585, 171] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData5" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Ud_Uq" Ports [2] Position [800, 141, 830, 174] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } TimeRange "0.14" YMin "-300~-5" YMax "300~5" SaveName "ScopeData6" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Winkel elektrisch" Ports [1] Position [650, 754, 680, 786] Floating off Location [5, 612, 1405, 1004] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } YMin "103000" YMax "118000" SaveName "ScopeData9" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "dq-Strom" Ports [3, 2] Position [745, 204, 900, 346] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "dq-Strom" Location [6, 82, 1266, 771] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ud" Position [690, 243, 720, 257] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Uq" Position [690, 443, 720, 457] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkelgeschwindigkeit [rad/s]" Position [80, 373, 110, 387] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" Ports [3, 1] Position [775, 239, 805, 311] Inputs "++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" Ports [4, 1] Position [780, 444, 810, 516] Inputs "+---" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Constant" Position [120, 535, 175, 565] BackgroundColor "orange" Value "PsiPM" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType From Name "From1" Position [470, 286, 510, 314] CloseFcn "tagdialog Close" GotoTag "iq" } Block { BlockType From Name "From2" Position [445, 496, 485, 524] CloseFcn "tagdialog Close" GotoTag "id" } Block { BlockType Gain Name "Gain" Position [850, 259, 945, 291] Gain "1/(Ld*1e-3)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [610, 258, 690, 292] Gain "Lq*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [880, 339, 945, 371] Orientation "left" NamePlacement "alternate" Gain "Rs*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [860, 463, 950, 497] Gain "1/(Ld*1e-3)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" Position [885, 549, 950, 581] Orientation "left" NamePlacement "alternate" Gain "Rs*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" Position [270, 363, 365, 397] Gain "Polpaare" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" Position [610, 543, 685, 577] Gain "Ld*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Goto Name "Goto" Position [1140, 200, 1180, 230] GotoTag "id" TagVisibility "local" } Block { BlockType Goto Name "Goto1" Position [1145, 405, 1185, 435] GotoTag "iq" TagVisibility "local" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [1000, 260, 1030, 290] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [1005, 465, 1035, 495] } Block { BlockType Product Name "Product" Ports [2, 1] Position [550, 257, 580, 288] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [540, 542, 570, 573] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [215, 476, 245, 509] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "id" Position [1140, 268, 1170, 282] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "iq" Position [1140, 473, 1170, 487] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Gain" SrcPort 1 Points [0, 0] DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Add" SrcPort 1 Points [0, 0] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Ud" SrcPort 1 Points [0, 0] DstBlock "Add" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Add" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 Points [10, 0; 0, -20] DstBlock "Product" DstPort 2 } Line { SrcBlock "Integrator" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [0, 80] DstBlock "Gain2" DstPort 1 } Branch { Points [40, 0] Branch { DstBlock "id" DstPort 1 } Branch { Points [0, -60] DstBlock "Goto" DstPort 1 } } } Line { SrcBlock "Gain2" SrcPort 1 Points [-125, 0; 0, -55] DstBlock "Add" DstPort 3 } Line { SrcBlock "Add1" SrcPort 1 Points [0, 0] DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [0, 0] DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [0, 85] DstBlock "Gain4" DstPort 1 } Branch { Points [40, 0] Branch { DstBlock "iq" DstPort 1 } Branch { Points [0, -60] DstBlock "Goto1" DstPort 1 } } } Line { SrcBlock "Winkelgeschwindigkeit [rad/s]" SrcPort 1 Points [65, 0] Branch { DstBlock "Gain6" DstPort 1 } Branch { Points [0, 105] DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Gain6" SrcPort 1 Points [0, 0; 65, 0] Branch { Points [0, -115] DstBlock "Product" DstPort 1 } Branch { Points [0, 185] DstBlock "Product1" DstPort 2 } } Line { SrcBlock "Uq" SrcPort 1 Points [0, 0] DstBlock "Add1" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 Points [175, 0; 0, -25] DstBlock "Add1" DstPort 2 } Line { SrcBlock "Gain4" SrcPort 1 Points [-125, 0; 0, -55] DstBlock "Add1" DstPort 4 } Line { SrcBlock "From2" SrcPort 1 Points [5, 0; 0, 40] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Gain7" DstPort 1 } Line { SrcBlock "Gain7" SrcPort 1 Points [10, 0; 0, -70] DstBlock "Add1" DstPort 3 } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0; 0, -50] DstBlock "Product2" DstPort 2 } Annotation { Name "id" Position [1075, 263] } Annotation { Name "iq" Position [1079, 465] } Annotation { Name "Kreisfrequenz elektrisch [rad/s]" Position [518, 382] } } } Block { BlockType SubSystem Name "dq-Transformation\nPark'sche Transformation" Ports [3, 2] Position [485, 204, 650, 356] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "dq-Transformation\nPark'sche Transformation" Location [6, 82, 1249, 771] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "U_alpha" Position [500, 168, 530, 182] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "U_beta" Position [500, 218, 530, 232] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkel elektrisch [rad]" Position [410, 373, 440, 387] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [480, 571, 515, 599] Gain "-1" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [680, 421, 685, 459] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [680, 466, 685, 504] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [630, 267, 660, 298] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [660, 357, 690, 388] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [765, 537, 795, 568] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" Ports [2, 1] Position [765, 647, 795, 678] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [745, 275, 765, 295] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [890, 545, 910, 565] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [535, 365, 565, 395] } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" Ports [1, 1] Position [535, 450, 565, 480] Operator "cos" } Block { BlockType Scope Name "al,be/cos,sin" Ports [2] Position [735, 431, 765, 464] Floating off Location [5, 56, 1405, 1023] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-5~-5" YMax "5~5" SaveName "ScopeData12" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Outport Name "Ud" Position [985, 278, 1015, 292] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Uq" Position [985, 548, 1015, 562] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Winkel elektrisch [rad]" SrcPort 1 Points [0, 0; 45, 0] Branch { DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, 85] DstBlock "Trigonometric\nFunction1" DstPort 1 } } Line { SrcBlock "U_alpha" SrcPort 1 Points [0, 0; 25, 0] Branch { Points [0, 100] DstBlock "Product" DstPort 1 } Branch { Points [0, -35; -195, 0; 0, 445; 65, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, -110] DstBlock "Mux1" DstPort 1 } } } Line { SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [45, 0] Branch { Points [0, 190] DstBlock "Product4" DstPort 1 } Branch { Points [0, -15] Branch { DstBlock "Product" DstPort 2 } Branch { Points [0, 0] DstBlock "Mux" DstPort 2 } } } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [60, 0] Branch { DstBlock "Product1" DstPort 2 } Branch { Points [0, 50] Branch { Points [0, 115] DstBlock "Product3" DstPort 1 } Branch { DstBlock "Mux" DstPort 1 } } } Line { SrcBlock "U_beta" SrcPort 1 Points [0, 0; 55, 0] Branch { Points [0, 140] DstBlock "Product1" DstPort 1 } Branch { Points [0, -105; -250, 0; 0, 550; 325, 0] Branch { DstBlock "Product4" DstPort 2 } Branch { DstBlock "Mux1" DstPort 2 } } } Line { SrcBlock "Product1" SrcPort 1 Points [60, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Ud" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Product4" SrcPort 1 Points [100, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Uq" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [205, 0; 0, -25] DstBlock "Product3" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "al,be/cos,sin" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 Points [0, -30] DstBlock "al,be/cos,sin" DstPort 2 } } } Block { BlockType SubSystem Name "dq_alpha/beta" Ports [3, 2] Position [785, 540, 940, 690] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "dq_alpha/beta" Location [6, 82, 1394, 996] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "id" Position [320, 248, 350, 262] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "iq" Position [320, 333, 350, 347] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkel elektrisch [rad]" Position [320, 523, 350, 537] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product" Ports [2, 1] Position [620, 247, 650, 278] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [620, 332, 650, 363] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [815, 552, 845, 583] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [820, 662, 850, 693] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [705, 255, 725, 275] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [920, 560, 940, 580] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [490, 515, 520, 545] Operator "cos" } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" Ports [1, 1] Position [490, 435, 520, 465] } Block { BlockType Outport Name "i_alpha" Position [835, 258, 865, 272] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "i_beta" Position [1000, 563, 1030, 577] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Winkel elektrisch [rad]" SrcPort 1 Points [0, 0; 70, 0] Branch { DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, -80] DstBlock "Trigonometric\nFunction1" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "id" SrcPort 1 Points [0, 0; 225, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, 305] DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [0, 0; 40, 0] Branch { Points [0, -260] DstBlock "Product" DstPort 2 } Branch { Points [0, 155] DstBlock "Product3" DstPort 2 } } Line { SrcBlock "iq" SrcPort 1 Points [0, 0; 235, 0] Branch { DstBlock "Product1" DstPort 1 } Branch { Points [0, 330] DstBlock "Product3" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [0, 0; 80, 0] Branch { DstBlock "Product1" DstPort 2 } Branch { Points [0, 125] DstBlock "Product2" DstPort 2 } } Line { SrcBlock "Product1" SrcPort 1 Points [60, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "i_alpha" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 Points [75, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "i_beta" DstPort 1 } } } Block { BlockType Scope Name "id_iq" Ports [1] Position [990, 144, 1020, 176] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData10" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Outport Name "Drehmoment EAntrieb" Position [1220, 268, 1250, 282] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Strom I" Position [1315, 608, 1345, 622] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "id_ist" Position [975, 83, 1005, 97] BackgroundColor "red" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "iq_ist" Position [975, 38, 1005, 52] BackgroundColor "red" Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Demux" SrcPort 1 Points [0, 0; 75, 0] Branch { DstBlock "Mux3" DstPort 3 } Branch { DstBlock "3Str_2Str\nClarke'sche Transformation" DstPort 1 } } Line { SrcBlock "Demux" SrcPort 2 Points [0, 0; 60, 0] Branch { Points [0, -110] DstBlock "Mux3" DstPort 2 } Branch { DstBlock "3Str_2Str\nClarke'sche Transformation" DstPort 2 } } Line { SrcBlock "Demux" SrcPort 3 Points [0, 0; 40, 0] Branch { Points [0, -165] DstBlock "Mux3" DstPort 1 } Branch { DstBlock "3Str_2Str\nClarke'sche Transformation" DstPort 3 } } Line { SrcBlock "3Str_2Str\nClarke'sche Transformation" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [0, -85] DstBlock "Mux" DstPort 1 } Branch { DstBlock "dq-Transformation\nPark'sche Transformation" DstPort 1 } } Line { SrcBlock "3Str_2Str\nClarke'sche Transformation" SrcPort 2 Points [45, 0; 0, -20; 10, 0] Branch { DstBlock "dq-Transformation\nPark'sche Transformation" DstPort 2 } Branch { DstBlock "Mux" DstPort 2 } } Line { SrcBlock "dq-Strom" SrcPort 1 Points [5, 0] Branch { Points [80, 0] Branch { DstBlock "Drehmoment Antrieb" DstPort 1 } Branch { Points [0, 255; -220, 0] DstBlock "dq_alpha/beta" DstPort 1 } } Branch { Points [0, -90] Branch { DstBlock "Mux5" DstPort 1 } Branch { Points [0, -60] DstBlock "id_ist" DstPort 1 } } } Line { SrcBlock "Mux" SrcPort 1 Points [0, 0] DstBlock "U_alpha_beta" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 Points [0, 0] DstBlock "U_3Str" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 Points [0, 0] DstBlock "id_iq" DstPort 1 } Line { SrcBlock "dq-Strom" SrcPort 2 Points [15, 0] Branch { Points [45, 0] Branch { DstBlock "Drehmoment Antrieb" DstPort 2 } Branch { Points [0, 160; -210, 0; 0, 145] DstBlock "dq_alpha/beta" DstPort 2 } } Branch { Points [0, -140] Branch { DstBlock "Mux5" DstPort 2 } Branch { Points [0, -125] DstBlock "iq_ist" DstPort 1 } } } Line { SrcBlock "dq-Transformation\nPark'sche Transformation" SrcPort 2 Points [0, -45; 50, 0] Branch { DstBlock "dq-Strom" DstPort 2 } Branch { Points [0, -110] DstBlock "Ud_Uq" DstPort 2 } } Line { SrcBlock "dq-Transformation\nPark'sche Transformation" SrcPort 1 Points [0, -15; 10, 0] Branch { DstBlock "dq-Strom" DstPort 1 } Branch { Points [0, -80] DstBlock "Ud_Uq" DstPort 1 } } Line { SrcBlock "Drehmoment Antrieb" SrcPort 1 DstBlock "Drehmoment EAntrieb" DstPort 1 } Line { SrcBlock "Winkelgeschwindigkeit [rad/s]" SrcPort 1 Points [575, 0; 0, -90] DstBlock "dq-Strom" DstPort 3 } Line { SrcBlock "Winkellage [rad]" SrcPort 1 Points [0, 0] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [0, 0; 165, 0] Branch { DstBlock "dq-Transformation\nPark'sche Transformation" DstPort 3 } Branch { Points [0, 85; 125, 0] Branch { DstBlock "dq_alpha/beta" DstPort 3 } Branch { Points [0, 105] DstBlock "Winkel elektrisch" DstPort 1 } } } Line { SrcBlock "dq_alpha/beta" SrcPort 1 DstBlock "2Str_3Str" DstPort 1 } Line { SrcBlock "dq_alpha/beta" SrcPort 2 DstBlock "2Str_3Str" DstPort 2 } Line { SrcBlock "Mux2" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [0, -100] DstBlock "I_3Str" DstPort 1 } Branch { DstBlock "Strom I" DstPort 1 } } Line { SrcBlock "2Str_3Str" SrcPort 2 Points [0, 0] DstBlock "Mux2" DstPort 2 } Line { SrcBlock "2Str_3Str" SrcPort 1 Points [30, 0; 0, 40] DstBlock "Mux2" DstPort 1 } Line { SrcBlock "2Str_3Str" SrcPort 3 Points [30, 0; 0, -40] DstBlock "Mux2" DstPort 3 } Line { SrcBlock "Strangspannung U" SrcPort 1 Points [0, 0] DstBlock "Demux" DstPort 1 } Annotation { Name "Winkel elektrisch [rad]" Position [399, 567] } } } Block { BlockType Scope Name "Strom I" Ports [1] Position [695, 459, 725, 491] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-1750" YMax "2250" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Welle" Ports [2, 3] Position [750, 307, 1030, 423] BackgroundColor "green" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Welle" Location [2, 74, 1278, 732] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Antriebsmoment EMaschine [Nm]" Position [205, 348, 235, 362] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Lastmoment [Nm]" Position [205, 468, 235, 482] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [375, 347, 405, 378] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain" Position [455, 343, 585, 387] Gain "1/J_an" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [885, 522, 975, 558] Gain "60/(2*pi)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [665, 350, 695, 380] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [910, 435, 940, 465] } Block { BlockType Scope Name "Scope2" Ports [2] Position [405, 516, 435, 549] Floating off Location [5, 48, 1405, 1015] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-600000~190" YMax "700000~210" SaveName "ScopeData14" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Winkelgeschwindigkeit / Winkellage" Ports [2] Position [1185, 281, 1215, 314] Floating off Location [5, 56, 1405, 1023] Open off NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-5~-5" YMax "5~5" SaveName "ScopeData11" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Outport Name "Winkelgeschwindigkeit [rad/s]" Position [1095, 358, 1125, 372] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Drehzahl min-1" Position [1040, 533, 1070, 547] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Winkellage [rad]" Position [1040, 443, 1070, 457] BackgroundColor "red" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Antriebsmoment EMaschine [Nm]" SrcPort 1 Points [0, 0; 105, 0] Branch { DstBlock "Add" DstPort 1 } Branch { Points [0, 170] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "Lastmoment [Nm]" SrcPort 1 Points [0, 0; 55, 0] Branch { Points [15, 0; 0, -105] DstBlock "Add" DstPort 2 } Branch { Points [0, 65] DstBlock "Scope2" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 Points [0, 0] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [0, 0] DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Drehzahl min-1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [0, 0; 70, 0] Branch { DstBlock "Winkellage [rad]" DstPort 1 } Branch { Points [0, -145] DstBlock "Winkelgeschwindigkeit / Winkellage" DstPort 2 } } Line { SrcBlock "Integrator" SrcPort 1 Points [0, 0; 90, 0] Branch { Points [45, 0] Branch { Points [0, 85] DstBlock "Integrator1" DstPort 1 } Branch { Points [140, 0] Branch { DstBlock "Winkelgeschwindigkeit [rad/s]" DstPort 1 } Branch { Points [0, -75] DstBlock "Winkelgeschwindigkeit / Winkellage" DstPort 1 } } } Branch { Points [0, 175] DstBlock "Gain1" DstPort 1 } } } } Block { BlockType Scope Name "Winkelgeschwindigkeit" Ports [1] Position [1150, 134, 1180, 166] Floating off Location [5, 56, 1405, 1023] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData4" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Winkellage [rad]" Ports [1] Position [1225, 459, 1255, 491] Floating off Location [5, 56, 1405, 1023] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } TimeRange "4" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Outport Name "Drehzahl [min-1]" Position [1300, 278, 1330, 292] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Winkelgeschwindigkeit [rad/s]" Position [1160, 218, 1190, 232] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Strangströme I" Position [695, 533, 725, 547] BackgroundColor "red" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Winkel" Position [1225, 398, 1255, 412] BackgroundColor "red" Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "id_ist" Position [550, 468, 580, 482] BackgroundColor "red" Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "iq_ist" Position [550, 538, 580, 552] BackgroundColor "red" Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Welle" SrcPort 2 Points [195, 0] Branch { DstBlock "Drehzahl" DstPort 1 } Branch { Points [0, -80] DstBlock "Drehzahl [min-1]" DstPort 1 } } Line { SrcBlock "EMaschine" SrcPort 1 Points [95, 0] Branch { DstBlock "Welle" DstPort 1 } Branch { Points [0, -50] DstBlock "Drehmoment EAntrieb" DstPort 1 } } Line { SrcBlock "Welle" SrcPort 1 Points [10, 0; 0, -100] Branch { Points [0, 0] Branch { Points [-985, 0; 0, 125] DstBlock "EMaschine" DstPort 1 } Branch { Points [0, 0; 0, -75] DstBlock "Winkelgeschwindigkeit" DstPort 1 } } Branch { DstBlock "Winkelgeschwindigkeit [rad/s]" DstPort 1 } } Line { SrcBlock "EMaschine" SrcPort 2 Points [60, 0; 0, 45; 100, 0; 0, 25] Branch { DstBlock "Strom I" DstPort 1 } Branch { Points [0, 65] DstBlock "Strangströme I" DstPort 1 } } Line { SrcBlock "Welle" SrcPort 3 Points [105, 0] Branch { Points [0, 70] Branch { DstBlock "Winkellage [rad]" DstPort 1 } Branch { Points [0, 185; -1080, 0; 0, -220] DstBlock "EMaschine" DstPort 2 } } Branch { DstBlock "Winkel" DstPort 1 } } Line { SrcBlock "Strangspannungen U" SrcPort 1 DstBlock "EMaschine" DstPort 3 } Line { SrcBlock "EMaschine" SrcPort 3 DstBlock "id_ist" DstPort 1 } Line { SrcBlock "EMaschine" SrcPort 4 DstBlock "iq_ist" DstPort 1 } Line { SrcBlock "Lastmoment [Nm]" SrcPort 1 DstBlock "Welle" DstPort 2 } } } Block { BlockType From Name "From" Position [120, 201, 160, 229] CloseFcn "tagdialog Close" GotoTag "iq_ist" } Block { BlockType From Name "From1" Position [115, 376, 155, 404] CloseFcn "tagdialog Close" GotoTag "id_ist" } Block { BlockType From Name "From2" Position [15, 334, 170, 366] CloseFcn "tagdialog Close" GotoTag "Winkelgeschwindigkeit" } Block { BlockType From Name "From3" Position [35, 280, 100, 310] CloseFcn "tagdialog Close" GotoTag "Winkel" } Block { BlockType Goto Name "Goto" Position [1115, 264, 1255, 296] GotoTag "Winkelgeschwindigkeit" TagVisibility "local" } Block { BlockType Goto Name "Goto1" Position [1115, 335, 1210, 365] GotoTag "Winkel" TagVisibility "local" } Block { BlockType Goto Name "Goto2" Position [1115, 400, 1210, 430] GotoTag "id_ist" TagVisibility "local" } Block { BlockType Goto Name "Goto3" Position [1115, 460, 1210, 490] GotoTag "iq_ist" TagVisibility "local" } Block { BlockType Reference Name "Repeating\nSequence" Ports [0, 1] Position [185, 255, 215, 285] SourceBlock "simulink/Sources/Repeating\nSequence" SourceType "Repeating table" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" rep_seq_t "[0 0.01 0.1 0.2 0.3 0.31]" rep_seq_y "[0 100 100 200 200 0]" } Block { BlockType SubSystem Name "Umrichter" Ports [5, 1] Position [280, 212, 475, 408] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Umrichter" Location [2, 74, 1278, 732] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "iq_ist" Position [90, 273, 120, 287] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "M_soll" Position [90, 228, 120, 242] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkel" Position [565, 508, 595, 522] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkelgeschwindigkeit" Position [475, 373, 505, 387] BackgroundColor "green" Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "id_ist" Position [90, 318, 120, 332] BackgroundColor "green" Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "2Str_3Str" Ports [2, 3] Position [1090, 229, 1200, 381] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "2Str_3Str" Location [2, 82, 1390, 1004] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "u_alpha" Position [140, 253, 170, 267] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "u_beta" Position [140, 483, 170, 497] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [315, 325, 380, 355] Gain "-0.5" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [315, 399, 425, 431] Gain "sqrt(3)/2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [490, 330, 510, 350] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [560, 380, 580, 400] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Uu" Position [625, 253, 655, 267] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Uv" Position [625, 333, 655, 347] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Uw" Position [625, 383, 655, 397] BackgroundColor "red" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "u_alpha" SrcPort 1 Points [40, 0] Branch { DstBlock "Uu" DstPort 1 } Branch { Points [0, 80] DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [70, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 50] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "u_beta" SrcPort 1 Points [60, 0; 0, -75] DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [70, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Uv" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Uw" DstPort 1 } } } Block { BlockType Gain Name "Gain" Position [695, 498, 805, 532] Gain "Polpaare" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Moment zu iq" Ports [3, 2] Position [180, 215, 380, 345] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "iq" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "id" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Moment zu iq" Location [6, 82, 1266, 771] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "M_soll" Position [300, 273, 330, 287] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "iq_ist" Position [970, 423, 1000, 437] Orientation "left" BackgroundColor "green" NamePlacement "alternate" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "id_ist" Position [530, 593, 560, 607] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" Position [340, 545, 370, 575] Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Fcn Name "Moment in Strom iq" Position [425, 264, 510, 296] Expr "u(1)/(1.5*PsiPM)" } Block { BlockType Fcn Name "Momentabschätzung" Position [585, 415, 675, 445] Orientation "left" NamePlacement "alternate" Expr "1.5*PsiPM*u(1)" } Block { BlockType Reference Name "PID Controller" Ports [1, 1] Position [875, 265, 905, 295] SourceBlock "simulink_extras/Additional\nLinear/PID Controller" SourceType "PID Controller" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" P "1" I "0" D "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [385, 270, 405, 290] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [600, 270, 620, 290] ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [735, 270, 755, 290] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [475, 420, 495, 440] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [595, 550, 615, 570] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "iq" Position [970, 273, 1000, 287] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "id" Position [970, 553, 1000, 567] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "M_soll" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Moment in Strom iq" DstPort 1 } Line { SrcBlock "Moment in Strom iq" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "PID Controller" DstPort 1 } Line { SrcBlock "Momentabschätzung" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "PID Controller" SrcPort 1 DstBlock "iq" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "id" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [-75, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "id_ist" SrcPort 1 Points [40, 0] DstBlock "Sum4" DstPort 2 } Line { SrcBlock "iq_ist" SrcPort 1 Points [-220, 0] Branch { DstBlock "Momentabschätzung" DstPort 1 } Branch { DstBlock "Sum2" DstPort 2 } } } } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [1265, 232, 1270, 378] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Scope Name "Scope1" Ports [2] Position [485, 161, 515, 194] Floating off Location [1, 48, 1281, 769] Open off NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "53.1867~-12.355" YMax "53.19~-12.29" SaveName "ScopeData13" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope2" Ports [2] Position [825, 156, 855, 189] Floating off Location [1, 48, 1281, 769] Open off NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-23.65~85.65" YMax "-23.2~85.69" SaveName "ScopeData18" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" Ports [2] Position [1110, 161, 1140, 194] Floating off Location [5, 34, 1289, 789] Open off NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-40~-91" YMax "60~-69" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Strom zu Spannung" Ports [3, 2] Position [590, 217, 730, 413] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Strom zu Spannung" Location [6, 82, 1394, 996] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "iq" Position [545, 393, 575, 407] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "id" Position [530, 93, 560, 107] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkelgeschwindigkeit [rad/s]" Position [150, 283, 180, 297] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" Ports [3, 1] Position [955, 194, 985, 226] Inputs "++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" Ports [4, 1] Position [975, 577, 1005, 648] Inputs "++++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Constant" Position [685, 135, 715, 165] Value "Rs" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [740, 480, 770, 510] Value "Rs" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" Position [575, 754, 635, 786] Value "PsiPM" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Derivative Name "Derivative" Position [685, 195, 715, 225] } Block { BlockType Derivative Name "Derivative1" Position [680, 555, 710, 585] } Block { BlockType Gain Name "Gain" Position [765, 195, 855, 225] Gain "Ld*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [300, 272, 470, 308] Gain "Polpaare" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [770, 555, 860, 585] Gain "Lq*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [610, 275, 700, 305] Gain "Lq*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" Position [545, 630, 635, 660] Gain "Ld*1e-3" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product" Ports [2, 1] Position [815, 127, 845, 158] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [800, 282, 830, 313] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [895, 472, 925, 503] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [695, 637, 725, 668] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" Ports [2, 1] Position [695, 722, 725, 753] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "ud" Position [1070, 203, 1100, 217] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "uq" Position [1070, 608, 1100, 622] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Constant" SrcPort 1 Points [0, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "id" SrcPort 1 Points [60, 0] Branch { Points [130, 0; 0, 35] DstBlock "Product" DstPort 1 } Branch { Points [0, 110] DstBlock "Derivative" DstPort 1 } Branch { Points [0, -70; -545, 0; 0, 655; 590, 0; 0, -25] DstBlock "Product3" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 DstBlock "ud" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [45, 0; 0, 55] DstBlock "Add" DstPort 1 } Line { SrcBlock "Derivative" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Add" DstPort 2 } Line { SrcBlock "Winkelgeschwindigkeit [rad/s]" SrcPort 1 Points [80, 0] Branch { DstBlock "Gain1" DstPort 1 } Branch { Points [0, 440] DstBlock "Product4" DstPort 1 } } Line { SrcBlock "Gain1" SrcPort 1 Points [15, 0] Branch { DstBlock "Gain3" DstPort 1 } Branch { Points [0, 355] DstBlock "Gain4" DstPort 1 } } Line { SrcBlock "iq" SrcPort 1 Points [50, 0] Branch { Points [155, 0] Branch { DstBlock "Product1" DstPort 2 } Branch { Points [0, 80] DstBlock "Product2" DstPort 1 } } Branch { Points [0, 170] DstBlock "Derivative1" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 Points [50, 0; 0, -80] DstBlock "Add" DstPort 3 } Line { SrcBlock "Add1" SrcPort 1 DstBlock "uq" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 Points [15, 0; 0, 100] DstBlock "Add1" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Product2" DstPort 2 } Line { SrcBlock "Derivative1" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [45, 0; 0, 35] DstBlock "Add1" DstPort 2 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 Points [115, 0; 0, -35] DstBlock "Add1" DstPort 3 } Line { SrcBlock "Constant2" SrcPort 1 Points [20, 0; 0, -25] DstBlock "Product4" DstPort 2 } Line { SrcBlock "Product4" SrcPort 1 Points [180, 0; 0, -105] DstBlock "Add1" DstPort 4 } } } Block { BlockType SubSystem Name "dq_alpha/beta" Ports [3, 2] Position [860, 240, 1015, 390] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "dq_alpha/beta" Location [2, 82, 1390, 1004] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "ud" Position [110, 93, 140, 107] BackgroundColor "green" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "uq" Position [110, 178, 140, 192] BackgroundColor "green" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Winkel elektrisch [rad]" Position [110, 368, 140, 382] BackgroundColor "green" Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product" Ports [2, 1] Position [410, 92, 440, 123] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [410, 177, 440, 208] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [605, 397, 635, 428] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [610, 507, 640, 538] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [495, 100, 515, 120] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [710, 405, 730, 425] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [280, 360, 310, 390] Operator "cos" } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" Ports [1, 1] Position [280, 280, 310, 310] } Block { BlockType Outport Name "u_alpha" Position [625, 103, 655, 117] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "u_beta" Position [790, 408, 820, 422] BackgroundColor "red" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Winkel elektrisch [rad]" SrcPort 1 Points [70, 0] Branch { DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, -80] DstBlock "Trigonometric\nFunction1" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "ud" SrcPort 1 Points [225, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, 305] DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [40, 0] Branch { Points [0, -260] DstBlock "Product" DstPort 2 } Branch { Points [0, 155] DstBlock "Product3" DstPort 2 } } Line { SrcBlock "uq" SrcPort 1 Points [235, 0] Branch { DstBlock "Product1" DstPort 1 } Branch { Points [0, 330] DstBlock "Product3" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [80, 0] Branch { DstBlock "Product1" DstPort 2 } Branch { Points [0, 125] DstBlock "Product2" DstPort 2 } } Line { SrcBlock "Product1" SrcPort 1 Points [60, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "u_alpha" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 Points [75, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "u_beta" DstPort 1 } } } Block { BlockType Outport Name "U1,U2,U3" Position [1310, 298, 1340, 312] BackgroundColor "red" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "dq_alpha/beta" SrcPort 1 Points [0, -10; 5, 0] Branch { DstBlock "2Str_3Str" DstPort 1 } Branch { Points [0, -100] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "dq_alpha/beta" SrcPort 2 Points [0, -10; 25, 0] Branch { DstBlock "2Str_3Str" DstPort 2 } Branch { Points [0, -160] DstBlock "Scope3" DstPort 2 } } Line { SrcBlock "2Str_3Str" SrcPort 2 Points [0, 0] DstBlock "Mux" DstPort 2 } Line { SrcBlock "2Str_3Str" SrcPort 1 Points [0, 0] DstBlock "Mux" DstPort 1 } Line { SrcBlock "2Str_3Str" SrcPort 3 Points [0, 0] DstBlock "Mux" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "U1,U2,U3" DstPort 1 } Line { SrcBlock "Winkel" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Winkelgeschwindigkeit" SrcPort 1 DstBlock "Strom zu Spannung" DstPort 3 } Line { SrcBlock "M_soll" SrcPort 1 DstBlock "Moment zu iq" DstPort 1 } Line { SrcBlock "iq_ist" SrcPort 1 DstBlock "Moment zu iq" DstPort 2 } Line { SrcBlock "id_ist" SrcPort 1 DstBlock "Moment zu iq" DstPort 3 } Line { Name "iq" Labels [0, 0] SrcBlock "Moment zu iq" SrcPort 1 Points [25, 0] Branch { Points [0, -80] DstBlock "Scope1" DstPort 1 } Branch { DstBlock "Strom zu Spannung" DstPort 1 } } Line { Name "id" Labels [0, 0] SrcBlock "Moment zu iq" SrcPort 2 Points [50, 0] Branch { Points [0, -130] DstBlock "Scope1" DstPort 2 } Branch { DstBlock "Strom zu Spannung" DstPort 2 } } Line { SrcBlock "Gain" SrcPort 1 Points [15, 0; 0, -150] DstBlock "dq_alpha/beta" DstPort 3 } Line { SrcBlock "Strom zu Spannung" SrcPort 1 Points [10, 0] Branch { DstBlock "dq_alpha/beta" DstPort 1 } Branch { Points [0, -100] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "Strom zu Spannung" SrcPort 2 Points [55, 0; 0, -50] Branch { DstBlock "dq_alpha/beta" DstPort 2 } Branch { Points [0, -135] DstBlock "Scope2" DstPort 2 } } } } Line { SrcBlock "Repeating\nSequence" SrcPort 1 DstBlock "Umrichter" DstPort 2 } Line { SrcBlock "E-Maschine Antrieb" SrcPort 2 Points [145, 0] DstBlock "Goto" DstPort 1 } Line { SrcBlock "E-Maschine Antrieb" SrcPort 4 Points [145, 0] DstBlock "Goto1" DstPort 1 } Line { SrcBlock "E-Maschine Antrieb" SrcPort 5 Points [105, 0; 0, 5] DstBlock "Goto2" DstPort 1 } Line { SrcBlock "E-Maschine Antrieb" SrcPort 6 Points [110, 0; 0, 30] DstBlock "Goto3" DstPort 1 } Line { SrcBlock "From" SrcPort 1 Points [50, 0; 0, 15] DstBlock "Umrichter" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Umrichter" DstPort 5 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Umrichter" DstPort 4 } Line { SrcBlock "From3" SrcPort 1 Points [0, 15] DstBlock "Umrichter" DstPort 3 } Line { SrcBlock "Umrichter" SrcPort 1 DstBlock "E-Maschine Antrieb" DstPort 1 } } }