?? ii.mdl
字號:
}
BlockParameterDefaults {
Block {
BlockType DiscreteFilter
Numerator "[1]"
Denominator "[1 2]"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
Realization "auto"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType FromWorkspace
VariableName "simulink_input"
SampleTime "-1"
Interpolate on
OutputAfterFinalValue "Extrapolation"
}
Block {
BlockType Ground
}
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 Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
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 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
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 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 "untitledff"
Location [96, 228, 753, 661]
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 Zero"
Ports [1, 1]
Position [150, 230, 180, 260]
Orientation "left"
SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo "
"Zero"
SourceType "Compare To Zero"
ShowPortLabels on
relop ">"
LogicOutDataTypeMode "boolean"
}
Block {
BlockType DiscreteFilter
Name "Discrete Filter"
Position [295, 52, 355, 88]
Numerator "v"
Denominator "[1]"
}
Block {
BlockType DiscreteFilter
Name "Discrete Filter1"
Position [285, 227, 345, 263]
Orientation "left"
Numerator "v"
Denominator "[1]"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [220, 228, 255, 262]
Orientation "left"
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "8"
phase "7"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Lookup
Name "Lookup Table"
Position [130, 45, 180, 95]
DialogController "Simulink.DDGSource"
InputValues "[0 1]"
OutputValues "[-1 1]"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [402, 110, 433, 140]
Orientation "down"
NamePlacement "alternate"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [370, 227, 400, 258]
Orientation "left"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [220, 161, 250, 194]
Orientation "left"
Location [191, 208, 621, 561]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Signal From\nWorkspace"
Ports [0, 1]
Position [45, 53, 100, 87]
SourceBlock "dspsrcs4/Signal From\nWorkspace"
SourceType "Signal From Workspace"
ShowPortLabels on
X "[1 0 0 1]'"
Ts "8"
nsamps "1"
OutputAfterFinalValue "Setting to zero"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [475, 42, 525, 98]
Orientation "left"
SineType "Sample based"
Amplitude "sqrt(2)"
Samples "4"
SampleTime "1"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [475, 222, 525, 278]
Orientation "left"
SineType "Sample based"
Amplitude "sqrt(2)"
Samples "4"
SampleTime "1"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [50, 230, 110, 260]
Orientation "left"
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Upsample"
Ports [1, 1]
Position [220, 53, 255, 87]
SourceBlock "dspsigops/Upsample"
SourceType "Upsample"
N "8"
phase "0"
ic "0"
mode "Maintain input frame size"
}
Line {
SrcBlock "Signal From\nWorkspace"
SrcPort 1
DstBlock "Lookup Table"
DstPort 1
}
Line {
SrcBlock "Lookup Table"
SrcPort 1
DstBlock "Upsample"
DstPort 1
}
Line {
SrcBlock "Upsample"
SrcPort 1
DstBlock "Discrete Filter"
DstPort 1
}
Line {
SrcBlock "Discrete Filter"
SrcPort 1
Points [50, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 25]
Branch {
Points [0, 65]
DstBlock "Product1"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [-45, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Discrete Filter1"
DstPort 1
}
Line {
SrcBlock "Discrete Filter1"
SrcPort 1
Points [-10, 0]
Branch {
DstBlock "Downsample"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Downsample"
SrcPort 1
DstBlock "Compare\nTo Zero"
DstPort 1
}
Line {
SrcBlock "Compare\nTo Zero"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -