📄 untitled.mdl
字号:
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
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 "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SignalGenerator
WaveForm "sine"
TimeSource "Use simulation time"
Amplitude "1"
Frequency "1"
Units "Hertz"
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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
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 "untitled"
Location [318, 82, 1155, 704]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [555, 175, 585, 205]
Value "[0 2]"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [420, 328, 500, 372]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "4"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [565, 106, 570, 144]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Quantizer\nDecode"
Ports [1, 1]
Position [445, 113, 525, 157]
SourceBlock "cbobsv2p5/Quantizer\nDecode"
SourceType "Quantizer Decode"
ShowPortLabels on
codebook "[-1:2/15:1]"
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode"
Ports [1, 3]
Position [240, 128, 320, 172]
SourceBlock "cbobsv2p5/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
ShowPortLabels on
partition "[-0.95:2/15:0.95]"
codebook "[-1:2/15:1]"
n "1"
sample_time "0.1"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [730, 119, 760, 151]
Location [689, 247, 1275, 671]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20"
YMin "-2"
YMax "4"
DataFormat "StructureWithTime"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Ports [0, 1]
Position [110, 85, 140, 115]
Units "rad/sec"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [590, 115, 610, 135]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [75, 205, 135, 235]
Orientation "left"
NamePlacement "alternate"
VariableName "s"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [70, 270, 130, 300]
Orientation "left"
NamePlacement "alternate"
VariableName "s1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [70, 340, 130, 370]
Orientation "left"
NamePlacement "alternate"
VariableName "s2"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [560, 245, 620, 275]
VariableName "s3"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [565, 335, 625, 365]
VariableName "s4"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [40, 0]
Branch {
Points [0, 50]
Branch {
DstBlock "Sampled\nQuantizer Encode"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "To Workspace"
DstPort 1
}
}
Branch {
Points [0, -30; 355, 0; 0, 45]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Sampled\nQuantizer Encode"
SrcPort 2
Points [30, 0; 0, 135]
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Sampled\nQuantizer Encode"
SrcPort 3
Points [0, 190]
DstBlock "To Workspace2"
DstPort 1
}
Line {
SrcBlock "Sampled\nQuantizer Encode"
SrcPort 1
Points [55, 0]
Branch {
Points [30, 0]
Branch {
Points [0, 125]
DstBlock "To Workspace3"
DstPort 1
}
Branch {
DstBlock "Quantizer\nDecode"
DstPort 1
}
}
Branch {
Points [0, 215]
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "To Workspace4"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 10]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Quantizer\nDecode"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -