📄 bluetooth_voice.mdl
字号:
ShowName off
Gain "32768"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Rounding
Name "Rounding\nFunction"
Position [185, 53, 220, 87]
ShowName off
Operator "round"
}
Block {
BlockType SubSystem
Name "Set any 0's to 1's"
Ports [1, 1]
Position [495, 47, 560, 93]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
Port {
PortNumber 1
Name "y"
PropagatedSignals "y"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Set any 0's to 1's"
Location [202, 130, 679, 383]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 153, 55, 167]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType If
Name "If"
Ports [1, 2]
Position [90, 25, 170, 65]
NumInputs "1"
IfExpression "u1 ==0"
ShowElse on
}
Block {
BlockType Merge
Name "Merge"
Ports [2, 1]
Position [325, 130, 365, 170]
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
Port {
PortNumber 1
Name "y"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "Pass through"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [210, 140, 290, 180]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Pass through"
Location [342, 471, 840, 771]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "held"
ActionType "else"
}
Block {
BlockType Outport
Name "Out1=In1"
Position [325, 78, 355, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1=In1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Set to 1"
Ports [0, 1, 0, 0, 0, 0, 0, 1]
Position [210, 50, 290, 90]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Set to 1"
Location [410, 394, 908, 694]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "held"
ActionType "then"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [70, 69, 105, 101]
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "1"
InterpretAs1D on
SampleMode "Discrete"
Ts "1/64000"
FramebasedOutput off
}
Block {
BlockType Outport
Name "1"
Position [325, 78, 355, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [390, 143, 420, 157]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "If"
SrcPort 1
DstBlock "Set to 1"
DstPort ifaction
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Pass through"
DstPort 1
}
Branch {
DstBlock "If"
DstPort 1
}
}
Line {
SrcBlock "If"
SrcPort 2
Points [5, 0; 0, 70]
DstBlock "Pass through"
DstPort ifaction
}
Line {
SrcBlock "Set to 1"
SrcPort 1
Points [15, 0]
DstBlock "Merge"
DstPort 1
}
Line {
SrcBlock "Pass through"
SrcPort 1
DstBlock "Merge"
DstPort 2
}
Line {
Name "y"
Labels [0, 0]
SrcBlock "Merge"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Signum
Name "Sign"
Position [355, 55, 385, 85]
Port {
PortNumber 1
Name "sign(u-accum(n))"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [240, 60, 260, 80]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "u-accum(n)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "Update accum"
Ports [3, 1]
Position [385, 503, 505, 567]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
Port {
PortNumber 1
Name "accum(n+1)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Update accum"
Location [195, 232, 830, 596]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "stepsize(n+1)"
Position [70, 148, 100, 162]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "y"
Position [70, 213, 100, 227]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "accum(n)"
Position [70, 262, 100, 278]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Gain
Name "Gain"
Position [300, 147, 415, 183]
ShowName off
Gain "accum_decay"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [135, 145, 155, 180]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "y*stepsize"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Saturate
Name "Saturation"
Position [460, 150, 490, 180]
UpperLimit "pos_accum_max"
LowerLimit "neg_accum_max"
LinearizeAsGain on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [240, 155, 260, 175]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "accum(n+1)"
Position [525, 158, 555, 172]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
Name "y*stepsize"
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "stepsize(n+1)"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "y"
SrcPort 1
Points [15, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "accum(n)"
SrcPort 1
Points [145, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "accum(n+1)"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Update runner"
Ports [2, 1]
Position [380, 169, 495, 231]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
Port {
PortNumber 1
Name "runner(n+1)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Update runner"
Location [316, 312, 858, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "y"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "runner(n)"
Position [40, 123, 70, 137]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Bitwise\nLogical Operator"
Ports [1, 1]
P
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -