新聞中心

EEPW首頁 > 測試測量 > 設計應用 > 2602型數(shù)字源表測試腳本及兩個典型命令

2602型數(shù)字源表測試腳本及兩個典型命令

作者: 時間:2017-02-06 來源:網(wǎng)絡 收藏

IOUT1.source.output = IOUT1.OUTPUT_ON --Turn ON SMU outputs
iout1 = {} --Declare table to hold measurements at output IOUT1; table index begins with 1

for j = 0, MaxCode do --j is the code applied to the digital inputs
DIO.writeport(j) --Apply digital inputs
delay(0.001) --Allow 1ms settling time
iout1[j+1] = -IOUT1.measure.i() --Minus sign corrects for polarity of measurements
end –for

IOUT1.source.output = IOUT1.OUTPUT_OFF --Turn OFF outputs of all SMUs

一旦測量完成,節(jié)點1測試腳本處理器將執(zhí)行所有計算,并檢測通過/失效狀態(tài)數(shù)據(jù)。腳本語言擁有一個廣泛的公式庫,它允許TSP執(zhí)行復雜的數(shù)據(jù)計算,而且不需要向主機控制器傳送數(shù)據(jù)進行處理。這個完整的示例程序說明2602型數(shù)字源表如何執(zhí)行線性回歸計算。

--Compute maximum integral nonlinearity(INL)
--Check for monotonicity; Compute maximum differential nonlinearity(DNL)
--Slope_bf and intercept_bf are the slope and intercept of the best-fit straight line
inlmax_iout1 = 0
dnlmax_iout1 = 0
mono_iout1 = “Monotonic”
for j = 0, MaxCode do
inl_iout1 = math.abs(iout1[j+1]-(slope_bf * j + intercept_bf)) --Calcs for IOUT1
if inl_iout1 > inlmax_iout1 then
inlmax_iout1 = inl_iout1
end --if
if j > 0 then
--Test for monotonicity
diff_iout1 = iout1[j] – iout1[j-1]
if diff_iout1 < 0 then
mono_iout1 = “NON-Monotonic”
end --if
--Compute dnl and test for max.
dnl_iout1 = math.abs(diff_iout1 – Lsb)
if dnl_iout1 > dnlmax_iout1 then
dnlmax_iout1 = dnl_iout1
end –if
end --if
end --for
inl_iout1_lsb = inlmax_iout1 / Lsb --Express INL and DNL in terms of nominal LSB
dnl_iout1_lsb = dnlmax_iout1 / Lsb

一旦計算出各種DAC參數(shù),TSP將檢測數(shù)值并確定器件的通過/失效狀態(tài)。然后,它通過向節(jié)點1 DIO端口寫入數(shù)字位模式,向器件機械手發(fā)送正確的分揀命令。

if PartStatus =”GOOD” then
DIO.writeport(GoodBitPattern) --Send “good part” bit pattern to component handler
else
DIO.writeport(BadBitPattern) --Send “bad part” bit pattern to component handler end –if

由于所有測試數(shù)據(jù)都要經(jīng)過TSP的處理和評估,因此不需要向主機控制器發(fā)送所有數(shù)據(jù)。不過,當需要SPC或者滿足其他數(shù)據(jù)記錄或保持記錄要求時,這很容易完成。print函數(shù)向2602型數(shù)字源表輸出隊列寫入指定參數(shù),主機控制器可以上載這些參數(shù)。如果需要,可以在儀器前部面板顯示器上可以顯示數(shù)據(jù)和/或測試結(jié)果。此外,還可以使用標準的“C”格式化字符串,對數(shù)據(jù)進行格式化。

--Send the monotonicity results and max INL and DNL values measured at IOUT1
print(string.format(“%s, %1.2f, %1.2f”, mono_iout1, dnl_iout1_lsb, inl_iout1_lsb))
--Display INL & DNL on front panel displays
MASTER.display.clear()
MASTER.display.setcursor(1,1,0)
MASTER.display.settext(string.format(“INL= %1.2f LSBs”, inl_iout1_lsb))
MASTER.display.setcursor(2,1,0)
MASTER.display.settext(string.format(“DNL= %1.2f LSBs, dnl_iout1_lsb))

上一頁 1 2 下一頁

評論


技術專區(qū)

關閉