📄 sparam_2.mdl
字号:
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Terminator
Name "Terminator"
Position [160, 305, 180, 325]
Orientation "left"
BackgroundColor "magenta"
}
Block {
BlockType TransferFcn
Name "s11"
Position [479, 220, 581, 260]
Orientation "down"
BackgroundColor "cyan"
NamePlacement "alternate"
Numerator "s904(1,1).num"
Denominator "s904(1,1).den"
}
Block {
BlockType TransferFcn
Name "s11_in"
Position [194, 220, 296, 260]
Orientation "down"
BackgroundColor "green"
NamePlacement "alternate"
Numerator "ni(1,1).p"
Denominator "di(1,1).p"
}
Block {
BlockType TransferFcn
Name "s11_out"
Position [789, 220, 891, 260]
Orientation "down"
BackgroundColor "orange"
NamePlacement "alternate"
Numerator "no(1,1).p"
Denominator "do(1,1).p"
}
Block {
BlockType TransferFcn
Name "s12"
Position [565, 296, 660, 334]
Orientation "left"
BackgroundColor "cyan"
Numerator "s904(1,2).num"
Denominator "s904(1,2).den"
}
Block {
BlockType TransferFcn
Name "s12_in"
Position [270, 296, 365, 334]
Orientation "left"
BackgroundColor "green"
Numerator "ni(1,2).p"
Denominator "di(1,2).p"
}
Block {
BlockType TransferFcn
Name "s12_out"
Position [865, 296, 960, 334]
Orientation "left"
BackgroundColor "orange"
Numerator "no(1,2).p"
Denominator "do(1,2).p"
}
Block {
BlockType TransferFcn
Name "s21"
Position [570, 136, 665, 174]
BackgroundColor "cyan"
Numerator "s904(2,1).num"
Denominator "s904(2,1).den"
}
Block {
BlockType TransferFcn
Name "s21_in"
Position [270, 136, 365, 174]
BackgroundColor "green"
Numerator "ni(2,1).p"
Denominator "di(2,1).p"
}
Block {
BlockType TransferFcn
Name "s21_out"
Position [865, 136, 960, 174]
BackgroundColor "orange"
Numerator "no(2,1).p"
Denominator "do(2,1).p"
}
Block {
BlockType TransferFcn
Name "s22"
Position [652, 220, 748, 260]
Orientation "up"
BackgroundColor "cyan"
NamePlacement "alternate"
Numerator "s904(2,2).num"
Denominator "s904(2,2).den"
}
Block {
BlockType TransferFcn
Name "s22_in"
Position [357, 220, 453, 260]
Orientation "up"
BackgroundColor "green"
NamePlacement "alternate"
Numerator "ni(2,2).p"
Denominator "di(2,2).p"
}
Block {
BlockType TransferFcn
Name "s22_out"
Position [952, 220, 1048, 260]
Orientation "up"
BackgroundColor "orange"
NamePlacement "alternate"
Numerator "no(2,2).p"
Denominator "do(2,2).p"
}
Line {
SrcBlock "s22"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "s21"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "s12"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "s11"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
Name "a1"
Labels [0, 0]
SrcBlock "Base Band Transfer Function1"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "s21_in"
DstPort 1
}
Branch {
DstBlock "s11_in"
DstPort 1
}
}
Branch {
Points [0, -80; -195, 0]
DstBlock "Base Band Transfer Function1"
DstPort 1
}
}
Line {
SrcBlock "s21_in"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [110, 0]
Branch {
DstBlock "s21"
DstPort 1
}
Branch {
DstBlock "s11"
DstPort 1
}
}
Line {
SrcBlock "s22_in"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "s11_in"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "s12_in"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
Name "b1"
Labels [0, 0]
SrcBlock "Sum2"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Line {
Name "\n"
Labels [0, 0]
SrcBlock "Sum1"
SrcPort 1
Points [-110, 0]
Branch {
DstBlock "s12_in"
DstPort 1
}
Branch {
DstBlock "s22_in"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [125, 0]
Branch {
DstBlock "s21_out"
DstPort 1
}
Branch {
DstBlock "s11_out"
DstPort 1
}
}
Line {
SrcBlock "s21_out"
SrcPort 1
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "s22_out"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "s11_out"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "s12_out"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [-125, 0; 0, 0]
Branch {
DstBlock "s12"
DstPort 1
}
Branch {
DstBlock "s22"
DstPort 1
}
}
Line {
Name "a2"
Labels [0, 0]
SrcBlock "Ground"
SrcPort 1
Points [-20, 0]
Branch {
DstBlock "s12_out"
DstPort 1
}
Branch {
DstBlock "s22_out"
DstPort 1
}
}
Line {
Name "b2"
Labels [0, 0]
SrcBlock "Sum5"
SrcPort 1
Points [20, 0; 0, -100; -1010, 0; 0, 110]
DstBlock "Base Band Transfer Function1"
DstPort 2
}
Annotation {
Name "Note: b1/a1 = s11 of entire network"
Position [63, 287]
HorizontalAlignment "left"
}
Annotation {
Name "Input Match"
Position [322, 108]
BackgroundColor "green"
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Active Device"
Position [619, 108]
BackgroundColor "cyan"
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Output Match"
Position [915, 107]
BackgroundColor "orange"
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "This model uses the input and output matching n"
"etwork models combined with the transistor model \nto form a complete S-param"
"eter description of a small signal RF Amplifier. The 20 dB gain at 145 \nMHz"
" proves the model is valid. (note scaling of MHz to kHz)"
Position [194, 387]
HorizontalAlignment "left"
FontName "Arial"
FontSize 16
FontWeight "bold"
}
}
}
MatData {
NumRecords 4
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_2"
created "30-Aug-2005 15:50:08"
isLibrary 0
firstTarget 9
sfVersion 61014000
}
chart {
id 2
name "Base Band Transfer Function1/Transfer Function/Embedded\n"
"MATLAB Function"
windowPosition [326.813 284.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 1
disableImplicitCasting 1
eml {
name "unwrapper"
}
}
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 = unwrapper(u)\n"
"% y = unwrapper(u)\n"
"% RAB\n"
"\n"
"y = zeros(size(u)); % establish size\n"
"y = unwrap(fftshift(u),0.8*pi); % need to deal with the shi"
"ft before unwrap\n"
"% pin \"dc\" to be zero phase shift and reintroduce the \"s"
"hift\" for display\n"
"y = ifftshift(y-y(length(y)/2));\n"
"\n"
""
editorLayout "100 M4x1[146 214 671 364]"
}
}
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 "Base Band Transfer Function1/Transfer Function/Embedded\n"
"MATLAB Function"
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 + -