與我們聯絡

與 Tek 業務代表即時對談。 上班時間:上午 6:00 - 下午 4:30 (太平洋時間)

致電

請致電

與 Tek 業務代表即時對談。 上班時間:上午 8:30 - 下午 5:30 (太平洋時間)

下載

下載手冊、產品規格表、軟體等等:

下載類型
機型或關鍵字

意見回饋

How do I check for errors when I program my oscilloscope?

問題:

How do I check for errors when I program my oscilloscope?

答案:

When done retrieving the data, check for errors. This will let you know if the acquisition actually worked.

Typical error handling involves testing the status registers. To do this, have your program send the scope an “*esr?” query. If the program returns a non-zero value, this indicates that an event of some sort occurred. Now you decide how your program should handle the event. A simple to implement way is to simply display a message that says an error occurred. Perhaps, it can also refer the user to an appropriate GPIB Programmer manual for more information on how to decode the error code. A more involved, but more helpful, message would tell the user exactly what message occurred. To do this, you can mask the error code through register templates to decode the specific event that occurred. You could then display the name of this specific event in a message to the user.


此常見問答集適用於:

沒有任何產品系列

產品:

常見問答集 ID 52536

檢視所有常見問答集 »