📄 sparam_amp_rab.mdl
字号:
SrcBlock "FFT1"
SrcPort 1
DstBlock "Downsample2"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Filter2"
DstPort 1
}
Line {
SrcBlock "Reference"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Response"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 95]
DstBlock "Probe for a complex signal"
DstPort 1
}
Branch {
DstBlock "Buffer1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "TF Angle"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Phase Unwrap"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Switch1"
DstPort 3
}
}
Line {
SrcBlock "Probe for a complex signal"
SrcPort 1
DstBlock "Rate Transition"
DstPort 1
}
Line {
SrcBlock "Real Range"
SrcPort 1
Points [30, 0; 0, -25]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Complex Range"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "Switch"
DstPort 1
}
Annotation {
Name "Select alias free data."
Position [482, 207]
}
Annotation {
Name "Single Pole LPF for spectral averaging."
Position [715, 29]
}
}
}
Block {
BlockType Reference
Name "White Noise"
Ports [0, 1]
Position [25, 46, 60, 84]
UserDataPersistent on
UserData "DataTag4"
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "dspsrcs4/Random\nSource"
SourceType "Random Source"
SrcType "Gaussian"
NormMethod "Ziggurat"
CltLength "12"
MinVal "-1"
MaxVal "1"
MeanVal "0"
VarVal "1"
RepMode "Not repeatable"
rawSeed "1"
IsInherit off
SampMode "Discrete"
SampTime "2e-9"
SampFrame "256"
DataType "Double"
OutComplex "Complex"
}
Block {
BlockType SubSystem
Name "aSubsystem"
Ports []
Position [253, 35, 549, 139]
BackgroundColor "[1.000000, 1.000000, 0.549020]"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "aSubsystem"
Location [463, 581, 676, 663]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Line {
LineType "Connection"
SrcBlock "Input Port"
SrcPort RConn1
DstBlock "General Amplifier"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "General Amplifier"
SrcPort RConn1
DstBlock "Output Port"
DstPort LConn1
}
Line {
SrcBlock "Output Port"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Branch {
Points [0, 160]
DstBlock "Transfer Function "
DstPort 2
}
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Input Port"
DstPort 1
}
Branch {
Points [0, 100; 370, 0]
Branch {
Points [0, -80]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Branch {
DstBlock "Transfer Function "
DstPort 1
}
}
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Spectrum"
DstPort 1
}
Line {
SrcBlock "White Noise"
SrcPort 1
DstBlock "Manual Switch"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Slider\nGain"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [85, 0; 0, -70]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Slider\nGain"
SrcPort 1
Points [0, -20]
DstBlock "Manual Switch"
DstPort 2
}
Line {
SrcBlock "Transfer Function "
SrcPort 1
DstBlock "Complex Filter Magnitude in dB"
DstPort 1
}
Line {
SrcBlock "Transfer Function "
SrcPort 2
DstBlock "Complex Filter Phase in Degrees"
DstPort 1
}
Annotation {
Name "AMP Data File for Amplifiers "
Position [413, 20]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Center Frequency: 2.1GHz"
Position [413, 157]
FontName "Arial"
FontSize 12
FontWeight "bold"
FontAngle "italic"
}
Annotation {
Name "Up for xfer function.\nDown for Two Tone Test"
Position [165, 44]
}
}
}
MatData {
NumRecords 5
DataRecord {
Tag DataTag4
Data " %)30 . V 8 ( @ % "
"\" $ ! 0 % 0 \"0 $ 2 4V5E9 4V5E9$9L86< "
" #@ #@ & \" 0 !0 @ ! !0 $ $ 4"
" X.3$R.0 X ! !@ @ $ 4 ( 0 T ! "
" ! - 1&].;W13879E4V5E9 "
}
DataRecord {
Tag DataTag3
Data " %)30 . : 8 ( 0 % "
"\" $ ! 0 . . 8 ( ! % \" $ "
"& 0 0 !@ %=I;F1O=P "
}
DataRecord {
Tag DataTag2
Data " %)30 . : 8 ( 0 % "
"\" $ ! 0 . . 8 ( ! % \" $ "
"& 0 0 !@ %=I;F1O=P "
}
DataRecord {
Tag DataTag1
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"# 0 0 , 1D94 "
}
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"# 0 0 , 1D94 "
}
}
# Finite State Machines
#
# Stateflow Version 6.1 (R14SP1) dated Sep 7 2004, 18:52:26
#
#
Stateflow {
machine {
id 1
name "sparam_amp_rab"
created "16-Jan-2006 19:12:13"
isLibrary 0
firstTarget 9
sfVersion 61014000
}
chart {
id 2
name "Transfer Function /Phase Unwrap/Embedded\n"
"MATLAB Function1"
windowPosition [371.813 239.45 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1280 1024 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 5
firstJunction 4
viewObj 2
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 6
chartFileNumber 4
disableImplicitCasting 1
eml {
name "center_sub"
}
}
state {
id 3
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 2
treeNode [2 0 0 0]
superState SUBCHART
subviewer 2
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function y = center_sub(u)\n"
"% Set Phase to zero at DC. \n"
"y=zeros(size(u));\n"
"[r,c]=size(u);\n"
"p=ceil(r/2);\n"
"for k=1:c\n"
" y(:,k) = u(:,k)-u(p,k);\n"
"end;"
editorLayout "100 M4x1[225 225 640 512]"
}
}
junction {
id 4
position [23.5747 49.5747 7]
chart 2
linkNode [2 0 0]
subviewer 2
type CONNECTIVE_JUNCTION
}
transition {
id 5
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 4
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 2
linkNode [2 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 2
drawStyle SMART
}
data {
id 6
name "u"
linkNode [2 0 7]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
complexity SF_COMPLEX_INHERITED
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
firstIndex "1"
}
}
}
data {
id 7
name "y"
linkNode [2 6 0]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
complexity SF_COMPLEX_INHERITED
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
firstIndex "1"
}
}
}
instance {
id 8
name "Transfer Function /Phase Unwrap/Embedded\n"
"MATLAB Function1"
machine 1
chart 2
}
target {
id 9
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -