📄 ex3.mdl
字号:
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
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 FromFile
FileName "untitled.mat"
SampleTime "-1"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 Product
Inputs "2"
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 RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
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 "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 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 "test"
Location [57, 82, 983, 713]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Compare\nTo Constant"
Ports [1, 1]
Position [625, 340, 655, 370]
SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo "
"Constant"
SourceType "Compare To Constant"
ShowPortLabels on
relop ">"
const "0"
LogicOutDataTypeMode "uint8"
ZeroCross off
}
Block {
BlockType FromFile
Name "From File"
Position [250, 308, 315, 332]
FileName "D:\\Program Files\\MATLAB71\\work\\ex3\\bpskdat"
"a"
SampleTime "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [375, 337, 405, 368]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Raised Cosine\nReceive Filter"
Ports [1, 1]
Position [475, 333, 555, 377]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
FontSize 10
SourceBlock "commfilt2/Raised Cosine\nReceive Filter"
SourceType "Raised Cosine Receive Filter"
ShowPortLabels on
filtType "Square root"
N "8"
D "6"
R "0.5"
sampMode "Sample-based"
rateMode "Downsampling"
downFactor "8"
downOffset "0"
checkGain "Normalized"
filterGain "1"
checkCoeff off
variableName "rcRxFilt"
launchFVT off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [725, 339, 755, 371]
Floating off
Location [167, 318, 828, 580]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [455, 224, 485, 256]
Floating off
Location [161, 287, 822, 549]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [270, 390, 300, 420]
SineType "Time based"
Amplitude "sqrt(2)"
Frequency "2*pi*0.25"
Phase "pi/2"
Samples "8"
SampleTime "1"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [720, 230, 780, 260]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "From File"
SrcPort 1
Points [20, 0; 0, 25]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [35, 0; 0, -45]
DstBlock "Product"
DstPort 2
}
Line {
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Raised Cosine\nReceive Filter"
DstPort 1
}
Branch {
Points [0, -115]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Raised Cosine\nReceive Filter"
SrcPort 1
DstBlock "Compare\nTo Constant"
DstPort 1
}
Line {
SrcBlock "Compare\nTo Constant"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, -110]
DstBlock "To Workspace"
DstPort 1
}
}
Annotation {
Position [194, 266]
UseDisplayTextAsClickCallback off
}
Annotation {
Position [480, 134]
UseDisplayTextAsClickCallback off
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E)X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -