| Keysight.Visa Namespace > MessageBasedSession Class : Clear Method |
'DeclarationPublic Sub Clear()
'UsageDim instance As MessageBasedSession instance.Clear()
public void Clear()
public: void Clear();
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.
Current with Keysight IO Libraries Suite 18