📄 deg_120_trig.mdl
字号:
Model {
Name "deg_120_trig"
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 on
BrowserLookUnderMasks on
Created "Wed Apr 04 15:43:37 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "dsplab"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Apr 11 01:07:14 2004"
ModelVersionFormat "1.%<AutoIncrement:3>"
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 "1.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 "warning"
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 off
BooleanDataType off
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 DiscretePulseGenerator
PulseType "Sample based"
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Outport
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Scope
Floating off
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 "0"
}
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
}
}
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 "deg_120_trig"
Location [478, 83, 978, 384]
Open on
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "120 deg trigger"
Ports [0, 3]
Position [115, 61, 190, 179]
TreatAsAtomicUnit off
MaskPromptString "Time period|Excitation Voltage"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "T=@1;V=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1/10|160"
System {
Name "120 deg trigger"
Location [202, 82, 1014, 744]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Position [25, 25, 55, 55]
PulseType "Time based"
Amplitude "V"
Period "T"
PulseWidth "200/3"
PhaseDelay "T/3"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Position [25, 95, 55, 125]
PulseType "Time based"
Amplitude "-2*V"
Period "2*T"
PulseWidth "100/3"
PhaseDelay "-2*T/3"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator2"
Position [35, 190, 65, 220]
PulseType "Time based"
Amplitude "V"
Period "T"
PulseWidth "200/3"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator3"
Position [35, 260, 65, 290]
PulseType "Time based"
Amplitude "-2*V"
Period "2*T"
PulseWidth "100/3"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator4"
Position [40, 375, 70, 405]
PulseType "Time based"
Amplitude "V"
Period "T"
PulseWidth "200/3"
PhaseDelay "-T/3"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator5"
Position [40, 445, 70, 475]
PulseType "Time based"
Amplitude "-2*V"
Period "2*T"
PulseWidth "100/3"
PhaseDelay "2*T/3"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [90, 40, 110, 60]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [100, 205, 120, 225]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [105, 390, 125, 410]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Outport
Name "U"
Position [180, 38, 210, 52]
}
Block {
BlockType Outport
Name "V"
Position [180, 208, 210, 222]
Port "2"
}
Block {
BlockType Outport
Name "W"
Position [180, 388, 210, 402]
Port "3"
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Pulse\nGenerator1"
SrcPort 1
Points [40, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Pulse\nGenerator2"
SrcPort 1
Points [15, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Pulse\nGenerator3"
SrcPort 1
Points [40, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Pulse\nGenerator4"
SrcPort 1
Points [15, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Pulse\nGenerator5"
SrcPort 1
Points [40, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [50, 0]
DstBlock "U"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "V"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [35, 0]
DstBlock "W"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [265, 56, 300, 204]
Location [1, 56, 1025, 767]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-5~-5~-5"
YMax "5~5~5"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "120 deg trigger"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "120 deg trigger"
SrcPort 2
Points [25, 0; 0, 10]
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "120 deg trigger"
SrcPort 3
Points [25, 0; 0, 20]
DstBlock "Scope"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -