| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Instrument Control Toolbox |
| Contents | Index |
| Learn more about Instrument Control Toolbox |
clrdevice(obj)
obj | A GPIB, VISA-GPIB, VISA-VXI, or VISA-GPIB-VXI object. |
clrdevice(obj) clears the hardware buffer of the instrument connected to obj.
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.
flushinput, flushoutput, fopen
![]() | clear | commit | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |