?? frequency_test.mdl
字號(hào):
TimeRange "450"
YMin "0.35"
YMax "0.5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [690, 169, 720, 201]
Floating off
Location [109, 118, 851, 357]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "100"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [2]
Position [640, 311, 670, 344]
Floating off
Location [5, 117, 1033, 357]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "625 "
YMin "-1~-1"
YMax "1~1"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [290, 36, 340, 84]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType SubSystem
Name "VCO"
Ports [1, 1]
Position [310, 307, 360, 353]
AncestorBlock "commsynccomp2/Continuous-Time\nVCO"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Output amplitude (V):|Quiescent frequency (Hz):"
"|Input sensitivity (Hz/V):|Initial phase (rad):|Sampling frequency (Hz)"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Ac=@1;Fc=@2;Kc=@3;Ph=@4;Fs=@5;"
MaskInitialization "if ((length(Ac)~=1) | (length(Fc)~=1) | (length"
"(Ph)~=1) | (length(Kc)~=1) )error('Mask parameters must be scalar values.');e"
"nd;\npi2=2*pi;"
MaskDisplay "disp('VCO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|-2|1|0|100"
MaskTabNameString ",,,,"
System {
Name "VCO"
Location [-25, 271, 1243, 1166]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 30, 35, 50]
ShowName off
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Carrier\nfrequency1"
Position [230, 71, 265, 99]
ShowName off
Value "Fc/Fs*pi*2"
}
Block {
BlockType Reference
Name "Check Signal\nAttributes"
Ports [1, 1]
Position [65, 19, 135, 61]
ShowName off
SourceBlock "dspsigattribs/Check Signal\nAttributes"
SourceType "Check Signal Attributes"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SigAttribCheckMethod "Does not match attributes exactly"
Complexity "Ignore"
Frame "Sample-based"
DimsCheckMethod "Is..."
Dimensions "Scalar (1-D or 2-D)"
DatatypeCheckMethod "Is..."
DatatypeGeneral "Floating-point"
DtypeFloatSpecific "Double precision"
DtypeFixedSpecific "Any fixed-point"
DtypeIntSpecific "Any integer"
SampleMode "Ignore"
}
Block {
BlockType Reference
Name "Convert 2-D to 1-D"
Ports [1, 1]
Position [160, 23, 205, 57]
ShowName off
SourceBlock "dspsigattribs/Convert 2-D to 1-D"
SourceType "Convert 2-D to 1-D"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [460, 49, 500, 81]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail on
dif_ic_for_ch off
dif_ic_for_dly off
ic "Ph"
reset_popup "None"
}
Block {
BlockType Reference
Name "Inherit Shape"
Ports [2, 1]
Position [855, 38, 945, 87]
SourceBlock "commblksprivate/Inherit Shape"
SourceType "Inherit Shape"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [390, 47, 420, 78]
ShowName off
Operator "mod"
}
Block {
BlockType Constant
Name "Modulo 2*pi"
Position [330, 80, 360, 110]
ShowName off
Value "2*pi"
OutDataTypeMode "Inherit via back propagation"
SampleTime "1/Fs"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [785, 33, 815, 62]
}
Block {
BlockType Gain
Name "Sensitivity"
Position [235, 26, 275, 54]
ShowName off
Gain "Kc/Fs*pi*2"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [310, 32, 325, 78]
ShowName off
Inputs "+++"
CollapseMode "All dimensions"
}
Block {
BlockType Fcn
Name "sin"
Position [600, 25, 725, 55]
ShowName off
Expr "Ac*cos(u[1]+Ph) "
}
Block {
BlockType Fcn
Name "sin1"
Position [600, 75, 725, 105]
ShowName off
Expr "Ac*sin(u[1]+Ph) "
}
Block {
BlockType Outport
Name "out_1"
Position [1005, 40, 1025, 60]
ShowName off
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Check Signal\nAttributes"
SrcPort 1
DstBlock "Convert 2-D to 1-D"
DstPort 1
}
Line {
SrcBlock "Convert 2-D to 1-D"
SrcPort 1
DstBlock "Sensitivity"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Check Signal\nAttributes"
DstPort 1
}
Branch {
Points [0, 110; 795, 0]
DstBlock "Inherit Shape"
DstPort 2
}
}
Line {
SrcBlock "Sensitivity"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "sin"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "sin1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Carrier\nfrequency1"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Modulo 2*pi"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Delay"
DstPort 1
}
Line {
SrcBlock "Delay"
SrcPort 1
Points [10, 0]
Branch {
Points [30, 0]
Branch {
Points [0, -25]
DstBlock "sin"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "sin1"
DstPort 1
}
}
Branch {
Points [0, 60; -220, 0]
DstBlock "Sum1"
DstPort 3
}
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Inherit Shape"
DstPort 1
}
Line {
SrcBlock "Inherit Shape"
SrcPort 1
Points [20, 0; 0, -15]
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType "M-S-Function"
Name "frequency detector"
Ports [1, 1]
Position [540, 52, 620, 88]
FunctionName "frequencydetector"
Parameters "1/100,'8PSK'"
MaskDisplay "disp('Frequency\\ndetector')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "BFSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "BFSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "VCO"
SrcPort 1
Points [10, 0; 0, -5]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "frequency detector"
DstPort 1
}
Line {
SrcBlock "frequency detector"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Carrier LPF"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Carrier LPF"
SrcPort 1
Points [5, 0; 0, 55; -240, 0]
Branch {
Points [0, 120]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [-370, 0; 0, 20]
DstBlock "Manual Switch"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [0, 0]
DstBlock "Scope5"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [0, 0]
DstBlock "Scope5"
DstPort 2
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [35, 0; 0, 175]
DstBlock "VCO"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Manual Switch"
DstPort 2
}
Annotation {
Position [575, 324]
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -