Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

clrdevice

Clear instrument buffer

Syntax

clrdevice(obj)

Arguments

obj

A GPIB, VISA-GPIB, VISA-VXI, VISA-GPIB-VXI, VISA-Serial, or VISA-TCPIP object.

Description

clrdevice(obj) clears the hardware buffer of the instrument connected to obj.

Tips

Before you can clear the hardware buffer, the instrument must be connected to obj with the fopen function. A connected object has a Status property value of open. If you issue clrdevice when obj is disconnected from the instrument, then an error is returned.

You can clear the software input buffer using the flushinput function. You can clear the software output buffer using the flushoutput function.

Introduced before R2006a

Was this topic helpful?