6481 lines
164 KiB
Plaintext
6481 lines
164 KiB
Plaintext
Model {
|
|
Name "DTC_control"
|
|
Version 7.3
|
|
MdlSubVersion 0
|
|
GraphicalInterface {
|
|
NumRootInports 0
|
|
NumRootOutports 0
|
|
ParameterArgumentNames ""
|
|
ComputedModelVersion "1.32"
|
|
NumModelReferences 0
|
|
NumTestPointedSignals 0
|
|
}
|
|
SavedCharacterEncoding "GBK"
|
|
PreLoadFcn "Ts=20e-6;"
|
|
SaveDefaultBlockParams on
|
|
ScopeRefreshTime 0.035000
|
|
OverrideScopeRefreshTime on
|
|
DisableAllScopes off
|
|
DataTypeOverride "UseLocalSettings"
|
|
MinMaxOverflowLogging "UseLocalSettings"
|
|
MinMaxOverflowArchiveMode "Overwrite"
|
|
InitFcn "Ts=20e-6;"
|
|
Created "Sun Aug 01 10:27:15 2010"
|
|
Creator "ljzhu"
|
|
UpdateHistory "UpdateHistoryNever"
|
|
ModifiedByFormat "%<Auto>"
|
|
LastModifiedBy "xujunsheng"
|
|
ModifiedDateFormat "%<Auto>"
|
|
LastModifiedDate "Wed May 09 20:04:31 2018"
|
|
RTWModifiedTimeStamp 0
|
|
ModelVersionFormat "1.%<AutoIncrement:32>"
|
|
ConfigurationManager "None"
|
|
SampleTimeColors off
|
|
SampleTimeAnnotations off
|
|
LibraryLinkDisplay "none"
|
|
WideLines off
|
|
ShowLineDimensions off
|
|
ShowPortDataTypes off
|
|
ShowLoopsOnError on
|
|
IgnoreBidirectionalLines off
|
|
ShowStorageClass off
|
|
ShowTestPointIcons on
|
|
ShowSignalResolutionIcons on
|
|
ShowViewerIcons on
|
|
SortedOrder off
|
|
ExecutionContextIcon off
|
|
ShowLinearizationAnnotations on
|
|
BlockNameDataTip off
|
|
BlockParametersDataTip off
|
|
BlockDescriptionStringDataTip off
|
|
ToolBar on
|
|
StatusBar on
|
|
BrowserShowLibraryLinks off
|
|
BrowserLookUnderMasks off
|
|
SimulationMode "normal"
|
|
LinearizationMsg "none"
|
|
Profile off
|
|
ParamWorkspaceSource "MATLABWorkspace"
|
|
AccelSystemTargetFile "accel.tlc"
|
|
AccelTemplateMakefile "accel_default_tmf"
|
|
AccelMakeCommand "make_rtw"
|
|
TryForcingSFcnDF off
|
|
RecordCoverage off
|
|
CovPath "/"
|
|
CovSaveName "covdata"
|
|
CovMetricSettings "dw"
|
|
CovNameIncrementing off
|
|
CovHtmlReporting on
|
|
covSaveCumulativeToWorkspaceVar on
|
|
CovSaveSingleToWorkspaceVar on
|
|
CovCumulativeVarName "covCumulativeData"
|
|
CovCumulativeReport off
|
|
CovReportOnPause on
|
|
CovModelRefEnable "Off"
|
|
CovExternalEMLEnable off
|
|
ExtModeBatchMode off
|
|
ExtModeEnableFloating on
|
|
ExtModeTrigType "manual"
|
|
ExtModeTrigMode "normal"
|
|
ExtModeTrigPort "1"
|
|
ExtModeTrigElement "any"
|
|
ExtModeTrigDuration 1000
|
|
ExtModeTrigDurationFloating "auto"
|
|
ExtModeTrigHoldOff 0
|
|
ExtModeTrigDelay 0
|
|
ExtModeTrigDirection "rising"
|
|
ExtModeTrigLevel 0
|
|
ExtModeArchiveMode "off"
|
|
ExtModeAutoIncOneShot off
|
|
ExtModeIncDirWhenArm off
|
|
ExtModeAddSuffixToVar off
|
|
ExtModeWriteAllDataToWs off
|
|
ExtModeArmWhenConnect on
|
|
ExtModeSkipDownloadWhenConnect off
|
|
ExtModeLogAll on
|
|
ExtModeAutoUpdateStatusClock on
|
|
BufferReuse on
|
|
ShowModelReferenceBlockVersion off
|
|
ShowModelReferenceBlockIO off
|
|
Array {
|
|
Type "Handle"
|
|
Dimension 1
|
|
Simulink.ConfigSet {
|
|
$ObjectID 1
|
|
Version "1.6.0"
|
|
Array {
|
|
Type "Handle"
|
|
Dimension 8
|
|
Simulink.SolverCC {
|
|
$ObjectID 2
|
|
Version "1.6.0"
|
|
StartTime "0.0"
|
|
StopTime "5"
|
|
AbsTol "auto"
|
|
FixedStep "Ts"
|
|
InitialStep "auto"
|
|
MaxNumMinSteps "-1"
|
|
MaxOrder 5
|
|
ZcThreshold "auto"
|
|
ConsecutiveZCsStepRelTol "10*128*eps"
|
|
MaxConsecutiveZCs "1000"
|
|
ExtrapolationOrder 4
|
|
NumberNewtonIterations 1
|
|
MaxStep "auto"
|
|
MinStep "auto"
|
|
MaxConsecutiveMinStep "1"
|
|
RelTol "1e-3"
|
|
SolverMode "Auto"
|
|
Solver "FixedStepDiscrete"
|
|
SolverName "FixedStepDiscrete"
|
|
ShapePreserveControl "DisableAll"
|
|
ZeroCrossControl "UseLocalSettings"
|
|
ZeroCrossAlgorithm "Nonadaptive"
|
|
AlgebraicLoopSolver "TrustRegion"
|
|
SolverResetMethod "Fast"
|
|
PositivePriorityOrder off
|
|
AutoInsertRateTranBlk off
|
|
SampleTimeConstraint "Unconstrained"
|
|
InsertRTBMode "Whenever possible"
|
|
SignalSizeVariationType "Allow only fixed size"
|
|
}
|
|
Simulink.DataIOCC {
|
|
$ObjectID 3
|
|
Version "1.6.0"
|
|
Decimation "1"
|
|
ExternalInput "[t, u]"
|
|
FinalStateName "xFinal"
|
|
InitialState "xInitial"
|
|
LimitDataPoints on
|
|
MaxDataPoints "1000"
|
|
LoadExternalInput off
|
|
LoadInitialState off
|
|
SaveFinalState off
|
|
SaveCompleteFinalSimState off
|
|
SaveFormat "Array"
|
|
SaveOutput on
|
|
SaveState off
|
|
SignalLogging on
|
|
InspectSignalLogs off
|
|
SaveTime on
|
|
StateSaveName "xout"
|
|
TimeSaveName "tout"
|
|
OutputSaveName "yout"
|
|
SignalLoggingName "logsout"
|
|
OutputOption "RefineOutputTimes"
|
|
OutputTimes "[]"
|
|
Refine "1"
|
|
}
|
|
Simulink.OptimizationCC {
|
|
$ObjectID 4
|
|
Version "1.6.0"
|
|
Array {
|
|
Type "Cell"
|
|
Dimension 4
|
|
Cell "ZeroExternalMemoryAtStartup"
|
|
Cell "ZeroInternalMemoryAtStartup"
|
|
Cell "NoFixptDivByZeroProtection"
|
|
Cell "OptimizeModelRefInitCode"
|
|
PropName "DisabledProps"
|
|
}
|
|
BlockReduction on
|
|
BooleanDataType on
|
|
ConditionallyExecuteInputs on
|
|
InlineParams off
|
|
InlineInvariantSignals off
|
|
OptimizeBlockIOStorage on
|
|
BufferReuse on
|
|
EnhancedBackFolding off
|
|
StrengthReduction off
|
|
EnforceIntegerDowncast on
|
|
ExpressionFolding on
|
|
EnableMemcpy on
|
|
MemcpyThreshold 64
|
|
PassReuseOutputArgsAs "Structure reference"
|
|
ExpressionDepthLimit 2147483647
|
|
FoldNonRolledExpr on
|
|
LocalBlockOutputs on
|
|
RollThreshold 5
|
|
SystemCodeInlineAuto off
|
|
StateBitsets off
|
|
DataBitsets off
|
|
UseTempVars off
|
|
ZeroExternalMemoryAtStartup on
|
|
ZeroInternalMemoryAtStartup on
|
|
InitFltsAndDblsToZero on
|
|
NoFixptDivByZeroProtection off
|
|
EfficientFloat2IntCast off
|
|
EfficientMapNaN2IntZero on
|
|
OptimizeModelRefInitCode off
|
|
LifeSpan "inf"
|
|
BufferReusableBoundary on
|
|
SimCompilerOptimization "Off"
|
|
AccelVerboseBuild off
|
|
}
|
|
Simulink.DebuggingCC {
|
|
$ObjectID 5
|
|
Version "1.6.0"
|
|
RTPrefix "error"
|
|
ConsistencyChecking "none"
|
|
ArrayBoundsChecking "none"
|
|
SignalInfNanChecking "none"
|
|
SignalRangeChecking "none"
|
|
ReadBeforeWriteMsg "UseLocalSettings"
|
|
WriteAfterWriteMsg "UseLocalSettings"
|
|
WriteAfterReadMsg "UseLocalSettings"
|
|
AlgebraicLoopMsg "warning"
|
|
ArtificialAlgebraicLoopMsg "warning"
|
|
SaveWithDisabledLinksMsg "warning"
|
|
SaveWithParameterizedLinksMsg "none"
|
|
CheckSSInitialOutputMsg on
|
|
UnderspecifiedInitializationDetection "Classic"
|
|
MergeDetectMultiDrivingBlocksExec "none"
|
|
CheckExecutionContextPreStartOutputMsg off
|
|
CheckExecutionContextRuntimeOutputMsg off
|
|
SignalResolutionControl "TryResolveAllWithWarning"
|
|
BlockPriorityViolationMsg "warning"
|
|
MinStepSizeMsg "warning"
|
|
TimeAdjustmentMsg "none"
|
|
MaxConsecutiveZCsMsg "error"
|
|
SolverPrmCheckMsg "warning"
|
|
InheritedTsInSrcMsg "warning"
|
|
DiscreteInheritContinuousMsg "warning"
|
|
MultiTaskDSMMsg "warning"
|
|
MultiTaskCondExecSysMsg "none"
|
|
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"
|
|
UnknownTsInhSupMsg "warning"
|
|
ModelReferenceDataLoggingMessage "warning"
|
|
ModelReferenceSymbolNameMessage "warning"
|
|
ModelReferenceExtraNoncontSigs "error"
|
|
StateNameClashWarn "warning"
|
|
StrictBusMsg "Warning"
|
|
LoggingUnavailableSignals "error"
|
|
BlockIODiagnostic "none"
|
|
}
|
|
Simulink.HardwareCC {
|
|
$ObjectID 6
|
|
Version "1.6.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.6.0"
|
|
UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
|
|
CheckModelReferenceTargetMessage "error"
|
|
ModelReferenceNumInstancesAllowed "Multi"
|
|
ModelReferencePassRootInputsByReference on
|
|
ModelReferenceMinAlgLoopOccurrences off
|
|
}
|
|
Simulink.SFSimCC {
|
|
$ObjectID 8
|
|
Version "1.6.0"
|
|
SFSimEnableDebug on
|
|
SFSimOverflowDetection on
|
|
SFSimEcho on
|
|
SimBlas on
|
|
SimUseLocalCustomCode off
|
|
SimBuildMode "sf_incremental_build"
|
|
}
|
|
Simulink.RTWCC {
|
|
$BackupClass "Simulink.RTWCC"
|
|
$ObjectID 9
|
|
Version "1.6.0"
|
|
Array {
|
|
Type "Cell"
|
|
Dimension 1
|
|
Cell "IncludeHyperlinkInReport"
|
|
PropName "DisabledProps"
|
|
}
|
|
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
|
|
RTWUseLocalCustomCode off
|
|
RTWUseSimCustomCode off
|
|
IncludeHyperlinkInReport off
|
|
LaunchReport off
|
|
TargetLang "C"
|
|
IncludeBusHierarchyInRTWFileBlockHierarchyMap off
|
|
IncludeERTFirstTime on
|
|
GenerateTraceInfo off
|
|
GenerateTraceReport off
|
|
GenerateTraceReportSl off
|
|
GenerateTraceReportSf off
|
|
GenerateTraceReportEml off
|
|
GenerateCodeInfo off
|
|
RTWCompilerOptimization "Off"
|
|
CheckMdlBeforeBuild "Off"
|
|
Array {
|
|
Type "Handle"
|
|
Dimension 2
|
|
Simulink.CodeAppCC {
|
|
$ObjectID 10
|
|
Version "1.6.0"
|
|
Array {
|
|
Type "Cell"
|
|
Dimension 9
|
|
Cell "IgnoreCustomStorageClasses"
|
|
Cell "InsertBlockDesc"
|
|
Cell "SFDataObjDesc"
|
|
Cell "SimulinkDataObjDesc"
|
|
Cell "DefineNamingRule"
|
|
Cell "SignalNamingRule"
|
|
Cell "ParamNamingRule"
|
|
Cell "InlinedPrmAccess"
|
|
Cell "CustomSymbolStr"
|
|
PropName "DisabledProps"
|
|
}
|
|
ForceParamTrailComments off
|
|
GenerateComments on
|
|
IgnoreCustomStorageClasses on
|
|
IgnoreTestpoints off
|
|
IncHierarchyInIds off
|
|
MaxIdLength 31
|
|
PreserveName off
|
|
PreserveNameWithParent off
|
|
ShowEliminatedStatement off
|
|
IncAutoGenComments off
|
|
SimulinkDataObjDesc off
|
|
SFDataObjDesc off
|
|
IncDataTypeInIds off
|
|
MangleLength 1
|
|
CustomSymbolStrGlobalVar "$R$N$M"
|
|
CustomSymbolStrType "$N$R$M"
|
|
CustomSymbolStrField "$N$M"
|
|
CustomSymbolStrFcn "$R$N$M$F"
|
|
CustomSymbolStrBlkIO "rtb_$N$M"
|
|
CustomSymbolStrTmpVar "$N$M"
|
|
CustomSymbolStrMacro "$R$N$M"
|
|
DefineNamingRule "None"
|
|
ParamNamingRule "None"
|
|
SignalNamingRule "None"
|
|
InsertBlockDesc off
|
|
SimulinkBlockComments on
|
|
EnableCustomComments off
|
|
InlinedPrmAccess "Literals"
|
|
ReqsInCode off
|
|
UseSimReservedNames off
|
|
}
|
|
Simulink.GRTTargetCC {
|
|
$BackupClass "Simulink.TargetCC"
|
|
$ObjectID 11
|
|
Version "1.6.0"
|
|
Array {
|
|
Type "Cell"
|
|
Dimension 12
|
|
Cell "IncludeMdlTerminateFcn"
|
|
Cell "CombineOutputUpdateFcns"
|
|
Cell "SuppressErrorStatus"
|
|
Cell "ERTCustomFileBanners"
|
|
Cell "GenerateSampleERTMain"
|
|
Cell "MultiInstanceERTCode"
|
|
Cell "PurelyIntegerCode"
|
|
Cell "SupportNonFinite"
|
|
Cell "SupportComplex"
|
|
Cell "SupportAbsoluteTime"
|
|
Cell "SupportContinuousTime"
|
|
Cell "SupportNonInlinedSFcns"
|
|
PropName "DisabledProps"
|
|
}
|
|
TargetFcnLib "ansi_tfl_tmw.mat"
|
|
TargetLibSuffix ""
|
|
TargetPreCompLibLocation ""
|
|
TargetFunctionLibrary "ANSI_C"
|
|
UtilityFuncGeneration "Auto"
|
|
ERTMultiwordTypeDef "System defined"
|
|
ERTMultiwordLength 256
|
|
MultiwordLength 2048
|
|
GenerateFullHeader on
|
|
GenerateSampleERTMain off
|
|
GenerateTestInterfaces off
|
|
IsPILTarget off
|
|
ModelReferenceCompliant on
|
|
ParMdlRefBuildCompliant on
|
|
CompOptLevelCompliant on
|
|
IncludeMdlTerminateFcn on
|
|
CombineOutputUpdateFcns off
|
|
SuppressErrorStatus off
|
|
ERTFirstTimeCompliant 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
|
|
CPPClassGenCompliant off
|
|
AutosarCompliant off
|
|
UseMalloc 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"
|
|
ConfigPrmDlgPosition " [ 360, 135, 1240, 765 ] "
|
|
}
|
|
PropName "ConfigurationSets"
|
|
}
|
|
Simulink.ConfigSet {
|
|
$PropName "ActiveConfigurationSet"
|
|
$ObjectID 1
|
|
}
|
|
BlockDefaults {
|
|
ForegroundColor "black"
|
|
BackgroundColor "white"
|
|
DropShadow off
|
|
NamePlacement "normal"
|
|
FontName "arial"
|
|
FontSize 10
|
|
FontWeight "normal"
|
|
FontAngle "normal"
|
|
ShowName on
|
|
BlockRotation 0
|
|
BlockMirror off
|
|
}
|
|
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"
|
|
}
|
|
BlockParameterDefaults {
|
|
Block {
|
|
BlockType Abs
|
|
ZeroCross on
|
|
SampleTime "-1"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Same as input"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Same as input"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
}
|
|
Block {
|
|
BlockType BusCreator
|
|
Inputs "4"
|
|
DisplayOption "none"
|
|
UseBusObject off
|
|
BusObject "BusObject"
|
|
NonVirtualBus off
|
|
}
|
|
Block {
|
|
BlockType BusSelector
|
|
OutputAsBus off
|
|
}
|
|
Block {
|
|
BlockType Clock
|
|
DisplayTime off
|
|
}
|
|
Block {
|
|
BlockType ComplexToMagnitudeAngle
|
|
Output "Magnitude and angle"
|
|
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 "[]"
|
|
OutDataTypeStr "Inherit: Inherit from 'Constant value'"
|
|
LockScale off
|
|
SampleTime "inf"
|
|
FramePeriod "inf"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Inherit via back propagation"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Inherit via back propagation"
|
|
LockScale off
|
|
ConvertRealWorld "Real World Value (RWV)"
|
|
RndMeth "Zero"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType Demux
|
|
Outputs "4"
|
|
DisplayOption "none"
|
|
BusSelectionMode off
|
|
}
|
|
Block {
|
|
BlockType DiscreteIntegrator
|
|
IntegratorMethod "Integration: Forward Euler"
|
|
gainval "1.0"
|
|
ExternalReset "none"
|
|
InitialConditionSource "internal"
|
|
InitialCondition "0"
|
|
InitialConditionMode "State and output"
|
|
SampleTime "1"
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow off
|
|
LimitOutput off
|
|
UpperSaturationLimit "inf"
|
|
LowerSaturationLimit "-inf"
|
|
ShowSaturationPort off
|
|
ShowStatePort off
|
|
IgnoreLimit off
|
|
StateMustResolveToSignalObject off
|
|
RTWStateStorageClass "Auto"
|
|
}
|
|
Block {
|
|
BlockType DiscretePulseGenerator
|
|
PulseType "Sample based"
|
|
TimeSource "Use simulation time"
|
|
VectorParams1D on
|
|
}
|
|
Block {
|
|
BlockType DiscreteTransferFcn
|
|
Numerator "[1]"
|
|
Denominator "[1 0.5]"
|
|
SampleTime "1"
|
|
StateMustResolveToSignalObject off
|
|
RTWStateStorageClass "Auto"
|
|
Realization "auto"
|
|
}
|
|
Block {
|
|
BlockType From
|
|
IconDisplay "Tag"
|
|
TagVisibility "local"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Gain "1"
|
|
Multiplication "Element-wise(K.*u)"
|
|
ParamMin "[]"
|
|
ParamMax "[]"
|
|
ParameterDataTypeMode "Same as input"
|
|
ParameterDataType "fixdt(1,16,0)"
|
|
ParameterScalingMode "Best Precision: Matrix-wise"
|
|
ParameterScaling "[]"
|
|
ParamDataTypeStr "Inherit: Same as input"
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Same as input"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Same as input"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType Goto
|
|
IconDisplay "Tag"
|
|
}
|
|
Block {
|
|
BlockType InitialCondition
|
|
Value "1"
|
|
SampleTime "-1"
|
|
}
|
|
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 "[]"
|
|
OutDataTypeStr "Inherit: auto"
|
|
LockScale off
|
|
SignalType "auto"
|
|
SamplingMode "auto"
|
|
LatchByDelayingOutsideSignal off
|
|
LatchByCopyingInsideSignal off
|
|
Interpolate on
|
|
DimensionsMode "auto"
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Operator "AND"
|
|
Inputs "2"
|
|
IconShape "rectangular"
|
|
AllPortsSameDT on
|
|
OutDataTypeMode "Logical (see Configuration Parameters: Optimization)"
|
|
LogicDataType "uint(8)"
|
|
OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)"
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType Lookup
|
|
Table " rand(1,10)-0.5"
|
|
LookUpMeth "Interpolation-Extrapolation"
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Same as input"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Same as input"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
LUTDesignTableMode "Redesign Table"
|
|
LUTDesignDataSource "Block Dialog"
|
|
LUTDesignFunctionName "sqrt(x)"
|
|
LUTDesignUseExistingBP on
|
|
LUTDesignRelError "0.01"
|
|
LUTDesignAbsError "1e-6"
|
|
}
|
|
Block {
|
|
BlockType Lookup2D
|
|
RowIndex "[0 1]"
|
|
ColumnIndex "[0 1]"
|
|
Table "[0 0;0 0]"
|
|
LookUpMeth "Interpolation-Extrapolation"
|
|
InputSameDT on
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Same as first input"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Same as first input"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
LUTDesignTableMode "Redesign Table"
|
|
LUTDesignDataSource "Block Dialog"
|
|
LUTDesignFunctionName "sqrt(x)"
|
|
LUTDesignUseExistingBP on
|
|
LUTDesignRelError "0.01"
|
|
LUTDesignAbsError "1e-6"
|
|
}
|
|
Block {
|
|
BlockType MultiPortSwitch
|
|
Inputs "3"
|
|
zeroidx off
|
|
InputSameDT on
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
}
|
|
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 "[]"
|
|
OutDataTypeStr "Inherit: auto"
|
|
LockScale off
|
|
SignalType "auto"
|
|
SamplingMode "auto"
|
|
SourceOfInitialOutputValue "Dialog"
|
|
OutputWhenDisabled "held"
|
|
InitialOutput "[]"
|
|
DimensionsMode "auto"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
}
|
|
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 "[]"
|
|
OutDataTypeStr "Inherit: Same as first input"
|
|
LockScale off
|
|
RndMeth "Zero"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType RateLimiter
|
|
RisingSlewLimit "1"
|
|
FallingSlewLimit "-1"
|
|
SampleTimeMode "continuous"
|
|
InitialCondition "0"
|
|
LinearizeAsGain on
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Integrity on
|
|
Deterministic on
|
|
X0 "0"
|
|
OutPortSampleTimeOpt "Specify"
|
|
OutPortSampleTimeMultiple "1"
|
|
OutPortSampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType RealImagToComplex
|
|
Input "Real and imag"
|
|
ConstantPart "0"
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Operator ">="
|
|
InputSameDT on
|
|
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)"
|
|
LogicDataType "uint(8)"
|
|
OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)"
|
|
ZeroCross on
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType Relay
|
|
OnSwitchValue "eps"
|
|
OffSwitchValue "eps"
|
|
OnOutputValue "1"
|
|
OffOutputValue "0"
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "All ports same datatype"
|
|
OutDataType "fixdt(1,16,0)"
|
|
ConRadixGroup "Use specified scaling"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: All ports same datatype"
|
|
LockScale off
|
|
ZeroCross on
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType Saturate
|
|
UpperLimit "0.5"
|
|
LowerLimit "-0.5"
|
|
LinearizeAsGain on
|
|
ZeroCross on
|
|
SampleTime "-1"
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Same as input"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Same as input"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
ModelBased off
|
|
TickLabels "OneTimeTick"
|
|
ZoomMode "on"
|
|
Grid "on"
|
|
TimeRange "auto"
|
|
YMin "-5"
|
|
YMax "5"
|
|
SaveToWorkspace off
|
|
SaveName "ScopeData"
|
|
LimitDataPoints on
|
|
MaxDataPoints "5000"
|
|
Decimation "1"
|
|
SampleInput off
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
ShowPortLabels "FromPortIcon"
|
|
Permissions "ReadWrite"
|
|
PermitHierarchicalResolution "All"
|
|
TreatAsAtomicUnit off
|
|
CheckFcnCallInpInsideContextMsg off
|
|
SystemSampleTime "-1"
|
|
RTWFcnNameOpts "Auto"
|
|
RTWFileNameOpts "Auto"
|
|
RTWMemSecFuncInitTerm "Inherit from model"
|
|
RTWMemSecFuncExecute "Inherit from model"
|
|
RTWMemSecDataConstants "Inherit from model"
|
|
RTWMemSecDataInternal "Inherit from model"
|
|
RTWMemSecDataParameters "Inherit from model"
|
|
SimViewingDevice off
|
|
DataTypeOverride "UseLocalSettings"
|
|
MinMaxOverflowLogging "UseLocalSettings"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
IconShape "rectangular"
|
|
Inputs "++"
|
|
CollapseMode "All dimensions"
|
|
CollapseDim "1"
|
|
InputSameDT on
|
|
AccumDataTypeStr "Inherit: Inherit via internal rule"
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Same as first input"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Same as first input"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
SampleTime "-1"
|
|
}
|
|
Block {
|
|
BlockType Switch
|
|
Criteria "u2 >= Threshold"
|
|
Threshold "0"
|
|
InputSameDT on
|
|
OutMin "[]"
|
|
OutMax "[]"
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "fixdt(1,16,0)"
|
|
OutScaling "[]"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
ZeroCross on
|
|
SampleTime "-1"
|
|
OutputVariableDimensions off
|
|
}
|
|
Block {
|
|
BlockType Terminator
|
|
}
|
|
Block {
|
|
BlockType ToWorkspace
|
|
VariableName "simulink_output"
|
|
MaxDataPoints "1000"
|
|
Decimation "1"
|
|
SampleTime "0"
|
|
FixptAsFi off
|
|
}
|
|
Block {
|
|
BlockType UnitDelay
|
|
X0 "0"
|
|
SampleTime "1"
|
|
StateMustResolveToSignalObject off
|
|
RTWStateStorageClass "Auto"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
SampleTime "1"
|
|
}
|
|
}
|
|
System {
|
|
Name "DTC_control"
|
|
Location [2, 83, 1348, 739]
|
|
Open on
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "112"
|
|
ReportName "simulink-default.rpt"
|
|
Block {
|
|
BlockType Reference
|
|
Name "30/pi"
|
|
Ports [1, 1]
|
|
Position [620, 273, 655, 337]
|
|
FontSize 12
|
|
SourceBlock "electricdrivelib/AC drives/DTC Induction Motor Drive/Rad2Rpm"
|
|
SourceType "SubSystem"
|
|
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"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "600"
|
|
Ports [0, 0, 0, 0, 0, 1, 1]
|
|
Position [85, 245, 105, 280]
|
|
BlockRotation 270
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
|
|
SourceType "DC Voltage Source"
|
|
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"
|
|
Amplitude "600"
|
|
Measurements "None"
|
|
}
|
|
Block {
|
|
BlockType Clock
|
|
Name "Clock"
|
|
Position [935, 305, 955, 325]
|
|
Decimation "10"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "DTC"
|
|
Ports [4, 2]
|
|
Position [285, 87, 350, 188]
|
|
BlockMirror on
|
|
NamePlacement "alternate"
|
|
AncestorBlock "electricdrivelib/AC drives/DTC Induction Motor Drive/DTC"
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
MaskType "DTFC"
|
|
MaskDescription "This block implements a direct torque and flux control (DTC) unit."
|
|
MaskPromptString "Stator phase resistance (ohms)|Torque hysteresis bandwidth (N.m)|Flux hysteresis bandwid"
|
|
"th (Wb)|Initial machine flux (Wb)|Motor pairs of poles|Maximum switching frequency (Hz)|DTFC sampling time (s)"
|
|
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
|
|
MaskTunableValueString "on,on,on,on,on,on,on"
|
|
MaskCallbackString "||||||"
|
|
MaskEnableString "on,on,on,on,on,off,on"
|
|
MaskVisibilityString "on,on,on,on,on,on,on"
|
|
MaskToolTipString "on,on,on,on,on,on,on"
|
|
MaskVarAliasString ",,,,,,"
|
|
MaskVariables "Rss=@1;T_bw=@2;F_bw=@3;in_flux=@4;p=@5;freq_max=@6;Ts_DTFC=@7;"
|
|
MaskInitialization "[X1,X1m,X2,X2m,X3,X4,Y1,Y1m,Y2,Y2m,Y3,Y4,color1,color2]=spsdrivelogo;"
|
|
MaskIconFrame on
|
|
MaskIconOpaque off
|
|
MaskIconRotate "none"
|
|
MaskPortRotate "default"
|
|
MaskIconUnits "normalized"
|
|
MaskValueString "14.85e-3|10|0.02|0.8|2|20000|Ts"
|
|
MaskTabNameString ",,,,,,"
|
|
System {
|
|
Name "DTC"
|
|
Location [2, 82, 1014, 743]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Torque*"
|
|
Position [15, 38, 45, 52]
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "Flux*"
|
|
Position [15, 83, 45, 97]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "V_abc"
|
|
Position [15, 208, 45, 222]
|
|
FontSize 12
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "I_ab"
|
|
Position [15, 138, 45, 152]
|
|
FontSize 12
|
|
Port "4"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Flux & Torque hysteresis"
|
|
Ports [4, 3]
|
|
Position [270, 26, 370, 199]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Flux & Torque hysteresis"
|
|
Location [2, 82, 1270, 753]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Torque*"
|
|
Position [30, 43, 60, 57]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "Flux*"
|
|
Position [30, 198, 60, 212]
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "Torque"
|
|
Position [30, 78, 60, 92]
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "Flux"
|
|
Position [30, 228, 60, 242]
|
|
Port "4"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Relay
|
|
Name "-dTe/2"
|
|
Position [190, 85, 220, 115]
|
|
OnSwitchValue "0"
|
|
OffSwitchValue "(-T_bw)/2"
|
|
OnOutputValue "0"
|
|
OffOutputValue "3"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion5"
|
|
Position [350, 136, 385, 164]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [405, 135, 425, 165]
|
|
ShowName off
|
|
Gain "2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator"
|
|
Ports [2, 1]
|
|
Position [300, 132, 330, 163]
|
|
ShowName off
|
|
Operator "NOR"
|
|
AllPortsSameDT off
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum"
|
|
Ports [2, 1]
|
|
Position [130, 40, 150, 60]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|+-"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [125, 195, 145, 215]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|+-"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [3, 1]
|
|
Position [455, 22, 470, 178]
|
|
ShowName off
|
|
Inputs "+++"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Relay
|
|
Name "dPhi"
|
|
Position [245, 190, 275, 220]
|
|
OnSwitchValue "F_bw/2"
|
|
OffSwitchValue "-F_bw/2"
|
|
OffOutputValue "2"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Relay
|
|
Name "dTe/2"
|
|
Position [190, 35, 220, 65]
|
|
OnSwitchValue "T_bw/2"
|
|
OffSwitchValue "0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "H_phi"
|
|
Position [510, 198, 540, 212]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "H_Te"
|
|
Position [565, 93, 595, 107]
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Flux_est "
|
|
Position [510, 228, 540, 242]
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion5"
|
|
SrcPort 1
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
DstBlock "H_Te"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum"
|
|
SrcPort 1
|
|
Points [0, 0; 10, 0]
|
|
Branch {
|
|
Points [0, 50]
|
|
DstBlock "-dTe/2"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "dTe/2"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "dTe/2"
|
|
SrcPort 1
|
|
Points [45, 0]
|
|
Branch {
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 90]
|
|
DstBlock "Logical\nOperator"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "-dTe/2"
|
|
SrcPort 1
|
|
Points [35, 0]
|
|
Branch {
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
Points [0, 55]
|
|
DstBlock "Logical\nOperator"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "dPhi"
|
|
SrcPort 1
|
|
DstBlock "H_phi"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
DstBlock "dPhi"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Flux"
|
|
SrcPort 1
|
|
Points [70, 0]
|
|
Branch {
|
|
DstBlock "Flux_est "
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Flux*"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Torque"
|
|
SrcPort 1
|
|
Points [75, 0]
|
|
DstBlock "Sum"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Torque*"
|
|
SrcPort 1
|
|
DstBlock "Sum"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Flux sector seeker"
|
|
Ports [1, 1]
|
|
Position [275, 219, 375, 261]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Flux sector seeker"
|
|
Location [2, 82, 1014, 743]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "angle"
|
|
Position [105, 78, 135, 92]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant"
|
|
Position [105, 108, 135, 122]
|
|
ShowName off
|
|
Value "-30"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant1"
|
|
Position [105, 138, 135, 152]
|
|
ShowName off
|
|
Value "30"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant10"
|
|
Position [105, 433, 135, 447]
|
|
ShowName off
|
|
Value "-90"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant11"
|
|
Position [105, 463, 135, 477]
|
|
ShowName off
|
|
Value "-30"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant2"
|
|
Position [105, 173, 135, 187]
|
|
ShowName off
|
|
Value "30"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant3"
|
|
Position [105, 203, 135, 217]
|
|
ShowName off
|
|
Value "90"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant4"
|
|
Position [105, 238, 135, 252]
|
|
ShowName off
|
|
Value "90"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant5"
|
|
Position [105, 268, 135, 282]
|
|
ShowName off
|
|
Value "150"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant6"
|
|
Position [105, 303, 135, 317]
|
|
ShowName off
|
|
Value "150"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant7"
|
|
Position [105, 333, 135, 347]
|
|
ShowName off
|
|
Value "-150"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant8"
|
|
Position [105, 368, 135, 382]
|
|
ShowName off
|
|
Value "-150"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant9"
|
|
Position [105, 398, 135, 412]
|
|
ShowName off
|
|
Value "-90"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion"
|
|
Position [300, 111, 350, 139]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion1"
|
|
Position [300, 176, 350, 204]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion2"
|
|
Position [300, 241, 350, 269]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion3"
|
|
Position [300, 306, 350, 334]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion4"
|
|
Position [300, 371, 350, 399]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion5"
|
|
Position [300, 436, 350, 464]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [400, 110, 430, 140]
|
|
ShowName off
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain1"
|
|
Position [400, 175, 430, 205]
|
|
ShowName off
|
|
Gain "2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain2"
|
|
Position [400, 240, 430, 270]
|
|
ShowName off
|
|
Gain "3"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain3"
|
|
Position [400, 305, 430, 335]
|
|
ShowName off
|
|
Gain "4"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain4"
|
|
Position [400, 370, 430, 400]
|
|
ShowName off
|
|
Gain "5"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain5"
|
|
Position [400, 435, 430, 465]
|
|
ShowName off
|
|
Gain "6"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator"
|
|
Ports [2, 1]
|
|
Position [235, 97, 260, 153]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator1"
|
|
Ports [2, 1]
|
|
Position [235, 162, 260, 218]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator2"
|
|
Ports [2, 1]
|
|
Position [235, 227, 260, 283]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator3"
|
|
Ports [2, 1]
|
|
Position [235, 292, 260, 348]
|
|
ShowName off
|
|
Operator "OR"
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator4"
|
|
Ports [2, 1]
|
|
Position [235, 357, 260, 413]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Logic
|
|
Name "Logical\nOperator5"
|
|
Ports [2, 1]
|
|
Position [235, 422, 260, 478]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator1"
|
|
Position [200, 129, 220, 151]
|
|
ShowName off
|
|
Operator "<="
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator10"
|
|
Position [200, 359, 220, 381]
|
|
ShowName off
|
|
Operator ">"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator11"
|
|
Position [200, 424, 220, 446]
|
|
ShowName off
|
|
Operator ">"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator12"
|
|
Position [200, 454, 220, 476]
|
|
ShowName off
|
|
Operator "<="
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator2"
|
|
Position [200, 99, 220, 121]
|
|
ShowName off
|
|
Operator ">"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator3"
|
|
Position [200, 194, 220, 216]
|
|
ShowName off
|
|
Operator "<="
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator4"
|
|
Position [200, 164, 220, 186]
|
|
ShowName off
|
|
Operator ">"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator5"
|
|
Position [200, 259, 220, 281]
|
|
ShowName off
|
|
Operator "<="
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator6"
|
|
Position [200, 229, 220, 251]
|
|
ShowName off
|
|
Operator ">"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator7"
|
|
Position [200, 324, 220, 346]
|
|
ShowName off
|
|
Operator "<="
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator8"
|
|
Position [200, 294, 220, 316]
|
|
ShowName off
|
|
Operator ">"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator9"
|
|
Position [200, 389, 220, 411]
|
|
ShowName off
|
|
Operator "<="
|
|
}
|
|
Block {
|
|
BlockType Saturate
|
|
Name "Saturation"
|
|
Position [550, 275, 580, 305]
|
|
ShowName off
|
|
UpperLimit "6"
|
|
LowerLimit "1"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum"
|
|
Ports [6, 1]
|
|
Position [495, 270, 535, 310]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|++++++"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "sector"
|
|
Position [600, 283, 630, 297]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion5"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Gain5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion4"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Gain4"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion3"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Gain3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion2"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Gain2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion1"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Gain1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Labels [0, 0]
|
|
SrcBlock "Saturation"
|
|
SrcPort 1
|
|
DstBlock "sector"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Labels [0, 0]
|
|
SrcBlock "Sum"
|
|
SrcPort 1
|
|
DstBlock "Saturation"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain5"
|
|
SrcPort 1
|
|
Points [80, 0]
|
|
DstBlock "Sum"
|
|
DstPort 6
|
|
}
|
|
Line {
|
|
SrcBlock "Gain4"
|
|
SrcPort 1
|
|
Points [33, 0; 0, -65]
|
|
DstBlock "Sum"
|
|
DstPort 5
|
|
}
|
|
Line {
|
|
SrcBlock "Gain3"
|
|
SrcPort 1
|
|
Points [25, 0; 0, -13]
|
|
DstBlock "Sum"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Gain2"
|
|
SrcPort 1
|
|
Points [20, 0; 0, 35]
|
|
DstBlock "Sum"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Gain1"
|
|
SrcPort 1
|
|
Points [50, 0]
|
|
DstBlock "Sum"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
Points [63, 0]
|
|
DstBlock "Sum"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant11"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator12"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Constant10"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator11"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator5"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator12"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator5"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator11"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant9"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator9"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Constant8"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator10"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator4"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion4"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator9"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator4"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator10"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator4"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant7"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator7"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Constant6"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator8"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator3"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator7"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator8"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant5"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator5"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Constant4"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator6"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator2"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator5"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator6"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant3"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Constant2"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator4"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator1"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator3"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator4"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant1"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Constant"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Relational\nOperator2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "angle"
|
|
SrcPort 1
|
|
Points [20, 0; 0, 20]
|
|
Branch {
|
|
Points [0, 30]
|
|
Branch {
|
|
Points [0, 35]
|
|
Branch {
|
|
Points [0, 30]
|
|
Branch {
|
|
Points [0, 35]
|
|
Branch {
|
|
Points [0, 30]
|
|
Branch {
|
|
Points [0, 35]
|
|
Branch {
|
|
Points [0, 30]
|
|
Branch {
|
|
Points [0, 35]
|
|
Branch {
|
|
Points [0, 30]
|
|
Branch {
|
|
Points [0, 35]
|
|
Branch {
|
|
Points [0, 30]
|
|
DstBlock "Relational\nOperator12"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator11"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator9"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator10"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator7"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator8"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator5"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator6"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator4"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "Relational\nOperator2"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Logical\nOperator"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator1"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator2"
|
|
SrcPort 1
|
|
DstBlock "Logical\nOperator"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition"
|
|
Position [660, 64, 715, 106]
|
|
ShowName off
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Switching control"
|
|
Ports [1, 1]
|
|
Position [520, 67, 615, 103]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Switching control"
|
|
Location [2, 82, 1014, 743]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Pulses"
|
|
Position [15, 143, 45, 157]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant2"
|
|
Position [225, 85, 245, 105]
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant3"
|
|
Position [225, 175, 245, 195]
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant4"
|
|
Position [225, 265, 245, 285]
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "D Flip-Flop"
|
|
Ports [3, 2]
|
|
Position [265, 21, 310, 109]
|
|
ShowName off
|
|
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
|
|
SourceType "DFlipFlop"
|
|
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"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "D Flip-Flop1"
|
|
Ports [3, 2]
|
|
Position [265, 112, 310, 198]
|
|
ShowName off
|
|
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
|
|
SourceType "DFlipFlop"
|
|
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"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "D Flip-Flop2"
|
|
Ports [3, 2]
|
|
Position [265, 202, 310, 288]
|
|
ShowName off
|
|
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
|
|
SourceType "DFlipFlop"
|
|
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"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion1"
|
|
Position [145, 111, 195, 139]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion2"
|
|
Position [145, 201, 195, 229]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion5"
|
|
Position [145, 21, 195, 49]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Demux
|
|
Name "Demux"
|
|
Ports [1, 6]
|
|
Position [105, 16, 110, 279]
|
|
BackgroundColor "black"
|
|
ShowName off
|
|
Outputs "6"
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Name "Mux"
|
|
Ports [6, 1]
|
|
Position [340, 16, 345, 299]
|
|
ShowName off
|
|
Inputs "6"
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Subsystem"
|
|
Ports [0, 1]
|
|
Position [150, 235, 190, 255]
|
|
ShowName off
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Subsystem"
|
|
Location [2, 78, 1278, 749]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant"
|
|
Position [165, 100, 180, 120]
|
|
BlockMirror on
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant1"
|
|
Position [20, 30, 50, 60]
|
|
ShowName off
|
|
Value "freq_max*2"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DiscreteIntegrator
|
|
Name "Discrete-Time\nIntegrator"
|
|
Ports [2, 1]
|
|
Position [90, 37, 140, 68]
|
|
ShowName off
|
|
IntegratorMethod "Integration: Trapezoidal"
|
|
ExternalReset "rising"
|
|
InitialConditionSource "internal"
|
|
SampleTime "Ts_DTFC"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
ICPrevOutput "DiscIntNeverNeededParam"
|
|
ICPrevScaledInput "DiscIntNeverNeededParam"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator"
|
|
Position [110, 95, 135, 115]
|
|
BlockMirror on
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType UnitDelay
|
|
Name "Unit Delay"
|
|
Position [70, 93, 90, 117]
|
|
BlockMirror on
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Trig"
|
|
Position [210, 78, 240, 92]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Constant1"
|
|
SrcPort 1
|
|
DstBlock "Discrete-Time\nIntegrator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant"
|
|
SrcPort 1
|
|
DstBlock "Relational\nOperator"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
Labels [2, 0]
|
|
SrcBlock "Unit Delay"
|
|
SrcPort 1
|
|
Points [0, 0; 0, -20]
|
|
Branch {
|
|
DstBlock "Trig"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, -25]
|
|
DstBlock "Discrete-Time\nIntegrator"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Discrete-Time\nIntegrator"
|
|
SrcPort 1
|
|
Points [15, 0; 0, 45]
|
|
DstBlock "Relational\nOperator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator"
|
|
SrcPort 1
|
|
DstBlock "Unit Delay"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Terminator
|
|
Name "Terminator"
|
|
Position [130, 72, 140, 88]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Terminator
|
|
Name "Terminator1"
|
|
Position [125, 162, 135, 178]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Terminator
|
|
Name "Terminator2"
|
|
Position [125, 252, 135, 268]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "LF Pulses"
|
|
Position [420, 153, 450, 167]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion2"
|
|
SrcPort 1
|
|
DstBlock "D Flip-Flop2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion1"
|
|
SrcPort 1
|
|
DstBlock "D Flip-Flop1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion5"
|
|
SrcPort 1
|
|
DstBlock "D Flip-Flop"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Subsystem"
|
|
SrcPort 1
|
|
Points [0, 0; 10, 0]
|
|
Branch {
|
|
Points [0, -90]
|
|
Branch {
|
|
DstBlock "D Flip-Flop1"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
Points [0, -90]
|
|
DstBlock "D Flip-Flop"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Branch {
|
|
DstBlock "D Flip-Flop2"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Mux"
|
|
SrcPort 1
|
|
DstBlock "LF Pulses"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Pulses"
|
|
SrcPort 1
|
|
DstBlock "Demux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "D Flip-Flop2"
|
|
SrcPort 2
|
|
DstBlock "Mux"
|
|
DstPort 6
|
|
}
|
|
Line {
|
|
SrcBlock "D Flip-Flop2"
|
|
SrcPort 1
|
|
DstBlock "Mux"
|
|
DstPort 5
|
|
}
|
|
Line {
|
|
SrcBlock "D Flip-Flop1"
|
|
SrcPort 2
|
|
DstBlock "Mux"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "D Flip-Flop1"
|
|
SrcPort 1
|
|
DstBlock "Mux"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "D Flip-Flop"
|
|
SrcPort 2
|
|
DstBlock "Mux"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "D Flip-Flop"
|
|
SrcPort 1
|
|
DstBlock "Mux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 6
|
|
DstBlock "Terminator2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 4
|
|
DstBlock "Terminator1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 2
|
|
DstBlock "Terminator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 5
|
|
DstBlock "Data Type Conversion2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 3
|
|
DstBlock "Data Type Conversion1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant4"
|
|
SrcPort 1
|
|
DstBlock "D Flip-Flop2"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Constant3"
|
|
SrcPort 1
|
|
DstBlock "D Flip-Flop1"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Constant2"
|
|
SrcPort 1
|
|
DstBlock "D Flip-Flop"
|
|
DstPort 3
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Switching table"
|
|
Ports [4, 2]
|
|
Position [415, 28, 500, 257]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
MaskIconFrame on
|
|
MaskIconOpaque on
|
|
MaskIconRotate "none"
|
|
MaskPortRotate "default"
|
|
MaskIconUnits "autoscale"
|
|
System {
|
|
Name "Switching table"
|
|
Location [2, 82, 1014, 743]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "H Phi"
|
|
Position [20, 48, 50, 62]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "H Te"
|
|
Position [20, 93, 50, 107]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
Port {
|
|
PortNumber 1
|
|
Name "t"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "Flux est"
|
|
Position [35, 468, 65, 482]
|
|
FontSize 12
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "Sector"
|
|
Position [20, 118, 50, 132]
|
|
FontSize 12
|
|
Port "4"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant1"
|
|
Position [200, 135, 215, 155]
|
|
ShowName off
|
|
FontSize 12
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Lookup2D
|
|
Name "Flux = -1"
|
|
Position [95, 147, 150, 198]
|
|
FontSize 12
|
|
RowIndex "[1;2;3]"
|
|
ColumnIndex "[1;2;3;4;5;6]"
|
|
Table "[3 4 5 6 1 2;7 0 7 0 7 0;5 6 1 2 3 4]"
|
|
InputSameDT off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Lookup2D
|
|
Name "Flux = 1"
|
|
Position [95, 87, 150, 138]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
RowIndex "[1;2;3]"
|
|
ColumnIndex "[1;2;3;4;5;6]"
|
|
Table "[2 3 4 5 6 1;0 7 0 7 0 7;6 1 2 3 4 5]"
|
|
InputSameDT off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "M_vector"
|
|
Ports [0, 1]
|
|
Position [415, 302, 480, 328]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "M_vector"
|
|
Location [39, 362, 335, 482]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant1"
|
|
Position [50, 71, 130, 89]
|
|
ShowName off
|
|
Value "[1 0 1 0 1 0]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DiscretePulseGenerator
|
|
Name "Pulse\nGenerator"
|
|
Ports [0, 1]
|
|
Position [15, 43, 60, 67]
|
|
ShowName off
|
|
PulseType "Time based"
|
|
Amplitude "1"
|
|
Period "100*Ts"
|
|
PulseWidth "25"
|
|
PhaseDelay "0"
|
|
SampleTime "1"
|
|
}
|
|
Block {
|
|
BlockType Switch
|
|
Name "Switch1"
|
|
Position [165, 40, 195, 70]
|
|
ShowName off
|
|
Threshold "0.5"
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold8"
|
|
Position [95, 45, 115, 65]
|
|
ShowName off
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v1"
|
|
Position [50, 21, 130, 39]
|
|
Value "[1 0 0 1 0 1]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "vector"
|
|
Position [235, 48, 265, 62]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Switch1"
|
|
SrcPort 1
|
|
DstBlock "vector"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold8"
|
|
SrcPort 1
|
|
DstBlock "Switch1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Pulse\nGenerator"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold8"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant1"
|
|
SrcPort 1
|
|
Points [0, -15]
|
|
DstBlock "Switch1"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "v1"
|
|
SrcPort 1
|
|
Points [0, 15]
|
|
DstBlock "Switch1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Magnetisation"
|
|
Ports [1, 1]
|
|
Position [110, 454, 195, 496]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Magnetisation"
|
|
Location [2, 78, 1022, 717]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Flux est"
|
|
Position [25, 33, 55, 47]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant"
|
|
Position [105, 78, 120, 102]
|
|
Value "in_flux"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "Constant1"
|
|
Position [220, 89, 240, 111]
|
|
ShowName off
|
|
Value "0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DataTypeConversion
|
|
Name "Data Type Conversion5"
|
|
Position [260, 86, 295, 114]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType RelationalOperator
|
|
Name "Relational\nOperator"
|
|
Position [180, 15, 200, 115]
|
|
ShowName off
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "S-R\nFlip-Flop"
|
|
Ports [2, 2]
|
|
Position [315, 45, 360, 120]
|
|
ShowName off
|
|
SourceBlock "simulink_extras/Flip Flops/S-R\nFlip-Flop"
|
|
SourceType "SRFlipFlop"
|
|
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"
|
|
initial_condition "0"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope"
|
|
Ports [2]
|
|
Position [435, 276, 465, 309]
|
|
Floating off
|
|
Location [-3, 48, 1021, 733]
|
|
Open off
|
|
NumInputPorts "2"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
axes2 "%<SignalLabel>"
|
|
}
|
|
YMin "-5~0"
|
|
YMax "5~2"
|
|
SaveName "ScopeData1"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
SampleTime "0"
|
|
}
|
|
Block {
|
|
BlockType Terminator
|
|
Name "Terminator"
|
|
Position [400, 93, 415, 107]
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold5"
|
|
Position [145, 79, 165, 101]
|
|
ShowName off
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Start"
|
|
Position [395, 58, 425, 72]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Data Type Conversion5"
|
|
SrcPort 1
|
|
DstBlock "S-R\nFlip-Flop"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold5"
|
|
SrcPort 1
|
|
DstBlock "Relational\nOperator"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "S-R\nFlip-Flop"
|
|
SrcPort 2
|
|
DstBlock "Terminator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "S-R\nFlip-Flop"
|
|
SrcPort 1
|
|
Points [10, 0]
|
|
Branch {
|
|
DstBlock "Start"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 235]
|
|
DstBlock "Scope"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Constant1"
|
|
SrcPort 1
|
|
DstBlock "Data Type Conversion5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Relational\nOperator"
|
|
SrcPort 1
|
|
DstBlock "S-R\nFlip-Flop"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Flux est"
|
|
SrcPort 1
|
|
Points [25, 0]
|
|
Branch {
|
|
DstBlock "Relational\nOperator"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 245]
|
|
DstBlock "Scope"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType MultiPortSwitch
|
|
Name "Multiport\nSwitch1"
|
|
Ports [3, 1]
|
|
Position [165, 24, 185, 206]
|
|
ShowName off
|
|
FontSize 12
|
|
Inputs "2"
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType MultiPortSwitch
|
|
Name "Multiport\nSwitch2"
|
|
Ports [9, 1]
|
|
Position [365, 84, 395, 466]
|
|
ShowName off
|
|
FontSize 12
|
|
Inputs "8"
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition3"
|
|
Position [455, 453, 500, 497]
|
|
ShowName off
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [215, 100, 245, 130]
|
|
ShowName off
|
|
FontSize 12
|
|
IconShape "round"
|
|
Inputs "|++"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Switch
|
|
Name "Switch1"
|
|
Position [505, 264, 530, 326]
|
|
ShowName off
|
|
FontSize 12
|
|
Threshold "0.5"
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType UnitDelay
|
|
Name "Unit Delay4"
|
|
Position [535, 465, 555, 485]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v0"
|
|
Position [240, 143, 350, 167]
|
|
FontSize 12
|
|
Value "[0 1 0 1 0 1]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v1"
|
|
Position [240, 184, 350, 206]
|
|
FontSize 12
|
|
Value "[1 0 0 1 0 1]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v2"
|
|
Position [240, 223, 350, 247]
|
|
FontSize 12
|
|
Value "[1 0 1 0 0 1]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v3"
|
|
Position [240, 263, 350, 287]
|
|
FontSize 12
|
|
Value "[0 1 1 0 0 1]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v4"
|
|
Position [240, 303, 350, 327]
|
|
FontSize 12
|
|
Value "[0 1 1 0 1 0]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v5"
|
|
Position [240, 343, 350, 367]
|
|
FontSize 12
|
|
Value "[0 1 0 1 1 0]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v6"
|
|
Position [240, 384, 350, 406]
|
|
FontSize 12
|
|
Value "[1 0 0 1 1 0]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "v7"
|
|
Position [240, 423, 350, 447]
|
|
FontSize 12
|
|
Value "[1 0 1 0 1 0]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Gates"
|
|
Position [590, 288, 620, 302]
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "MagC"
|
|
Position [580, 468, 610, 482]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Unit Delay4"
|
|
SrcPort 1
|
|
DstBlock "MagC"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Magnetisation"
|
|
SrcPort 1
|
|
Points [210, 0]
|
|
Branch {
|
|
Points [0, -180]
|
|
DstBlock "Switch1"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
DstBlock "Rate Transition3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Multiport\nSwitch2"
|
|
SrcPort 1
|
|
DstBlock "Switch1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Flux est"
|
|
SrcPort 1
|
|
DstBlock "Magnetisation"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "M_vector"
|
|
SrcPort 1
|
|
DstBlock "Switch1"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "v5"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 7
|
|
}
|
|
Line {
|
|
SrcBlock "v3"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 5
|
|
}
|
|
Line {
|
|
SrcBlock "v6"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 8
|
|
}
|
|
Line {
|
|
SrcBlock "v2"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Multiport\nSwitch1"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Constant1"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Flux = -1"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch1"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Flux = 1"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "H Phi"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sector"
|
|
SrcPort 1
|
|
Points [10, 0]
|
|
Branch {
|
|
DstBlock "Flux = 1"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
Points [0, 60]
|
|
DstBlock "Flux = -1"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "v7"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 9
|
|
}
|
|
Line {
|
|
SrcBlock "v4"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 6
|
|
}
|
|
Line {
|
|
SrcBlock "v1"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "v0"
|
|
SrcPort 1
|
|
DstBlock "Multiport\nSwitch2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
Name "t"
|
|
Labels [0, 0]
|
|
SrcBlock "H Te"
|
|
SrcPort 1
|
|
Points [20, 0]
|
|
Branch {
|
|
DstBlock "Flux = 1"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 60]
|
|
DstBlock "Flux = -1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition3"
|
|
SrcPort 1
|
|
DstBlock "Unit Delay4"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Switch1"
|
|
SrcPort 1
|
|
DstBlock "Gates"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Torque & Flux calculator"
|
|
Ports [2, 3]
|
|
Position [130, 111, 225, 249]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Torque & Flux calculator"
|
|
Location [2, 82, 1014, 726]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "164"
|
|
Block {
|
|
BlockType Inport
|
|
Name "I_ab"
|
|
Position [30, 203, 60, 217]
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "V_abc"
|
|
Position [30, 83, 60, 97]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "180/pi"
|
|
Position [605, 250, 635, 280]
|
|
FontSize 12
|
|
Gain "180/pi"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "3p/2"
|
|
Position [590, 85, 620, 115]
|
|
FontSize 12
|
|
Gain "3/2*p"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType ComplexToMagnitudeAngle
|
|
Name "Complex to\nMagnitude-Angle"
|
|
Ports [1, 2]
|
|
Position [550, 220, 585, 280]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
Output "Magnitude and angle"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [165, 145, 195, 175]
|
|
BlockRotation 270
|
|
ShowName off
|
|
FontSize 12
|
|
Gain "Rss"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain1"
|
|
Position [205, 145, 235, 175]
|
|
BlockRotation 270
|
|
ShowName off
|
|
FontSize 12
|
|
Gain "Rss"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain5"
|
|
Position [425, 250, 455, 280]
|
|
ShowName off
|
|
FontSize 12
|
|
Gain "-1"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Iabc/Idq"
|
|
Ports [1, 2]
|
|
Position [95, 179, 145, 241]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
Port {
|
|
PortNumber 2
|
|
Name "i_sb"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
System {
|
|
Name "Iabc/Idq"
|
|
Location [2, 78, 1278, 749]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "I_ab"
|
|
Position [15, 43, 45, 57]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Demux
|
|
Name "Demux"
|
|
Ports [1, 2]
|
|
Position [65, 19, 70, 81]
|
|
BackgroundColor "black"
|
|
ShowName off
|
|
Outputs "2"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [185, 50, 215, 80]
|
|
ShowName off
|
|
Gain "1/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain1"
|
|
Position [205, 80, 235, 110]
|
|
ShowName off
|
|
Gain "1/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain2"
|
|
Position [300, 50, 330, 80]
|
|
ShowName off
|
|
Gain "2/3"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain3"
|
|
Position [185, 125, 215, 155]
|
|
ShowName off
|
|
Gain "sqrt(3)/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain4"
|
|
Position [205, 155, 235, 185]
|
|
ShowName off
|
|
Gain "sqrt(3)/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain5"
|
|
Position [300, 140, 330, 170]
|
|
ShowName off
|
|
Gain "2/3"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [2, 1]
|
|
Position [255, 123, 270, 187]
|
|
ShowName off
|
|
Inputs "-+"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum3"
|
|
Ports [3, 1]
|
|
Position [255, 18, 270, 112]
|
|
ShowName off
|
|
Inputs "+--"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum4"
|
|
Ports [2, 1]
|
|
Position [115, 74, 130, 116]
|
|
ShowName off
|
|
Inputs "--"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "I_q"
|
|
Position [370, 58, 400, 72]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "I_d"
|
|
Position [370, 148, 400, 162]
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
DstBlock "Gain5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain4"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Gain3"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum3"
|
|
SrcPort 1
|
|
DstBlock "Gain2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum4"
|
|
SrcPort 1
|
|
Points [10, 0]
|
|
Branch {
|
|
Points [0, 75]
|
|
DstBlock "Gain4"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Gain1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Gain1"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 2
|
|
Points [10, 0]
|
|
Branch {
|
|
Points [0, 40]
|
|
DstBlock "Sum4"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
Points [70, 0]
|
|
Branch {
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 75]
|
|
DstBlock "Gain3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 1
|
|
Points [25, 0]
|
|
Branch {
|
|
DstBlock "Sum4"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Sum3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "I_ab"
|
|
SrcPort 1
|
|
DstBlock "Demux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain5"
|
|
SrcPort 1
|
|
DstBlock "I_d"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain2"
|
|
SrcPort 1
|
|
DstBlock "I_q"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Product
|
|
Name "Product"
|
|
Ports [2, 1]
|
|
Position [500, 69, 520, 96]
|
|
ShowName off
|
|
FontSize 12
|
|
InputSameDT off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
RndMeth "Floor"
|
|
}
|
|
Block {
|
|
BlockType Product
|
|
Name "Product1"
|
|
Ports [2, 1]
|
|
Position [415, 99, 435, 126]
|
|
ShowName off
|
|
FontSize 12
|
|
InputSameDT off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
RndMeth "Floor"
|
|
}
|
|
Block {
|
|
BlockType RealImagToComplex
|
|
Name "Real-Imag to\nComplex"
|
|
Ports [2, 1]
|
|
Position [485, 218, 525, 282]
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum"
|
|
Ports [2, 1]
|
|
Position [170, 65, 190, 85]
|
|
ShowName off
|
|
FontSize 12
|
|
IconShape "round"
|
|
Inputs "|+-"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [210, 95, 230, 115]
|
|
ShowName off
|
|
FontSize 12
|
|
IconShape "round"
|
|
Inputs "|+-"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum3"
|
|
Ports [2, 1]
|
|
Position [545, 70, 565, 130]
|
|
ShowName off
|
|
FontSize 12
|
|
Inputs "-+"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
OutDataTypeStr "Inherit: Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Vabc/Vdq"
|
|
Ports [1, 2]
|
|
Position [95, 59, 145, 121]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Vabc/Vdq"
|
|
Location [2, 82, 1270, 753]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Vabc"
|
|
Position [20, 53, 50, 67]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Demux
|
|
Name "Demux"
|
|
Ports [1, 3]
|
|
Position [85, 12, 90, 108]
|
|
BackgroundColor "black"
|
|
ShowName off
|
|
Outputs "3"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [140, 45, 170, 75]
|
|
ShowName off
|
|
Gain "1/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain1"
|
|
Position [160, 75, 190, 105]
|
|
ShowName off
|
|
Gain "1/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain2"
|
|
Position [260, 45, 290, 75]
|
|
ShowName off
|
|
Gain "2/3"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain3"
|
|
Position [140, 130, 170, 160]
|
|
ShowName off
|
|
Gain "sqrt(3)/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain4"
|
|
Position [165, 165, 195, 195]
|
|
ShowName off
|
|
Gain "sqrt(3)/2"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain5"
|
|
Position [260, 150, 290, 180]
|
|
ShowName off
|
|
Gain "2/3"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [3, 1]
|
|
Position [220, 16, 235, 104]
|
|
ShowName off
|
|
Inputs "+--"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum3"
|
|
Ports [2, 1]
|
|
Position [220, 127, 235, 198]
|
|
ShowName off
|
|
Inputs "-+"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "v_sa"
|
|
Position [315, 53, 345, 67]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "v_sb"
|
|
Position [315, 158, 345, 172]
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Sum3"
|
|
SrcPort 1
|
|
DstBlock "Gain5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain4"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Gain3"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain2"
|
|
SrcPort 1
|
|
DstBlock "v_sa"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain1"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
DstBlock "Gain2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain5"
|
|
SrcPort 1
|
|
DstBlock "v_sb"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Vabc"
|
|
SrcPort 1
|
|
DstBlock "Demux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 2
|
|
Points [0, 0; 15, 0]
|
|
Branch {
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 85]
|
|
DstBlock "Gain3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Demux"
|
|
SrcPort 3
|
|
Points [0, 0; 10, 0]
|
|
Branch {
|
|
DstBlock "Gain1"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 90]
|
|
DstBlock "Gain4"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType DiscreteIntegrator
|
|
Name "phi_sa"
|
|
Ports [1, 1]
|
|
Position [240, 54, 300, 96]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
IntegratorMethod "Integration: Trapezoidal"
|
|
ExternalReset "none"
|
|
InitialConditionSource "internal"
|
|
SampleTime "Ts_DTFC"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
ICPrevOutput "DiscIntNeverNeededParam"
|
|
ICPrevScaledInput "DiscIntNeverNeededParam"
|
|
}
|
|
Block {
|
|
BlockType DiscreteIntegrator
|
|
Name "phi_sb"
|
|
Ports [1, 1]
|
|
Position [315, 85, 375, 125]
|
|
FontSize 12
|
|
IntegratorMethod "Integration: Trapezoidal"
|
|
ExternalReset "none"
|
|
InitialConditionSource "internal"
|
|
SampleTime "Ts_DTFC"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
ICPrevOutput "DiscIntNeverNeededParam"
|
|
ICPrevScaledInput "DiscIntNeverNeededParam"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Torque"
|
|
Position [650, 93, 680, 107]
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Flux"
|
|
Position [655, 228, 685, 242]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "angle"
|
|
Position [655, 258, 685, 272]
|
|
FontSize 12
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Product1"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Sum3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Gain5"
|
|
SrcPort 1
|
|
DstBlock "Real-Imag to\nComplex"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "180/pi"
|
|
SrcPort 1
|
|
DstBlock "angle"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Complex to\nMagnitude-Angle"
|
|
SrcPort 2
|
|
DstBlock "180/pi"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Complex to\nMagnitude-Angle"
|
|
SrcPort 1
|
|
DstBlock "Flux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Real-Imag to\nComplex"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Complex to\nMagnitude-Angle"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "I_ab"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Iabc/Idq"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "V_abc"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Vabc/Vdq"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Vabc/Vdq"
|
|
SrcPort 1
|
|
DstBlock "Sum"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Iabc/Idq"
|
|
SrcPort 1
|
|
Points [0, 0; 30, 0]
|
|
Branch {
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Labels [1, 0]
|
|
Points [220, 0]
|
|
DstBlock "Product1"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
DstBlock "Sum"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Sum"
|
|
SrcPort 1
|
|
DstBlock "phi_sa"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Vabc/Vdq"
|
|
SrcPort 2
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain1"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
Name "i_sb"
|
|
FontSize 12
|
|
Labels [0, 0]
|
|
SrcBlock "Iabc/Idq"
|
|
SrcPort 2
|
|
Points [0, 0; 70, 0]
|
|
Branch {
|
|
DstBlock "Gain1"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Labels [1, 0]
|
|
Points [255, 0; 0, -135]
|
|
DstBlock "Product"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
DstBlock "phi_sb"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "phi_sa"
|
|
SrcPort 1
|
|
Points [150, 0]
|
|
Branch {
|
|
Points [0, 160]
|
|
DstBlock "Real-Imag to\nComplex"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Product"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "phi_sb"
|
|
SrcPort 1
|
|
Points [5, 0]
|
|
Branch {
|
|
Points [0, 160]
|
|
DstBlock "Gain5"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Product1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Product"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum3"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "3p/2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "3p/2"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Torque"
|
|
DstPort 1
|
|
}
|
|
Annotation {
|
|
Name "i_sa"
|
|
Position [248, 187]
|
|
HorizontalAlignment "left"
|
|
FontName "Times New Roman"
|
|
FontSize 12
|
|
}
|
|
Annotation {
|
|
Name "i_sa"
|
|
Position [167, 206]
|
|
FontName "Times New Roman"
|
|
FontSize 12
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold"
|
|
Position [80, 35, 100, 55]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold1"
|
|
Position [80, 80, 100, 100]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold2"
|
|
Position [80, 135, 100, 155]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold3"
|
|
Position [80, 205, 100, 225]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts_DTFC"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold4"
|
|
Position [735, 75, 755, 95]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "MagC"
|
|
Position [815, 193, 845, 207]
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Gates"
|
|
Position [815, 78, 845, 92]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Switching table"
|
|
SrcPort 2
|
|
DstBlock "MagC"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Torque*"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold4"
|
|
SrcPort 1
|
|
DstBlock "Gates"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold3"
|
|
SrcPort 1
|
|
DstBlock "Torque & Flux calculator"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold2"
|
|
SrcPort 1
|
|
DstBlock "Torque & Flux calculator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold1"
|
|
SrcPort 1
|
|
DstBlock "Flux & Torque hysteresis"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold"
|
|
SrcPort 1
|
|
DstBlock "Flux & Torque hysteresis"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Flux sector seeker"
|
|
SrcPort 1
|
|
Points [20, 0]
|
|
DstBlock "Switching table"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Flux & Torque hysteresis"
|
|
SrcPort 3
|
|
DstBlock "Switching table"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Switching control"
|
|
SrcPort 1
|
|
DstBlock "Rate Transition"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "V_abc"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "I_ab"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Flux*"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Switching table"
|
|
SrcPort 1
|
|
DstBlock "Switching control"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Flux & Torque hysteresis"
|
|
SrcPort 2
|
|
DstBlock "Switching table"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Flux & Torque hysteresis"
|
|
SrcPort 1
|
|
DstBlock "Switching table"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Torque & Flux calculator"
|
|
SrcPort 1
|
|
DstBlock "Flux & Torque hysteresis"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Torque & Flux calculator"
|
|
SrcPort 2
|
|
DstBlock "Flux & Torque hysteresis"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Torque & Flux calculator"
|
|
SrcPort 3
|
|
Points [20, 0; 0, 15]
|
|
DstBlock "Flux sector seeker"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold4"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType From
|
|
Name "From"
|
|
Position [490, 105, 530, 125]
|
|
CloseFcn "tagdialog Close"
|
|
GotoTag "A"
|
|
}
|
|
Block {
|
|
BlockType Goto
|
|
Name "Goto"
|
|
Position [190, 125, 220, 145]
|
|
GotoTag "A"
|
|
TagVisibility "local"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Ground"
|
|
Ports [0, 0, 0, 0, 0, 1]
|
|
Position [554, 490, 576, 515]
|
|
BlockRotation 270
|
|
BlockMirror on
|
|
ShowName off
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Elements/Ground"
|
|
SourceType "Ground"
|
|
PhysicalDomain "powersysdomain"
|
|
SubClassName "unknown"
|
|
LeftPortType "p1"
|
|
RightPortType "p1"
|
|
LConnTagsString "a"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Ground1"
|
|
Ports [0, 0, 0, 0, 0, 1]
|
|
Position [54, 340, 76, 365]
|
|
BlockRotation 270
|
|
BlockMirror on
|
|
ShowName off
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Elements/Ground"
|
|
SourceType "Ground"
|
|
PhysicalDomain "powersysdomain"
|
|
SubClassName "unknown"
|
|
LeftPortType "p1"
|
|
RightPortType "p1"
|
|
LConnTagsString "a"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Induction\nmachine"
|
|
Ports [1, 1, 0, 0, 0, 3]
|
|
Position [480, 263, 545, 347]
|
|
NamePlacement "alternate"
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
FontSize 12
|
|
SourceBlock "powerlib/Machines/Asynchronous Machine\nSI Units"
|
|
SourceType "Asynchronous Machine"
|
|
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"
|
|
PresetModel "No"
|
|
MechanicalLoad "Torque Tm"
|
|
ShowDetailedParameters on
|
|
RotorType "Squirrel-cage"
|
|
ReferenceFrame "Stationary"
|
|
NominalParameters "[100e3,380,50]"
|
|
Stator "[14.85e-3,0.3027e-3]"
|
|
Rotor "[9.295e-3,0.3027e-3]"
|
|
Lm "10.46e-3"
|
|
Mechanical "[3.1,0.08,2]"
|
|
PolePairs "2"
|
|
InitialConditions "[1,0,0,0,0,0,0,0]"
|
|
Units "SI"
|
|
LoadFlowParameters "0"
|
|
SimulateSaturation off
|
|
Saturation "[0 0;0 0]"
|
|
TsPowergui "0"
|
|
TsBlock "-1"
|
|
IterativeModel "Forward Euler"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Inverter_3ph"
|
|
Ports [1, 0, 0, 0, 0, 3, 2]
|
|
Position [165, 225, 225, 320]
|
|
BlockMirror on
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
|
|
SourceType "Universal Bridge"
|
|
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"
|
|
Arms "3"
|
|
SnubberResistance "10e3"
|
|
SnubberCapacitance "inf"
|
|
Device "IGBT / Diodes"
|
|
Ron "1e-3"
|
|
Lon "0"
|
|
ForwardVoltages "[1.4,1.4]"
|
|
ForwardVoltage "0"
|
|
GTOparameters "[10e-6,20e-6]"
|
|
IGBTparameters "[1e-6,2e-6]"
|
|
Measurements "All voltages and currents"
|
|
Measurements_2 "None"
|
|
converterType "Inverter"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Machine terminal\nvoltages"
|
|
Ports [0, 1, 0, 0, 0, 1]
|
|
Position [605, 476, 645, 514]
|
|
SourceBlock "powerlib/Measurements/Multimeter"
|
|
SourceType "MultimeterPSB"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
sel "7"
|
|
L "16"
|
|
Gain "1"
|
|
yselected "{'Uab: Inverter_3ph'};"
|
|
PSBOutputType "1"
|
|
PSBequivalent "0"
|
|
AxesSetting "[0,0.1,-100,100]"
|
|
Display "0"
|
|
SavedBlockNames "-11"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Measures"
|
|
Ports [0, 2, 0, 0, 0, 4, 3]
|
|
Position [305, 238, 370, 352]
|
|
NamePlacement "alternate"
|
|
AncestorBlock "electricdrivelib/AC drives/DTC Induction Motor Drive/Measures"
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
System {
|
|
Name "Measures"
|
|
Location [2, 83, 1014, 739]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "208"
|
|
Block {
|
|
BlockType Reference
|
|
Name "Current Measurement1"
|
|
Tag "PoWeRsYsTeMmEaSuReMeNt"
|
|
Ports [0, 1, 0, 0, 0, 1, 1]
|
|
Position [145, 49, 170, 71]
|
|
ShowName off
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Measurements/Current Measurement"
|
|
SourceType "Current Measurement"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
PSBequivalent "0"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Current Measurement2"
|
|
Tag "PoWeRsYsTeMmEaSuReMeNt"
|
|
Ports [0, 1, 0, 0, 0, 1, 1]
|
|
Position [145, 14, 170, 36]
|
|
ShowName off
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Measurements/Current Measurement"
|
|
SourceType "Current Measurement"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
PSBequivalent "0"
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Name "Mux"
|
|
Ports [3, 1]
|
|
Position [220, 191, 225, 269]
|
|
ShowName off
|
|
Inputs "3"
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Name "Mux1"
|
|
Ports [2, 1]
|
|
Position [220, 122, 225, 173]
|
|
ShowName off
|
|
Inputs "2"
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Voltage Measurement"
|
|
Tag "PoWeRsYsTeMmEaSuReMeNt"
|
|
Ports [0, 1, 0, 0, 0, 2]
|
|
Position [140, 183, 165, 207]
|
|
ShowName off
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Measurements/Voltage Measurement"
|
|
SourceType "Voltage Measurement"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
PSBequivalent "0"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Voltage Measurement1"
|
|
Tag "PoWeRsYsTeMmEaSuReMeNt"
|
|
Ports [0, 1, 0, 0, 0, 2]
|
|
Position [140, 218, 165, 242]
|
|
ShowName off
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Measurements/Voltage Measurement"
|
|
SourceType "Voltage Measurement"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
PSBequivalent "0"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Voltage Measurement2"
|
|
Tag "PoWeRsYsTeMmEaSuReMeNt"
|
|
Ports [0, 1, 0, 0, 0, 2]
|
|
Position [135, 263, 160, 287]
|
|
ShowName off
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Measurements/Voltage Measurement"
|
|
SourceType "Voltage Measurement"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
PSBequivalent "0"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "Ta"
|
|
Position [30, 18, 60, 32]
|
|
Port "1"
|
|
Side "Left"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "Tb"
|
|
Position [30, 53, 60, 67]
|
|
Port "2"
|
|
Side "Left"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "Tc"
|
|
Position [30, 88, 60, 102]
|
|
Port "3"
|
|
Side "Left"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "V_Com"
|
|
Position [30, 243, 60, 257]
|
|
Port "4"
|
|
Side "Left"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "Mta"
|
|
Position [285, 23, 315, 37]
|
|
BlockMirror on
|
|
Port "5"
|
|
Side "Right"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "Mtb"
|
|
Position [285, 58, 315, 72]
|
|
BlockMirror on
|
|
Port "6"
|
|
Side "Right"
|
|
}
|
|
Block {
|
|
BlockType PMIOPort
|
|
Name "Mtc"
|
|
Position [285, 88, 315, 102]
|
|
BlockMirror on
|
|
Port "7"
|
|
Side "Right"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "I_ab"
|
|
Position [290, 143, 320, 157]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "V_abc"
|
|
Position [330, 223, 360, 237]
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "Mux1"
|
|
SrcPort 1
|
|
DstBlock "I_ab"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Mux"
|
|
SrcPort 1
|
|
DstBlock "V_abc"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Current Measurement1"
|
|
SrcPort 1
|
|
Points [25, 0; 0, 105]
|
|
DstBlock "Mux1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Current Measurement2"
|
|
SrcPort 1
|
|
Points [30, 0]
|
|
DstBlock "Mux1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Voltage Measurement2"
|
|
SrcPort 1
|
|
Points [0, -20]
|
|
DstBlock "Mux"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "Voltage Measurement1"
|
|
SrcPort 1
|
|
DstBlock "Mux"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Voltage Measurement"
|
|
SrcPort 1
|
|
Points [35, 0]
|
|
DstBlock "Mux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Voltage Measurement"
|
|
SrcPort LConn2
|
|
Points [-5, 0; 0, 35]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, 15]
|
|
Branch {
|
|
ConnectType "DEST_DEST"
|
|
SrcBlock "V_Com"
|
|
SrcPort RConn1
|
|
Points [0, 0; 45, 0]
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Voltage Measurement2"
|
|
DstPort LConn2
|
|
}
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Voltage Measurement1"
|
|
DstPort LConn2
|
|
}
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Tc"
|
|
SrcPort RConn1
|
|
Points [0, 0; 15, 0]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, 175]
|
|
DstBlock "Voltage Measurement2"
|
|
DstPort LConn1
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Mtc"
|
|
DstPort RConn1
|
|
}
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Current Measurement1"
|
|
SrcPort RConn1
|
|
Points [0, 0]
|
|
DstBlock "Mtb"
|
|
DstPort RConn1
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Tb"
|
|
SrcPort RConn1
|
|
Points [0, 0; 25, 0]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, 165]
|
|
DstBlock "Voltage Measurement1"
|
|
DstPort LConn1
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Current Measurement1"
|
|
DstPort LConn1
|
|
}
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Current Measurement2"
|
|
SrcPort RConn1
|
|
Points [0, 0]
|
|
DstBlock "Mta"
|
|
DstPort RConn1
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Ta"
|
|
SrcPort RConn1
|
|
Points [0, 0; 35, 0]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, 165]
|
|
DstBlock "Voltage Measurement"
|
|
DstPort LConn1
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Current Measurement2"
|
|
DstPort LConn1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "N*"
|
|
Ports [0, 1]
|
|
Position [15, 50, 40, 80]
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib_extras/Control \nBlocks/Timer"
|
|
SourceType "Timer"
|
|
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"
|
|
t "[0 2]"
|
|
e "[800 -800]"
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition1"
|
|
Position [740, 205, 770, 245]
|
|
ShowName off
|
|
FontSize 12
|
|
OutPortSampleTime "10*Ts"
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition2"
|
|
Position [735, 270, 770, 310]
|
|
ShowName off
|
|
FontSize 12
|
|
OutPortSampleTime "10*Ts"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope"
|
|
Ports [3]
|
|
Position [800, 62, 845, 178]
|
|
ShowName off
|
|
FontSize 12
|
|
Floating off
|
|
Location [1, 49, 1367, 727]
|
|
Open off
|
|
NumInputPorts "3"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
axes2 "%<SignalLabel>"
|
|
axes3 "%<SignalLabel>"
|
|
}
|
|
TimeRange "4"
|
|
YMin "-750~0~-200"
|
|
YMax "750~1700~1200"
|
|
SaveName "simout"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
Decimation "10"
|
|
SampleInput on
|
|
SampleTime "0"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope1"
|
|
Ports [2]
|
|
Position [710, 431, 740, 489]
|
|
ShowName off
|
|
Floating off
|
|
Location [1, 49, 1367, 727]
|
|
Open off
|
|
NumInputPorts "2"
|
|
ZoomMode "xonly"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
axes2 "%<SignalLabel>"
|
|
}
|
|
YMin "-50~-700"
|
|
YMax "650~700"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
SampleTime "0"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Speed Controller1"
|
|
Ports [3, 3]
|
|
Position [80, 50, 160, 150]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
MaskType "Speed controller"
|
|
MaskDescription "This block implements a PI speed regulator."
|
|
MaskHelp "\n"
|
|
MaskPromptString "Regulation type|Base speed (rpm)|Speed reference ramp (rpm/s) [deceleration,acceleration"
|
|
"]|Proportional gain|Integral gain|Speed measurement - low-pass filter cutoff frequency (Hz)|Controller output to"
|
|
"rque saturation (N.m) [negative,positive]|Motor pairs of poles|Machine nominal flux (Wb)|Controller sampling tim"
|
|
"e (s)"
|
|
MaskStyleString "popup(Speed regulation|Torque regulation),edit,edit,edit,edit,edit,edit,edit,edit,edit"
|
|
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on"
|
|
MaskCallbackString "|||||||||"
|
|
MaskEnableString "off,on,off,on,on,off,off,off,off,off"
|
|
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on"
|
|
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
|
|
MaskVarAliasString ",,,,,,,,,"
|
|
MaskVariables "SwK=@1;bs=@2;ramp=@3;kp=@4;ki=@5;fc=@6;ctrl_sat=@7;p=@8;nf=@9;Tsc=@10;"
|
|
MaskInitialization "[X1,X1m,X2,X2m,X3,X4,Y1,Y1m,Y2,Y2m,Y3,Y4,color1,color2]=spsdrivelogo;"
|
|
MaskIconFrame on
|
|
MaskIconOpaque off
|
|
MaskIconRotate "none"
|
|
MaskPortRotate "default"
|
|
MaskIconUnits "normalized"
|
|
MaskValueString "Speed regulation|1500|[-900,900]|30|200|100|[-1200,1200]|2|0.8|7*Ts"
|
|
MaskTabNameString ",,,,,,,,,"
|
|
System {
|
|
Name "Speed Controller1"
|
|
Location [2, 82, 1014, 743]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "N*"
|
|
Position [15, 98, 45, 112]
|
|
NamePlacement "alternate"
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "N"
|
|
Position [15, 168, 45, 182]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "MagC"
|
|
Position [15, 118, 45, 132]
|
|
FontSize 12
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Abs
|
|
Name "Abs"
|
|
Position [440, 25, 470, 55]
|
|
ShowName off
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType BusCreator
|
|
Name "Bus\nCreator3"
|
|
Ports [4, 1]
|
|
Position [815, 187, 820, 328]
|
|
ShowName off
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType Saturate
|
|
Name "Ctrl sat."
|
|
Position [620, 130, 650, 160]
|
|
FontSize 12
|
|
UpperLimit "ctrl_sat(2)"
|
|
LowerLimit "ctrl_sat(1)"
|
|
Port {
|
|
PortNumber 1
|
|
Name "Torque reference (Nm)"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType DiscreteIntegrator
|
|
Name "Discrete-Time\nIntegrator2"
|
|
Ports [1, 1]
|
|
Position [470, 93, 540, 137]
|
|
ShowName off
|
|
FontSize 12
|
|
IntegratorMethod "Integration: Trapezoidal"
|
|
ExternalReset "none"
|
|
InitialConditionSource "internal"
|
|
SampleTime "Tsc"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
LimitOutput on
|
|
UpperSaturationLimit "ctrl_sat(2)/2"
|
|
LowerSaturationLimit "ctrl_sat(1)/2"
|
|
ICPrevOutput "DiscIntNeverNeededParam"
|
|
ICPrevScaledInput "DiscIntNeverNeededParam"
|
|
}
|
|
Block {
|
|
BlockType Lookup
|
|
Name "Flux table"
|
|
Position [485, 14, 535, 66]
|
|
FontSize 12
|
|
InputValues "[0;400;800;1200;1500;1700;2000;2500;3000]"
|
|
Table "[nf;nf;nf;nf;nf;nf;0.90*nf;0.72*nf;0.51*nf]"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
Port {
|
|
PortNumber 1
|
|
Name "Flux reference (Wb)"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType InitialCondition
|
|
Name "IC"
|
|
Position [125, 95, 150, 135]
|
|
ShowName off
|
|
FontSize 12
|
|
Value "0"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Integral gain"
|
|
Position [405, 97, 445, 133]
|
|
FontSize 12
|
|
Gain "ki"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType DiscreteTransferFcn
|
|
Name "Low pass filter"
|
|
Position [270, 158, 335, 192]
|
|
FontSize 12
|
|
Numerator "[1-exp(-2*pi*fc*Tsc)]"
|
|
Denominator "[1 -exp(-2*pi*fc*Tsc)]"
|
|
SampleTime "Tsc"
|
|
}
|
|
Block {
|
|
BlockType Product
|
|
Name "Product"
|
|
Ports [2, 1]
|
|
Position [85, 95, 110, 135]
|
|
ShowName off
|
|
FontSize 12
|
|
InputSameDT off
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
RndMeth "Floor"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Proportional gain"
|
|
Position [405, 159, 445, 191]
|
|
FontSize 12
|
|
Gain "kp"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType RateLimiter
|
|
Name "Rate Limiter"
|
|
Position [175, 100, 205, 130]
|
|
ShowName off
|
|
FontSize 12
|
|
RisingSlewLimit "ramp(2)"
|
|
FallingSlewLimit "ramp(1)"
|
|
LinearizeAsGain off
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition"
|
|
Position [830, 124, 885, 166]
|
|
ShowName off
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition1"
|
|
Position [830, 19, 885, 61]
|
|
ShowName off
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType RateTransition
|
|
Name "Rate Transition2"
|
|
Position [835, 239, 890, 281]
|
|
ShowName off
|
|
FontSize 12
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [345, 105, 365, 125]
|
|
ShowName off
|
|
FontSize 12
|
|
IconShape "round"
|
|
Inputs "|+-"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
Port {
|
|
PortNumber 1
|
|
Name "Error"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [2, 1]
|
|
Position [555, 87, 565, 203]
|
|
ShowName off
|
|
FontSize 12
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold1"
|
|
Position [220, 164, 235, 186]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Tsc"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold2"
|
|
Position [905, 249, 920, 271]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Ts"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold3"
|
|
Position [215, 299, 230, 321]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Tsc"
|
|
Port {
|
|
PortNumber 1
|
|
Name "Reference"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold5"
|
|
Position [220, 104, 235, 126]
|
|
ShowName off
|
|
FontSize 12
|
|
SampleTime "Tsc"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Flux*"
|
|
Position [940, 33, 970, 47]
|
|
FontSize 12
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Torque*"
|
|
Position [940, 138, 970, 152]
|
|
FontSize 12
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Singal"
|
|
Position [940, 253, 970, 267]
|
|
FontSize 12
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
Name "Reference"
|
|
Labels [1, 1]
|
|
SrcBlock "Zero-Order\nHold3"
|
|
SrcPort 1
|
|
DstBlock "Bus\nCreator3"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
DstBlock "Ctrl sat."
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold5"
|
|
SrcPort 1
|
|
Points [25, 0]
|
|
Branch {
|
|
Points [0, -75]
|
|
DstBlock "Abs"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Limiter"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold5"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "MagC"
|
|
SrcPort 1
|
|
DstBlock "Product"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "N*"
|
|
SrcPort 1
|
|
DstBlock "Product"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Low pass filter"
|
|
SrcPort 1
|
|
Points [15, 0]
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold2"
|
|
SrcPort 1
|
|
DstBlock "Singal"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Bus\nCreator3"
|
|
SrcPort 1
|
|
DstBlock "Rate Transition2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition2"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold1"
|
|
SrcPort 1
|
|
DstBlock "Low pass filter"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "IC"
|
|
SrcPort 1
|
|
Points [0, 0; 5, 0]
|
|
Branch {
|
|
Points [0, 195]
|
|
DstBlock "Zero-Order\nHold3"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
DstBlock "Rate Limiter"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition1"
|
|
SrcPort 1
|
|
DstBlock "Flux*"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition"
|
|
SrcPort 1
|
|
DstBlock "Torque*"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "Flux reference (Wb)"
|
|
SrcBlock "Flux table"
|
|
SrcPort 1
|
|
Points [155, 0]
|
|
Branch {
|
|
DstBlock "Rate Transition1"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Labels [-1, 1]
|
|
Points [0, 200]
|
|
DstBlock "Bus\nCreator3"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Abs"
|
|
SrcPort 1
|
|
DstBlock "Flux table"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Proportional gain"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Discrete-Time\nIntegrator2"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "N"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "Error"
|
|
Labels [0, 0]
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
Branch {
|
|
DstBlock "Integral gain"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Labels [1, 0]
|
|
Points [0, 60]
|
|
Branch {
|
|
DstBlock "Proportional gain"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Labels [-1, 1]
|
|
Points [0, 100]
|
|
DstBlock "Bus\nCreator3"
|
|
DstPort 3
|
|
}
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Integral gain"
|
|
SrcPort 1
|
|
DstBlock "Discrete-Time\nIntegrator2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "Torque reference (Nm)"
|
|
SrcBlock "Ctrl sat."
|
|
SrcPort 1
|
|
Points [45, 0]
|
|
Branch {
|
|
DstBlock "Rate Transition"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Labels [2, 0]
|
|
Points [0, 60]
|
|
DstBlock "Bus\nCreator3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Product"
|
|
SrcPort 1
|
|
DstBlock "IC"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "T*"
|
|
Ports [0, 1]
|
|
Position [460, 181, 505, 219]
|
|
BlockMirror on
|
|
NamePlacement "alternate"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib_extras/Control \nBlocks/Timer"
|
|
SourceType "Timer"
|
|
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"
|
|
t "[0 1.5]"
|
|
e "[0 10]"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Three-Phase\nParallel RLC Branch"
|
|
Ports [0, 0, 0, 0, 0, 3, 3]
|
|
Position [460, 416, 530, 464]
|
|
AttributesFormatString "\\n"
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Branch"
|
|
SourceType "Three-Phase Parallel RLC Branch"
|
|
PhysicalDomain "powersysdomain"
|
|
SubClassName "unknown"
|
|
LeftPortType "p1"
|
|
RightPortType "p1"
|
|
LConnTagsString "A|B|C"
|
|
RConnTagsString "A|B|C"
|
|
BranchType "R"
|
|
Resistance "10e3"
|
|
Inductance "1e-3"
|
|
Capacitance "1e-6"
|
|
Measurements "None"
|
|
}
|
|
Block {
|
|
BlockType ToWorkspace
|
|
Name "To Workspace"
|
|
Position [1020, 300, 1080, 330]
|
|
VariableName "T"
|
|
MaxDataPoints "inf"
|
|
SampleTime "-1"
|
|
SaveFormat "Array"
|
|
}
|
|
Block {
|
|
BlockType ToWorkspace
|
|
Name "To Workspace1"
|
|
Position [895, 205, 955, 235]
|
|
VariableName "M"
|
|
MaxDataPoints "inf"
|
|
SampleTime "-1"
|
|
SaveFormat "Array"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Voltage Measurement"
|
|
Ports [0, 1, 0, 0, 0, 2]
|
|
Position [600, 388, 635, 457]
|
|
ShowName off
|
|
DialogController "POWERSYS.PowerSysDialog"
|
|
SourceBlock "powerlib/Measurements/Voltage Measurement"
|
|
SourceType "Voltage Measurement"
|
|
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"
|
|
PhasorSimulation off
|
|
OutputType "Complex"
|
|
PSBequivalent "0"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "XY Graph"
|
|
Ports [2]
|
|
Position [810, 232, 840, 303]
|
|
SourceBlock "simulink/Sinks/XY Graph"
|
|
SourceType "XY scope."
|
|
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"
|
|
xmin "-1"
|
|
xmax "1"
|
|
ymin "-1"
|
|
ymax "1"
|
|
st "-1"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "demux"
|
|
Ports [2, 5]
|
|
Position [590, 86, 665, 204]
|
|
FontSize 12
|
|
MinAlgLoopOccurrences off
|
|
PropExecContextOutsideSubsystem off
|
|
RTWSystemCode "Auto"
|
|
FunctionWithSeparateData off
|
|
Opaque off
|
|
RequestExecContextInheritance off
|
|
MaskHideContents off
|
|
Port {
|
|
PortNumber 1
|
|
Name "Stator current"
|
|
PropagatedSignals "Stator current is_a (A)"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 2
|
|
Name "Rotor speed"
|
|
PropagatedSignals ", Reference"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 3
|
|
Name "Electromagnetic Torque"
|
|
PropagatedSignals "Electromagnetic torque Te (N*m), Torque reference (Nm)"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
System {
|
|
Name "demux"
|
|
Location [2, 83, 1014, 739]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
|
|
TiledPageScale 1
|
|
ShowPageBoundaries off
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Singal"
|
|
Position [25, 218, 55, 232]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "motor"
|
|
Position [20, 78, 50, 92]
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType BusSelector
|
|
Name "Bus\nSelector"
|
|
Ports [1, 5]
|
|
Position [85, 27, 90, 143]
|
|
ShowName off
|
|
OutputSignals "Stator measurements.Stator current is_a (A),Mechanical.Rotor speed (wm),Mechanical.Electromagneti"
|
|
"c torque Te (N*m),Stator measurements.Stator flux phis_q (V s),Stator measurements.Stator flux phis_d (V s)"
|
|
Port {
|
|
PortNumber 1
|
|
Name "<Stator current is_a (A)>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 2
|
|
Name "<Rotor speed (wm)>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 3
|
|
Name "<Electromagnetic torque Te (N*m)>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 4
|
|
Name "<Stator flux phis_q (V s)>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 5
|
|
Name "<Stator flux phis_d (V s)>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType BusSelector
|
|
Name "Bus\nSelector1"
|
|
Ports [1, 2]
|
|
Position [85, 197, 90, 248]
|
|
ShowName off
|
|
OutputSignals "Torque reference (Nm),Reference"
|
|
Port {
|
|
PortNumber 1
|
|
Name "<Torque reference (Nm)>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
Port {
|
|
PortNumber 2
|
|
Name "<Reference>"
|
|
RTWStorageClass "Auto"
|
|
DataLoggingNameMode "SignalName"
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [255, 70, 285, 100]
|
|
ShowName off
|
|
Gain "30/pi"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScaling "2^0"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Name "Mux"
|
|
Ports [2, 1]
|
|
Position [370, 76, 375, 114]
|
|
ShowName off
|
|
Inputs "2"
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Name "Mux1"
|
|
Ports [2, 1]
|
|
Position [310, 111, 315, 149]
|
|
ShowName off
|
|
Inputs "2"
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "i_a"
|
|
Position [280, 28, 310, 42]
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "speed"
|
|
Position [490, 88, 520, 102]
|
|
NamePlacement "alternate"
|
|
Port "2"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Tem"
|
|
Position [480, 123, 510, 137]
|
|
Port "3"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "phi_q"
|
|
Position [410, 303, 440, 317]
|
|
Port "4"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "phi_d"
|
|
Position [410, 353, 440, 367]
|
|
Port "5"
|
|
IconDisplay "Port number"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
}
|
|
Line {
|
|
SrcBlock "motor"
|
|
SrcPort 1
|
|
DstBlock "Bus\nSelector"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Mux"
|
|
SrcPort 1
|
|
DstBlock "speed"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Singal"
|
|
SrcPort 1
|
|
DstBlock "Bus\nSelector1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Mux1"
|
|
SrcPort 1
|
|
DstBlock "Tem"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "<Electromagnetic torque Te (N*m)>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector"
|
|
SrcPort 3
|
|
Points [0, -25; 200, 0]
|
|
DstBlock "Mux1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "<Rotor speed (wm)>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector"
|
|
SrcPort 2
|
|
Points [0, 25]
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "<Stator current is_a (A)>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector"
|
|
SrcPort 1
|
|
DstBlock "i_a"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
DstBlock "Mux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "<Torque reference (Nm)>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector1"
|
|
SrcPort 1
|
|
Points [180, 0; 0, -70]
|
|
DstBlock "Mux1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
Name "<Reference>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector1"
|
|
SrcPort 2
|
|
Points [260, 0]
|
|
DstBlock "Mux"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
Name "<Stator flux phis_q (V s)>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector"
|
|
SrcPort 4
|
|
Points [150, 0; 0, 200]
|
|
DstBlock "phi_q"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "<Stator flux phis_d (V s)>"
|
|
Labels [0, 0]
|
|
SrcBlock "Bus\nSelector"
|
|
SrcPort 5
|
|
Points [95, 0; 0, 225]
|
|
DstBlock "phi_d"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "powergui"
|
|
Ports []
|
|
Position [915, 38, 1002, 79]
|
|
Priority "1"
|
|
UserDataPersistent on
|
|
UserData "DataTag0"
|
|
FontName "Verdana"
|
|
SourceBlock "powerlib/powergui"
|
|
SourceType "PSB option menu block"
|
|
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"
|
|
SimulationMode "Discrete"
|
|
SampleTime "20e-6"
|
|
frequency "60"
|
|
SPID off
|
|
DisableSnubberDevices off
|
|
DisableRonSwitches off
|
|
DisableVfSwitches off
|
|
SwTol "0"
|
|
Interpol off
|
|
frequencyindice "50"
|
|
echomessages off
|
|
HookPort off
|
|
DisplayEquations off
|
|
FunctionMessages off
|
|
EnableUseOfTLC off
|
|
x0status "blocks"
|
|
RestoreLinks "warning"
|
|
Frange "[0:2:500]"
|
|
Ylog off
|
|
Xlog on
|
|
ShowGrid off
|
|
save off
|
|
variable "ZData"
|
|
ZoomFFT on
|
|
StartTime "0.0"
|
|
cycles "1"
|
|
DisplayStyle "1"
|
|
fundamental "60"
|
|
FreqAxis off
|
|
MaxFrequency "1000"
|
|
frequencyindicesteady "1"
|
|
RmsSteady "1"
|
|
display off
|
|
Ts "0"
|
|
methode off
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Inverter_3ph"
|
|
SrcPort LConn1
|
|
Points [50, 0]
|
|
DstBlock "Measures"
|
|
DstPort LConn1
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Inverter_3ph"
|
|
SrcPort LConn2
|
|
Points [50, 0]
|
|
DstBlock "Measures"
|
|
DstPort LConn2
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Inverter_3ph"
|
|
SrcPort LConn3
|
|
DstBlock "Measures"
|
|
DstPort LConn3
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
Points [445, 405; 0, -5; 0, -105]
|
|
Branch {
|
|
ConnectType "SRC_SRC"
|
|
DstBlock "Three-Phase\nParallel RLC Branch"
|
|
DstPort LConn1
|
|
}
|
|
Branch {
|
|
ConnectType "SRC_SRC"
|
|
DstBlock "Voltage Measurement"
|
|
DstPort LConn1
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Measures"
|
|
DstPort RConn1
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Induction\nmachine"
|
|
DstPort LConn1
|
|
}
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Three-Phase\nParallel RLC Branch"
|
|
SrcPort LConn3
|
|
Points [-30, 0; 0, -120]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Measures"
|
|
DstPort RConn3
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Induction\nmachine"
|
|
DstPort LConn3
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Measures"
|
|
SrcPort 1
|
|
Points [30, 0; 0, -80]
|
|
DstBlock "DTC"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Measures"
|
|
SrcPort 2
|
|
Points [45, 0; 0, -125]
|
|
DstBlock "DTC"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "DTC"
|
|
SrcPort 2
|
|
Points [-25, 0; 0, 70]
|
|
DstBlock "Inverter_3ph"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "N*"
|
|
SrcPort 1
|
|
DstBlock "Speed Controller1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "30/pi"
|
|
SrcPort 1
|
|
Points [15, 0; 0, 70; -635, 0; 0, -275]
|
|
DstBlock "Speed Controller1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "600"
|
|
SrcPort LConn1
|
|
Points [0, 0; 0, 30]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, 10; 40, 0]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, -40]
|
|
DstBlock "Inverter_3ph"
|
|
DstPort RConn2
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [155, 0]
|
|
DstBlock "Measures"
|
|
DstPort LConn4
|
|
}
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Ground1"
|
|
DstPort LConn1
|
|
}
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "600"
|
|
SrcPort RConn1
|
|
Points [0, -10; 50, 0; 0, 30]
|
|
DstBlock "Inverter_3ph"
|
|
DstPort RConn1
|
|
}
|
|
Line {
|
|
SrcBlock "Speed Controller1"
|
|
SrcPort 1
|
|
Points [10, 0; 0, -35; 245, 0; 0, 95]
|
|
DstBlock "DTC"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Speed Controller1"
|
|
SrcPort 2
|
|
Points [60, 0; 0, -50; 175, 0; 0, 50]
|
|
DstBlock "DTC"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "DTC"
|
|
SrcPort 1
|
|
Points [-40, 0; 0, 65; -190, 0; 0, -45]
|
|
DstBlock "Speed Controller1"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
Name "Stator current"
|
|
FontSize 12
|
|
Labels [0, 0]
|
|
SrcBlock "demux"
|
|
SrcPort 1
|
|
Points [115, 0]
|
|
DstBlock "Scope"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
Name "Rotor speed"
|
|
FontSize 12
|
|
Labels [0, 0]
|
|
SrcBlock "demux"
|
|
SrcPort 2
|
|
DstBlock "Scope"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "demux"
|
|
SrcPort 4
|
|
Points [45, 0; 0, 55]
|
|
DstBlock "Rate Transition1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "demux"
|
|
SrcPort 5
|
|
Points [30, 0; 0, 95]
|
|
DstBlock "Rate Transition2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition1"
|
|
SrcPort 1
|
|
Points [20, 0]
|
|
DstBlock "XY Graph"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Rate Transition2"
|
|
SrcPort 1
|
|
Points [20, 0]
|
|
DstBlock "XY Graph"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "T*"
|
|
SrcPort 1
|
|
Points [-20, 0; 0, 75]
|
|
DstBlock "Induction\nmachine"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
Points [565, 440; 0, 15]
|
|
Branch {
|
|
ConnectType "SRC_DEST"
|
|
SrcBlock "Three-Phase\nParallel RLC Branch"
|
|
SrcPort RConn2
|
|
Points [0, 0; 20, 0]
|
|
}
|
|
Branch {
|
|
ConnectType "SRC_SRC"
|
|
DstBlock "Voltage Measurement"
|
|
DstPort LConn2
|
|
}
|
|
Branch {
|
|
ConnectType "SRC_DEST"
|
|
SrcBlock "Three-Phase\nParallel RLC Branch"
|
|
SrcPort RConn1
|
|
Points [20, 0; 0, 15]
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Three-Phase\nParallel RLC Branch"
|
|
DstPort RConn3
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Ground"
|
|
DstPort LConn1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Voltage Measurement"
|
|
SrcPort 1
|
|
Points [35, 0; 0, 20]
|
|
DstBlock "Scope1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Machine terminal\nvoltages"
|
|
SrcPort 1
|
|
Points [25, 0; 0, -20]
|
|
DstBlock "Scope1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
Name "Electromagnetic Torque"
|
|
Labels [0, 0]
|
|
SrcBlock "demux"
|
|
SrcPort 3
|
|
Points [105, 0]
|
|
Branch {
|
|
Points [10, 0]
|
|
DstBlock "Scope"
|
|
DstPort 3
|
|
}
|
|
Branch {
|
|
Points [0, 75]
|
|
DstBlock "To Workspace1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Induction\nmachine"
|
|
SrcPort 1
|
|
Points [10, 0]
|
|
Branch {
|
|
DstBlock "30/pi"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, -130]
|
|
DstBlock "demux"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
LineType "Connection"
|
|
SrcBlock "Induction\nmachine"
|
|
SrcPort LConn2
|
|
Points [0, 0; -35, 0]
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
DstBlock "Measures"
|
|
DstPort RConn2
|
|
}
|
|
Branch {
|
|
ConnectType "DEST_SRC"
|
|
Points [0, 125]
|
|
DstBlock "Three-Phase\nParallel RLC Branch"
|
|
DstPort LConn2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Speed Controller1"
|
|
SrcPort 3
|
|
DstBlock "Goto"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "From"
|
|
SrcPort 1
|
|
DstBlock "demux"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Clock"
|
|
SrcPort 1
|
|
DstBlock "To Workspace"
|
|
DstPort 1
|
|
}
|
|
Annotation {
|
|
Name "Three-phase \ninverter"
|
|
Position [171, 202]
|
|
FontSize 12
|
|
}
|
|
}
|
|
}
|
|
MatData {
|
|
NumRecords 1
|
|
DataRecord {
|
|
Tag DataTag0
|
|
Data " %)30 . X ( 8 ( @ % \" $ ! 0 % 0 # $ !X <&]W97"
|
|
")G=6D <W1E861Y<W1A=&4 :6YI='-T871E<P ;&]A9&9L;W< ;'1I=FEE=P >FUE=&5R 9F9T=&]O; <F5P;W)T"
|
|
" :'ES=&5R97-I<P ;&EN97!A<F%M #@ # & \" 8 !0 @ $ \"0 "
|
|
" . , 8 ( !@ % \" 0 ) X P !@ @ & 4 "
|
|
" ( ! D #@ # & \" 8 !0 @ $ \"0 "
|
|
" . , 8 ( !@ % \" 0 ) X P !@ @ & 4 "
|
|
" ( ! D #@ # & \" 8 !0 @ $ \"0 "
|
|
" . , 8 ( !@ % \" 0 ) X P !@ @ & 4 "
|
|
"( ! D #@ # & \" 8 !0 @ $ \"0 "
|
|
}
|
|
}
|