色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

          EEPW首頁 > 測(cè)試測(cè)量 > 設(shè)計(jì)應(yīng)用 > 2602型數(shù)字源表測(cè)試腳本及兩個(gè)典型命令

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

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

          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

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

          --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

          一旦計(jì)算出各種DAC參數(shù),TSP將檢測(cè)數(shù)值并確定器件的通過/失效狀態(tài)。然后,它通過向節(jié)點(diǎn)1 DIO端口寫入數(shù)字位模式,向器件機(jī)械手發(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

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

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

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉