新聞中心

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

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

        作者: 時間:2017-02-06 來源:網絡 收藏

        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

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

        --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參數,TSP將檢測數值并確定器件的通過/失效狀態。然后,它通過向節點1 DIO端口寫入數字位模式,向器件機械手發送正確的分揀命令。

        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

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

        --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 下一頁

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 吉安市| 甘孜| 搜索| 台中市| 廊坊市| 西平县| 泸定县| 邯郸市| 沛县| 柳州市| 乐昌市| 保靖县| 玉山县| 大足县| 资溪县| 资源县| 赣榆县| 邢台县| 江门市| 香河县| 昌乐县| 望都县| 夏邑县| 肃宁县| 栾川县| 元阳县| 广平县| 西充县| 临潭县| 上饶市| 远安县| 湘阴县| 甘洛县| 金川县| 宣汉县| 合山市| 兖州市| 青阳县| 哈尔滨市| 温州市| 长宁区|