Keysight VISA.NET Help
Clear Method (MessageBasedSession)



Performs an IEEE 488.1-style clear of the device and clears the input and output buffer (both raw and formatted I/O buffers). It also may terminate ending operations on the device.
Syntax
'Declaration
 
Public Sub Clear() 
'Usage
 
Dim instance As MessageBasedSession
 
instance.Clear()
public void Clear()
public:
void Clear(); 
Remarks

For a GPIB session, this method sends a Device Clear to the device.

For a TCPIP socket session, if IOProtocol property is Ieee4882, this method sends the the string "*CLS\n" to the device. Otherwise, this operation is not valid.

For a serial session, this method flushes the instrument buffer.

For a USB session, this method sends the INITIATE_CLEAR and CHECK_CLEAR_STATUS commands on the control pipe.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025