Click or drag to resize

Clear

This operation performs an IEEE 488.1-style clear of the device.

virtual HRESULT Clear() abstract;
Remarks

The exact operation performed depends upon the type of I/O session. For VISA I/O sessions, various operations make occur based on the specific VISA session type. For instance, for VXI INSTR sessions, the Word Serial Clear command is used. For GPIB INSTR sessions, the Selected Device Clear command is used. For Serial INSTR sessions, VISA flushes the I/O output buffer, sends a break, and then flushes the I/O input buffer. For TCP/IP SOCKET sessions, VISA flushes the I/O buffers. For USB INSTR sessions, VISA must send the INITIATE_CLEAR and CHECK_CLEAR_STATUS commands on the control pipe.

  • For VXI INSTR sessions, the Word Serial Clear command is used.

  • For GPIB INSTR sessions, the Selected Device Clear command is used.

  • For Serial INSTR sessions, VISA flushes the I/O output buffer, sends a break, and then flushes the I/O input buffer.

  • For TCP/IP SOCKET sessions, VISA flushes the I/O buffers.

  • For USB INSTR sessions, VISA must send the INITIATE_CLEAR and CHECK_CLEAR_STATUS commands on the control pipe.

Download a complete CHM version of this documentation here.