與我們聯絡

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

致電

請致電

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

下載

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

下載類型
機型或關鍵字

意見回饋

Why does my VISA based connection to the 2701 Ethernet Connection Execute so slowly?

問題:

Why does my VISA based connection to the 2701 Ethernet Connection Execute so slowly?

答案:

Product(s) :

Integra Mainframe: 2701

 


Question : Why does my VISA based connection to 2701 Ethernet Connection Execute so slowly?


Answer:

A slow execution symptom appears when doing consecutive reads to an Ethernet based instrument a loop.

When VISA installs, the VI_ATTR_TERMCHAR_EN attribute is set to false by default. This attribute turns on or off a flag that determines whether the viRead operation will return when a terminator character is received. When it is set to false, the viRead statement will wait until it times out before it returns rather than return upon receipt of the terminating character from the instrument. This seems to affect only Ethernet based communication over VISA.

The fix is to set this flag to true so that the read will terminate when the terminator character is received from the instrument. This will significantly increase the speed performance of the code. Below is a pseudo code for how to set this attribute to true.

 

status = viSetAttribute(sesn, VI_ATTR_TERMCHAR_EN, VI_TRUE)


©Copyright 2003, Keithley Instruments, Inc.


此常見問答集適用於:

產品系列: 吉時利 2700 萬用電錶/資料擷取/切換系統

產品:

常見問答集 ID 69656

檢視所有常見問答集 »