Labwindows/CVI+Matlab建立高頻衰減模型
根據(jù)其分布形狀,選取三次多項(xiàng)式作為擬合曲線模型函數(shù):
具體實(shí)現(xiàn)步驟:
(1)將f=[0.03,0.1,0.5,1.0,1.5,2.0,2.5,2.7],p=[0.948,1.934,6.995,12.131,13.294,14.269,14.518,14.720]寫入Matlab命令窗口;
(2)輸入命令函數(shù)cftool,回車彈出“Curve Fitting
Tool”窗口,如圖3(a)所示;
(3)點(diǎn)擊按鈕“Data”設(shè)置擬合數(shù)據(jù)分別為f,p,如圖3(b)所示;
(4)點(diǎn)擊按鈕“Fitting”,彈出窗口“Fitting”,選取擬合函數(shù)“cubic polynomial”,點(diǎn)擊“Apply”即可得到擬合數(shù)據(jù)模型,如圖3(c)所示。
3 LabWindows/CVI實(shí)現(xiàn)軟件補(bǔ)償
根據(jù)依據(jù)最小二乘原理擬合得到的高頻通道功率衰減模型,采用LabWindows/CVI編程對(duì)高頻測(cè)試儀器進(jìn)行控制,實(shí)現(xiàn)信號(hào)功率的補(bǔ)償,其面板設(shè)計(jì)如圖4所示,軟件測(cè)試算法流程如圖5所示。
評(píng)論