📄 fsk.mdl
字号:
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [700, 135, 790, 165]
Decimation "1"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [340, 83, 370, 107]
ShowName off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [385, 208, 415, 232]
ShowName off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Position [550, 55, 580, 85]
PulseType "Time based"
Period "0.0009"
PulseWidth "50"
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [575, 129, 625, 171]
SourceBlock "dspswit2/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [330, 134, 360, 166]
Location [39, 470, 363, 709]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Signal Builder"
Tag "STV Subsys"
Ports [0, 4]
Position [95, 135, 170, 175]
CopyFcn "sigbuilder_block('copy');"
DeleteFcn "sigbuilder_block('delete');"
ModelCloseFcn "sigbuilder_block('modelClose');"
PreSaveFcn "sigbuilder_block('preSave');"
StartFcn "sigbuilder_block('start');"
StopFcn "sigbuilder_block('stop');"
NameChangeFcn "sigbuilder_block('namechange');"
ClipboardFcn "sigbuilder_block('clipboard');"
OpenFcn "sigbuilder_block('open',[49.5 87 519.75 399.75 "
"]);"
CloseFcn "sigbuilder_block('close');"
TreatAsAtomicUnit off
MaskType "Sigbuilder block"
MaskDescription "Sigbuilder GUI"
MaskInitialization "if ~strcmp(get_param(bdroot(gcb),'SimulationSta"
"tus'),'stopped') tuvar = sigbuilder_block('maskInit'); end"
MaskDisplay "plot(0,0,100,100,[10,10,40,40,10],[80,20,20,80,"
"80],[40,10],[50,50], [40,27,10],[65,72,56],[40,25,25,10],[28,28,43,43]);"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
System {
Name "Signal Builder"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Demux
Name "Demux"
Tag "STV Demux"
Ports [1, 4]
Position [150, 36, 160, 609]
}
Block {
BlockType FromWorkspace
Name "FromWs"
Tag "STV FromWs"
Position [30, 300, 115, 350]
VariableName "tuvar"
SampleTime "0"
SigBuilderData "DataTag0"
}
Block {
BlockType Outport
Name "Signal 1"
Tag "STV Outport"
Position [280, 30, 300, 40]
}
Block {
BlockType Outport
Name "Signal 2"
Tag "STV Outport"
Position [280, 60, 300, 70]
Port "2"
}
Block {
BlockType Outport
Name "Signal 3"
Tag "STV Outport"
Position [280, 90, 300, 100]
Port "3"
}
Block {
BlockType Outport
Name "Signal 4"
Tag "STV Outport"
Position [280, 120, 300, 130]
Port "4"
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [50, 0; 0, -70]
DstBlock "Signal 1"
DstPort 1
}
Line {
SrcBlock "FromWs"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Signal 2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Signal 3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Signal 4"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Signal Builder1"
Tag "STV Subsys"
Ports [0, 3]
Position [95, 205, 170, 245]
CopyFcn "sigbuilder_block('copy');"
DeleteFcn "sigbuilder_block('delete');"
ModelCloseFcn "sigbuilder_block('modelClose');"
PreSaveFcn "sigbuilder_block('preSave');"
StartFcn "sigbuilder_block('start');"
StopFcn "sigbuilder_block('stop');"
NameChangeFcn "sigbuilder_block('namechange');"
ClipboardFcn "sigbuilder_block('clipboard');"
OpenFcn "sigbuilder_block('open',[50 50 520 400 ]);"
CloseFcn "sigbuilder_block('close');"
TreatAsAtomicUnit off
MaskType "Sigbuilder block"
MaskDescription "Sigbuilder GUI"
MaskInitialization "if ~strcmp(get_param(bdroot(gcb),'SimulationSta"
"tus'),'stopped') tuvar = sigbuilder_block('maskInit'); end"
MaskDisplay "plot(0,0,100,100,[10,10,40,40,10],[80,20,20,80,"
"80],[40,10],[50,50], [40,27,10],[65,72,56],[40,25,25,10],[28,28,43,43]);"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
System {
Name "Signal Builder1"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Demux
Name "Demux"
Tag "STV Demux"
Ports [1, 3]
Position [150, 34, 160, 606]
Outputs "3"
}
Block {
BlockType FromWorkspace
Name "FromWs"
Tag "STV FromWs"
Position [30, 300, 115, 350]
VariableName "tuvar"
SampleTime "0"
SigBuilderData "DataTag1"
}
Block {
BlockType Outport
Name "Signal 1"
Tag "STV Outport"
Position [280, 30, 300, 40]
}
Block {
BlockType Outport
Name "Signal 2"
Tag "STV Outport"
Position [280, 60, 300, 70]
Port "2"
}
Block {
BlockType Outport
Name "Signal 3"
Tag "STV Outport"
Position [280, 90, 300, 100]
Port "3"
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [50, 0; 0, -95]
DstBlock "Signal 1"
DstPort 1
}
Line {
SrcBlock "FromWs"
SrcPort 1
Points [5, 0; 0, -5]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Signal 2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Signal 3"
DstPort 1
}
}
}
Block {
BlockType Sin
Name "Sine Wave"
Position [270, 15, 300, 45]
SineType "Time based"
Frequency "10"
SampleTime "1/20000"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [300, 245, 330, 275]
SineType "Time based"
Frequency "10*3.14"
SampleTime "1/20000"
}
Block {
BlockType Sum
Name "Sum"
Ports [4, 1]
Position [230, 118, 250, 182]
ShowName off
Inputs "|++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [480, 179, 500, 231]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [230, 185, 250, 250]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [20, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, -5; 5, 0]
Branch {
Points [0, -60]
DstBlock "1FSK"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -