연락처

텍트로닉스 담당자와 실시간 상담 6:00am-4:30pm PST에 이용 가능

전화

전화 문의

9:00am-6:00PM KST에 이용 가능

다운로드

매뉴얼, 데이터 시트, 소프트웨어 등을 다운로드할 수 있습니다.

다운로드 유형
모델 또는 키워드

피드백

Remote Operation: Why do I get a VISA timeout (BFFF0015) using RS-232 with a SourceMeter?

질문:

Remote Operation: Why do I get a VISA timeout (BFFF0015) using RS-232 with a SourceMeter?

답변:

Product(s) :
 SourceMeter Instruments: 2400, 2410, 2420, 2425, 2430, 2440


Question : Why do I get a VISA timeout (BFFF0015) using RS-232 with a SourceMeter?


Answer: When programming a SourceMeter through the VISA layer into RS-232, the use of SCPI commands is required. However, there are additional subtle requirements when the communication bus is not a GPIB bus: you must add a termination character like a Line feed (LF) or a carriage return (CR). By default the SourceMeter ships with the RS-232 TERMINATOR set to <CR> i.e. carriage return, but it can be set to other values (LF, CR+LF, etc).

To accomplish this, there are two approaches that can be taken: explicitly append a terminator onto the end of each command you will send (viWrite), or set a global attribute of the VISA session to automatically append a terminator.

For an RS-232 based session, the VI_ATTR_ASRL_END_OUT attribute controls the method used to terminate write operations. This attribute is set to VI_ASRL_END_NONE by default. To have a terminating character automatically appended, you can change this behavior. Below is a typical command line for VB:

status = viSetAttribute(sesn, VI_ATTR_ASRL_END_OUT, VI_ASRL_END_TERMCHAR)

This will cause a terminator, defined by the VI_ATTR_TERMCHAR attribute, to automatically be appended onto the end of each string written with the viWrite command. The default value of VI_ATTR_TERMCHAR is a Line Feed (hex value 0A). This default value can be changed to carriage return or what ever the instrument is configured, via front panel setups, to use.

Similar programmatic control of these session attributes can be asserted from any programming language; for example, use a property node in LabVIEW to set individual attributes of an open VISA session.

While on the topic of setting attributes, setting the VI_ATTR_TERMCHAR_EN from it's default value of false to a true will allow read operations to terminate as soon as the VI_ATTR_TERMCHAR is received during a viRead. Otherwise, the viRead function will not return until the specified timeout period (VI_ATTR_TMO_VALUE) expires. In that case, you'll get an error message like below and your program will execute slowly.

-10738077339 which is Hex 0xBFFF0015 Timeout expired before operation completed."

For applications using IVI or VXI/PnP drivers, you do not need to add any terminator unless you are using the low level KE24xx Write Instrument Data function to send SCPI commands. With the KE24xx Write Instrument Data function you must add a terminator when the underlying communication bus is not GPIB (which asserts an EOI to terminate reads/writes).

 


©Copyright 2003, Keithley Instruments, Inc.


이 FAQ는 다음에 적용 됩니다:

제품 시리즈: 2400 그래픽 시리즈 SMU

제품:

FAQ ID 72011

모든 FAQ 보기 »