📄 puls1.mdl
字号:
Model {
Name "puls1"
Version 5.0
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Feb 18 15:24:06 2005"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "dyy"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Feb 18 15:27:45 2005"
ModelVersionFormat "1.%<AutoIncrement:1>"
ConfigurationManager "None"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "normal"
Solver "ode45"
SolverMode "Auto"
StartTime "0.0"
StopTime "10.0"
MaxOrder 5
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
RelTol "1e-3"
AbsTol "auto"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints on
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters off
BlockReductionOpt on
BooleanDataType on
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType CombinatorialLogic
TruthTable "[0 0;0 1;0 1;1 0;0 1;1 0;1 0;1 1]"
}
Block {
BlockType ComplexToMagnitudeAngle
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Output "Real and imag"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
ShowAdditionalParam off
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
}
Block {
BlockType DataTypeConversion
DataType "auto"
SaturateOnIntegerOverflow on
}
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType EnablePort
StatesWhenEnabling "held"
ShowOutputPort off
ZeroCross on
}
Block {
BlockType From
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ShowAdditionalParam off
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType HitCross
HitCrossingOffset "0"
HitCrossingDirection "either"
ShowOutputPort on
ZeroCross on
}
Block {
BlockType Inport
Port "1"
PortDimensions "-1"
SampleTime "-1"
ShowAdditionalParam off
LatchInput off
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
ZeroCross on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
ShowAdditionalParam off
AllPortsSameDT on
OutDataTypeMode "Logical (see Advanced Sim. Parameters)"
LogicDataType "uint(8)"
}
Block {
BlockType Memory
X0 "0"
InheritSampleTime off
LinearizeMemory off
RTWStateStorageClass "Auto"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
}
Block {
BlockType Outport
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType RelationalOperator
Operator ">="
ShowAdditionalParam off
InputSameDT on
LogicOutDataTypeMode "Logical (see Advanced Sim. Parameters)"
LogicDataType "uint(8)"
ZeroCross on
}
Block {
BlockType Selector
InputType "Vector"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
}
Block {
BlockType Terminator
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "puls1"
Location [2, 70, 1022, 720]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Pulse Generator"
Ports [4, 1]
Position [330, 66, 375, 209]
TreatAsAtomicUnit off
System {
Name "Pulse Generator"
Location [207, 149, 840, 550]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "alpha"
Position [140, 143, 170, 157]
}
Block {
BlockType Inport
Name "UA"
Position [45, 183, 75, 197]
Port "2"
}
Block {
BlockType Inport
Name "UB"
Position [50, 233, 80, 247]
Port "3"
}
Block {
BlockType Inport
Name "UC"
Position [50, 283, 80, 297]
Port "4"
}
Block {
BlockType Constant
Name "Constant"
Position [175, 330, 205, 360]
Value "0"
}
Block {
BlockType Constant
Name "Constant1"
Position [145, 111, 165, 129]
Value "30"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [210, 135, 230, 155]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Synchronized\n6-Pulse Generator"
Ports [5, 1]
Position [265, 118, 355, 372]
SourceBlock "powerlib_extras/Control \nBlocks/Synchroniz"
"ed\n6-Pulse Generator"
SourceType "Synchronized 6-pulse generator"
freq "60"
pwidth "10"
Double_Pulse on
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [145, 185, 165, 205]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [145, 235, 165, 255]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [145, 285, 165, 305]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Outport
Name "Pulse "
Position [470, 238, 500, 252]
}
Line {
SrcBlock "Synchronized\n6-Pulse Generator"
SrcPort 1
DstBlock "Pulse "
DstPort 1
}
Line {
SrcBlock "UA"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Voltage Measurement"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Voltage Measurement2"
DstPort 2
}
}
Line {
SrcBlock "UB"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -40]
DstBlock "Voltage Measurement"
DstPort 2
}
Branch {
DstBlock "Voltage Measurement1"
DstPort 1
}
}
Line {
SrcBlock "UC"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -40]
DstBlock "Voltage Measurement1"
DstPort 2
}
Branch {
DstBlock "Voltage Measurement2"
DstPort 1
}
}
Line {
SrcBlock "Voltage Measurement2"
SrcPort 1
DstBlock "Synchronized\n6-Pulse Generator"
DstPort 4
}
Line {
SrcBlock "Voltage Measurement1"
SrcPort 1
DstBlock "Synchronized\n6-Pulse Generator"
DstPort 3
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
DstBlock "Synchronized\n6-Pulse Generator"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Synchronized\n6-Pulse Generator"
DstPort 5
}
Line {
SrcBlock "alpha"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Synchronized\n6-Pulse Generator"
DstPort 1
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -