您好,登錄后才能下訂單哦!
在調(diào)試程序時,希望輸出出錯的信息,現(xiàn)在就來學(xué)習(xí)下幾種error message的寫法。
1.在 testplan里添加自定義的message
在BT_basic里:
(1) get'testplan'
(2) find‘Eject_Ticket: p_w_picpath 13/'
在這行的下面輸入:
if boardfailed then
report is *
print is "dec/rpr1"
print " *****" //輸入自定義內(nèi)容
print "**** "
print is *
report is Report_printer$
end if
(3) re-save
然后再run
2.對于單個元件加 message:找到元件的library,在測試程序前面添加
on failure
report " ***"
end on failure
再保存編譯就好了。
3.在shorts里添加error message,有兩種方法:
(1) 在shorts文件的最前面加上: report common devices (列出所有共同的組件)
再執(zhí)行 re-save | comp' shorts' | debug shorts | exe to fail
(2) 在shorts前面加上 :report limit # ,其中# 指當(dāng)有error時,列出的最大數(shù),自己設(shè)置的值。可用來限制故障報告時間。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。