📄 radar.vee
字号:
(saveFormat "7.0")
(date "Sun 25/Sep/2005 23:00:23 ")
(veerev "7.51.7801.0")
(platform "PC")
(execMode v6)
(filterNAN 0)
(workspaceStackingOrder M)
(sysconfig
(iodevice "newInstrument"
(type GPIB)
(gateway "This host")
(channel 7)
(subchannel 7)
(readTerm "\n")
(fs ",")
(eol "\n")
(multiField dataOnly)
(arrayFormat linear)
(timeout 5)
(byteOrder 0)
(idn "ag54832d")
(ppAddr "GPIB0::7::INSTR")
(ivicomFile "AgilentInfiniium")
(ivicomAddr "GPIB0::7::INSTR")
(eoiEnabled 1)
(model "ag54832d"
(standard 488))))
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(trigMode deg)
(nextID 16)
(popupTitleText "Untitled")
(popupMoveable 1))
(deviceList
(device 0 START25)
(device 1 MATLABSCRIPT
(properties
(name "Chirp Generator")
(matlabexpr 11 "t=10e-6;" "fs=40e+6;" "ts=1/fs;" "fc=9e+6;" "f0=10e+6;"
"B=2e+6;" "ft=0:1/fs:t-1/fs;" "N=length(ft);" "k=B/fs*2*pi/max(ft);"
"y=modulate(ft,fc,fs,\'fm\',k);" "y_fft_result=fft(y);"))
(interface
(output 1
(name "y")
(optional yes))
(output 2
(name "N")
(optional yes))
(output 3
(name "f0")
(optional yes))
(output 4
(name "fs")
(optional yes))
(output 5
(name "B")
(optional yes))
(output 6
(name "ts")
(optional yes))
(output 7
(name "t")
(optional yes))))
(device 3 MATLABSCRIPT
(properties
(name "Chirp IQ demodulation")
(matlabexpr 19 "%---------------------------------------------------" "n=0:N-1;"
"local_oscillator_i=cos(n*f0/fs*2*pi);" "local_oscillator_q=sin(n*f0/fs*2*pi);"
"" "fbb_i=local_oscillator_i.*y;" "fbb_q=local_oscillator_q.*y;" ""
"window=chebwin(51,40);" "[b,a]=fir1(50,2*B/fs,window);" ""
"fbb_i=[fbb_i,zeros(1,25)];" "fbb_q=[fbb_q,zeros(1,25)];" ""
"fbb_i=filter(b,a,fbb_i);" "fbb_q=filter(b,a,fbb_q);" "fbb_i=fbb_i(26:end);"
"fbb_q=fbb_q(26:end);" "fbb=fbb_i+j*fbb_q;"))
(interface
(input 1
(name "y")
(optional yes))
(input 2
(name "N")
(optional yes))
(input 3
(name "f0")
(optional yes))
(input 4
(name "fs")
(optional yes))
(input 5
(name "B")
(optional yes))
(output 1
(name "fbb")
(optional yes))))
(device 6 MATLABSCRIPT
(properties
(name "ideal Wave Generator")
(matlabexpr 20 "t1=100e-6;" "signal=[zeros(1,(t1-2*t)/ts),y,zeros(1,t/ts)];"
"n=0:t1/ts-1;" "local_oscillator_i=cos(n*f0/fs*2*pi);"
"local_oscillator_q=sin(n*f0/fs*2*pi);" "fbb_i=local_oscillator_i.*signal;"
"fbb_q=local_oscillator_q.*signal;" "" "window=chebwin(51,40);"
"[b,a]=fir1(50,2*B/fs,window);" "" "fbb_i=[fbb_i,zeros(1,25)];"
"fbb_q=[fbb_q,zeros(1,25)];" "" "fbb_i=filter(b,a,fbb_i);"
"fbb_q=filter(b,a,fbb_q);" "" "fbb_i=fbb_i(26:end);" "fbb_q=fbb_q(26:end);"
"signal=fbb_i+j*fbb_q;"))
(interface
(input 1
(name "y")
(optional yes))
(input 2
(name "ts")
(optional yes))
(input 3
(name "f0")
(optional yes))
(input 4
(name "fs")
(optional yes))
(input 5
(name "B")
(optional yes))
(input 6
(name "t")
(optional yes))
(output 1
(name "signal")
(optional yes))
(output 2
(name "t1")
(optional yes))))
(device 7 MATLABSCRIPT
(properties
(name "CompCoefficient Generator")
(matlabexpr 11 "M=4096;" "D=B*t;"
"match_filter=ts*fliplr(conj(fbb))*sqrt(D)*2/t;"
"match_filter_fft=fft(match_filter,M);" "figure;" "subplot(2,1,1);"
"plot(real(match_filter_fft));" "title(\'Pulse Comp Coefficient(real)\');"
"subplot(2,1,2);" "plot(imag(match_filter_fft));"
"title(\'Pulse Comp Coefficient(imag)\');"))
(interface
(input 1
(name "B")
(optional yes))
(input 2
(name "t")
(optional yes))
(input 3
(name "fbb")
(optional yes))
(output 1
(name "M")
(optional yes))
(output 2
(name "match_filter_fft")
(optional yes))))
(device 8 MATLABSCRIPT
(properties
(name "Pulse Comp Analysis")
(matlabexpr 14 "signal_fft=fft(signal,M);"
"pc_result_fft=signal_fft.*match_filter_fft;" "pc_result=ifft(pc_result_fft,M);"
"" "figure;" "subplot(2,1,1);" "plot((0:ts:t1-ts),signal);"
"xlabel(\'time(s)\');" "title(\'Demodulation\');" "" "subplot(2,1,2);"
"plot((0:ts:length(signal)*ts-ts),abs(pc_result(1:length(signal))));"
"xlabel(\'time(s)\');" "title(\'Comp Result\');"))
(interface
(input 1
(name "M")
(optional yes))
(input 2
(name "signal")
(optional yes))
(input 3
(name "match_filter_fft")
(optional yes))
(input 4
(name "ts")
(optional yes))
(input 5
(name "t1")
(optional yes))))
(device 9 CONFIRM25
(properties
(enterButton 0)
(escapeButton 0)
(isAssigned2FKey None))
(interface
(output 1
(name "Go")
(lock name constraints)))
(implementation))
(device 10 START25)
(device 11 MATLABSCRIPT
(properties
(matlabexpr 113 "%--------------------------------------------------" "t=10e-6;"
"fs=40e+6;" "ts=1/fs;" "fc=9e+6;" "f0=10e+6;" "B=10e+6;" "ft=0:1/fs:t-1/fs;"
"N=length(ft);" "k=B/fs*2*pi/max(ft);" "y0=modulate(ft,fc,fs,\'fm\',k);"
"y_fft_result=fft(y0);" "" "t2=0:1/fs:t-1/fs;" "n2=length(t2);"
"rand(\'state\',0);" "u=rand(1,n2);" "x=sqrt(2*log2(1./u))*2;" "" "y=y0.*x;" ""
"figure;" "specgram(y0,256,fs,kaiser(64,1),63);" "" "figure;" "subplot(2,1,1);"
"plot(y);" "subplot(2,1,2);"
"plot((0:fs/N:fs/2-fs/N),abs(y_fft_result(1:N/2)));" ""
"%---------------------------------------------------" "n=0:N-1;"
"local_oscillator_i=cos(n*f0/fs*2*pi);" "local_oscillator_q=sin(n*f0/fs*2*pi);"
"" "fbb_i=local_oscillator_i.*y;" "fbb_q=local_oscillator_q.*y;" ""
"window=chebwin(51,40);" "[b,a]=fir1(50,2*B/fs,window);" ""
"fbb_i=[fbb_i,zeros(1,25)];" "fbb_q=[fbb_q,zeros(1,25)];" ""
"fbb_i=filter(b,a,fbb_i);" "fbb_q=filter(b,a,fbb_q);" "fbb_i=fbb_i(26:end);"
"fbb_q=fbb_q(26:end);" "fbb=fbb_i+j*fbb_q;" "" "figure;" "subplot(2,1,1);"
"plot(fbb_i);" "" "subplot(2,1,2);" "plot(fbb_q);"
"%--------------------------------------------------" "M=4096;" "D=B*t;"
"match_filter=ts*fliplr(conj(fbb))*sqrt(D)*2/t;"
"match_filter_fft=fft(match_filter,M);" "figure;" "subplot(2,1,1);"
"plot(real(match_filter_fft));" "title(\'Pulse Comp Coefficient(real)\');"
"subplot(2,1,2);" "plot(imag(match_filter_fft));"
"title(\'Pulse Comp Coefficient(imag)\');" ""
"%-----------------------------------------------------" "t1=100e-6;"
"signal=[zeros(1,(t1-2*t)/ts),y0,zeros(1,t/ts)];" "n=0:t1/ts-1;"
"local_oscillator_i=cos(n*f0/fs*2*pi);" "local_oscillator_q=sin(n*f0/fs*2*pi);"
"fbb_i=local_oscillator_i.*signal;" "fbb_q=local_oscillator_q.*signal;" ""
"window=chebwin(51,40);" "[b,a]=fir1(50,2*B/fs,window);" ""
"fbb_i=[fbb_i,zeros(1,25)];" "fbb_q=[fbb_q,zeros(1,25)];" ""
"fbb_i=filter(b,a,fbb_i);" "fbb_q=filter(b,a,fbb_q);" "" "fbb_i=fbb_i(26:end);"
"fbb_q=fbb_q(26:end);" "signal=fbb_i+j*fbb_q;" "" "figure;" "subplot(2,1,1);"
"plot(fbb_i);" "" "subplot(2,1,2);" "plot(fbb_q);" ""
"%------------------------------------------------------"
"signal_fft=fft(signal,M);" "pc_result_fft=signal_fft.*match_filter_fft;"
"pc_result=ifft(pc_result_fft,M);" "" "figure;" "subplot(2,1,1);"
"plot((0:ts:t1-ts),signal);" "xlabel(\'time(s)\');" "title(\'Demodulation\');"
"" "subplot(2,1,2);"
"plot((0:ts:length(signal)*ts-ts),abs(pc_result(1:length(signal))));"
"xlabel(\'time(s)\');" "title(\'Comp Result\');")))
(device 13 START25)
(device 14 MATLABSCRIPT
(properties
(matlabexpr 27 "t=10e-6;" "fs=100e+6;" "ts=1/fs;" "fc=20e+6;" "f0=30e+6;"
"B=20e+6;" "ft=0:1/fs:t-1/fs;" "N=length(ft);" "k=B/fs*2*pi/max(ft);"
"y0=modulate(ft,fc,fs,\'fm\',k);" "y_fft_result=fft(y0);" ""
"t2=0:1/fs:t-1/fs+2000/fs;" "n2=length(t2);" "rand(\'state\',0);"
"u=rand(1,n2);" "x=sqrt(2*log2(1./u))*2;" "" "%y=y0.*x;" ""
"signal=[zeros(1,1000),y0,zeros(1,1000)];" "y=signal;" "" "figure;"
"specgram(y,4096,fs,hann(512),511);" "%figure;" "%plot(y);")))
(device 15 CONFIRM25
(properties
(enterButton 0)
(escapeButton 0)
(isAssigned2FKey None))
(interface
(output 1
(name "Go")
(lock name constraints)))
(implementation))
(configuration
(connect D0:0 D1:0)
(connect D1:0 D2:0)
(connect D1:1 D2:1)
(connect D1:2 D2:2)
(connect D1:3 D2:3)
(connect D1:4 D2:4)
(connect D1:5 D2:5)
(connect D4:0 D3:0)
(connect D1:1 D3:1)
(connect D1:6 D3:2)
(connect D1:3 D3:3)
(connect D1:4 D3:4)
(connect D1:5 D3:5)
(connect D1:7 D3:6)
(connect D2:0 D4:0)
(connect D1:5 D4:1)
(connect D1:7 D4:2)
(connect D2:1 D4:3)
(connect D3:0 D5:0)
(connect D4:1 D5:1)
(connect D3:1 D5:2)
(connect D4:2 D5:3)
(connect D1:6 D5:4)
(connect D3:2 D5:5)
(connect D5:0 D6:0)
(connect D7:0 D8:0)
(connect D9:0 D10:0)
(connect D10:0 D11:0)))
(contextCarrier
(wndRestoredOrigin 2 2)
(wndRestoredExtent 611 391)
(wndState max)
(active detail)
(detail
(extent 839 619)
(anchorPt -1431 178)
(configuration
(devCarrierFor 0
(active open)
(icon)
(open
(extent 47 22))
(title off)
(pinCenter 10 40))
(devCarrierFor 1
(active open)
(icon
(extent 96 0))
(open
(extent 204 236))
(terminals on)
(pinCenter 10 220))
(devCarrierFor 3
(active open)
(icon
(extent 136 0))
(open
(extent 254 286))
(terminals on)
(pinCenter 600 220))
(devCarrierFor 6
(active open)
(icon
(extent 129 0))
(open
(extent 274 236))
(terminals on)
(pinCenter 120 580))
(devCarrierFor 7
(active open)
(icon
(extent 165 0))
(open
(extent 464 146))
(terminals on)
(pinCenter 135 930))
(devCarrierFor 8
(active open)
(icon
(extent 129 0))
(open
(extent 464 186))
(terminals on)
(pinCenter 885 910))
(devCarrierFor 9
(active open)
(icon)
(open
(extent 47 22))
(title off)
(pinCenter 790 1050))
(devCarrierFor 10
(active open)
(icon)
(open
(extent 47 22))
(title off)
(pinCenter 1140 -150))
(devCarrierFor 11
(active open)
(icon)
(open
(extent 494 746))
(terminals on)
(pinCenter 1140 290))
(devCarrierFor 13
(active open)
(icon)
(open
(extent 47 22))
(title off)
(pinCenter 1680 -140))
(devCarrierFor 14
(active open)
(icon)
(open
(extent 344 426))
(terminals on)
(pinCenter 1690 130))
(devCarrierFor 15
(active open)
(icon)
(open
(extent 47 22))
(title off)
(pinCenter 1680 400))
(connect D0:0 D1:0
(points 2 10 53 10 81))
(connect D1:0 D2:0
(points 6 10 340 10 420 780 420 780 40 600 40 600 56))
(connect D1:1 D2:1
(points 4 144 130 220 130 220 120 440 120))
(connect D1:2 D2:2
(points 4 144 160 160 160 160 170 440 170))
(connect D1:3 D2:3
(points 4 144 190 200 190 200 220 440 220))
(connect D1:4 D2:4
(points 4 144 220 190 220 190 270 440 270))
(connect D1:5 D2:5
(points 6 144 250 180 250 180 280 210 280 210 320 440 320))
(connect D4:0 D3:0
(points 8 170 1005 170 1030 -160 1030 -160 420 0 420 0 430 130 430 130 441))
(connect D1:1 D3:1
(points 8 144 130 220 130 220 410 -50 410 -50 470 -60 470 -60 480 -50 480))
(connect D1:6 D3:2
(points 8 144 280 150 280 150 300 170 300 170 390 -100 390 -100 520 -50 520))
(connect D1:3 D3:3
(points 6 144 190 200 190 200 400 -90 400 -90 560 -50 560))
(connect D1:4 D3:4
(points 6 144 220 190 220 190 380 -60 380 -60 600 -50 600))
(connect D1:5 D3:5
(points 6 144 250 180 250 180 370 -80 370 -80 640 -50 640))
(connect D1:7 D3:6
(points 6 144 310 160 310 160 360 -70 360 -70 680 -50 680))
(connect D2:0 D4:0
(points 4 600 365 600 740 170 740 170 836))
(connect D1:5 D4:1
(points 6 144 250 180 250 180 370 -140 370 -140 880 -130 880))
(connect D1:7 D4:2
(points 6 144 310 160 310 160 360 -160 360 -160 930 -130 930))
(connect D2:1 D4:3
(points 6 759 220 790 220 790 730 -150 730 -150 980 -130 980))
(connect D3:0 D5:0
(points 4 130 700 130 720 850 720 850 796))
(connect D4:1 D5:1
(points 6 469 890 480 890 480 880 500 880 500 850 550 850))
(connect D3:1 D5:2
(points 4 309 520 530 520 530 880 550 880))
(connect D4:2 D5:3
(points 4 469 970 490 970 490 910 550 910))
(connect D1:6 D5:4
(points 8 144 280 150 280 150 300 170 300 170 390 520 390 520 940 550 940))
(connect D3:2 D5:5
(points 4 309 640 510 640 510 970 550 970))
(connect D5:0 D6:0
(points 4 850 1005 850 1030 790 1030 790 1036))
(connect D7:0 D8:0
(points 2 1140 -137 1140 -104))
(connect D9:0 D10:0
(points 4 1680 -127 1680 -120 1690 -120 1690 -104))
(connect D10:0 D11:0
(points 4 1690 345 1690 370 1680 370 1680 386)))
(stackingOrder 1 6 5 0 3 4 2 7 8 9 11 10))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -