📄 bib_mas.mdl
字号:
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Relay
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
OutputDataTypeScalingMode "All ports same datatype"
OutDataType "sfix(16)"
OutScaling "2^0"
ConRadixGroup "Use specified scaling"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
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 "bib_mas"
Location [0, 82, 1012, 744]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Commande\nMLI"
Ports [3, 4]
Position [580, 14, 680, 86]
ForegroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "MLI"
MaskPromptString "Fr閝uence de la porteuse f:(en Hz)|Amplitude d"
"e la porteuse Umaxp:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskInitialization "f=@1;Um=@2;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "15000|10"
MaskTabNameString ","
System {
Name "Commande\nMLI"
Location [6, 74, 630, 500]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "mod a"
Position [165, 135, 185, 155]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "mod b"
Position [165, 185, 185, 205]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "mod c\n"
Position [165, 240, 185, 260]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Porteuse triangulaire\nFr閝uence f\nAmplitu"
"de Umaxp"
Ports [0, 1]
Position [189, 65, 251, 105]
Orientation "down"
ShowPortLabels off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Repeating table"
MaskDescription "Repeating table.\nEnter values of time and "
"output for first cycle."
MaskHelp "Repeats cycle given in table. Time values s"
"hould be monotonically increasing."
MaskPromptString "Time values:|Output values:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskInitialization "period = max(@1); t = @1; y = @2;"
MaskDisplay "plot([t,t+period,t+2*period],[y,y,y])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0 1/(4*f) 3/(4*f) 1/f]|[0 Um -Um 0]"
MaskTabNameString ","
System {
Name "Porteuse triangulaire\nFr閝uence f\nAmpli"
"tude Umaxp"
Location [5, 40, 315, 196]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [45, 60, 65, 80]
Decimation "10"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [110, 60, 150, 80]
Expr "rem(u[1],period)"
}
Block {
BlockType Lookup
Name "Look Up Table"
Position [210, 58, 250, 82]
DialogController "Simulink.DDGSource"
InputValues "t"
OutputValues "y"
}
Block {
BlockType Outport
Name "out_1"
Position [285, 60, 305, 80]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Look Up Table"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Look Up Table"
DstPort 1
}
}
}
Block {
BlockType Relay
Name "Relay"
Position [340, 129, 365, 151]
}
Block {
BlockType Relay
Name "Relay1"
Position [340, 180, 365, 200]
}
Block {
BlockType Relay
Name "Relay2"
Position [340, 235, 365, 255]
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [265, 130, 285, 150]
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [265, 180, 285, 200]
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [265, 235, 285, 255]
Inputs "-+"
}
Block {
BlockType Outport
Name "fca"
Position [420, 130, 440, 150]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fcb"
Position [425, 180, 445, 200]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fcc"
Position [425, 235, 445, 255]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "U porteuse"
Position [430, 300, 450, 320]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Relay2"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "fca"
DstPort 1
}
Line {
SrcBlock "mod a"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "mod b"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
DstBlock "fcb"
DstPort 1
}
Line {
SrcBlock "mod c\n"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Relay2"
SrcPort 1
DstBlock "fcc"
DstPort 1
}
Line {
SrcBlock "Porteuse triangulaire\nFr閝uence f\nAmplitu"
"de Umaxp"
SrcPort 1
Points [0, 25]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
DstBlock "Sum4"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
DstBlock "Sum5"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "U porteuse"
DstPort 1
}
}
}
}
Annotation {
Name "Commande MLI"
Position [352, 337]
VerticalAlignment "top"
FontName "Times New Roman"
FontSize 16
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "Commande \npleine onde\n"
Ports [0, 3]
Position [485, 20, 555, 80]
ForegroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Commande pleine onde"
MaskPromptString "Fr閝uence f (en Hertz)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "f=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "50"
System {
Name "Commande \npleine onde\n"
Location [121, 76, 376, 389]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Relay
Name "Relay1"
Position [125, 75, 155, 95]
}
Block {
BlockType Relay
Name "Relay2"
Position [125, 115, 155, 135]
}
Block {
BlockType Relay
Name "Relay3"
Position [125, 165, 155, 185]
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [75, 75, 95, 95]
SineType "Time based"
Frequency "2*pi*f"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [75, 115, 95, 135]
SineType "Time based"
Frequency "2*pi*f"
Phase "-2*pi/3"
}
Block {
BlockType Sin
Name "Sine Wave2"
Ports [0, 1]
Position [75, 165, 95, 185]
SineType "Time based"
Frequency "2*pi*f"
Phase "2*pi/3"
}
Block {
BlockType Outport
Name "fca"
Position [200, 75, 220, 95]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fcb"
Position [200, 115, 220, 135]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fcc"
Position [205, 165, 225, 185]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Relay1"
SrcPort 1
DstBlock "fca"
DstPort 1
}
Line {
SrcBlock "Relay3"
SrcPort 1
DstBlock "fcc"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -