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.

serialbreak

Send break to instrument

Syntax

serialbreak(obj)
serialbreak(obj,time)

Arguments

obj

A serial port object.

time

The duration of the break, in milliseconds.

Description

serialbreak(obj) sends a break of 10 milliseconds to the instrument connected to obj.

serialbreak(obj,time) sends a break to the instrument with a duration, in milliseconds, specified by time. Note that the duration of the break might be inaccurate under some operating systems.

More About

collapse all

Tips

For some instruments, the break signal provides a way to clear the hardware buffer.

Before you can send a break to the instrument, it must be connected to obj with the fopen function. A connected serial port object has a Status property value of open. An error is returned if you attempt to send a break while obj is not connected to the instrument.

serialbreak is a synchronous function, and blocks the command line until execution is complete.

If you issue serialbreak while data is being asynchronously written, an error is returned. In this case, you must call the stopasync function or wait for the write operation to complete.

See Also

| |

Introduced before R2006a

Was this topic helpful?