This is machine translation

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

Bluetooth Communication

Communication using the Bluetooth® interface

Use the Bluetooth interface to connect to devices over the Bluetooth interface and to transmit and receive ASCII and binary data. The toolbox supports the Bluetooth Serial Port Profile (SPP). You can identify any SPP Bluetooth device and establish a two-way connection with that device.

To communicate with instruments, you need to use an external adaptor, such as a USB adaptor that you plug into the computer, or a built-in adaptor, such as the ones that are included in some laptop computers. For more information, see Configuring Bluetooth Communication.


bluetooth Create Bluetooth object
fopen Connect interface object to instrument
fclose Disconnect interface object from instrument
fprintf Write text to instrument
fread Read binary data from instrument
fscanf Read data from instrument, and format as text
fwrite Write binary data to instrument
fgetl Read line of text from instrument and discard terminator
fgets Read line of text from instrument and include terminator
flushinput Remove data from input buffer
flushoutput Remove data from output buffer
binblockread Read binblock data from instrument
binblockwrite Write binblock data to instrument
query Write text to instrument, and read data from instrument
readasync Read data asynchronously from instrument
stopasync Stop asynchronous read and write operations
scanstr Read data from instrument, format as text, and parse
get Instrument object properties
set Configure or display instrument object properties
disp Display instrument object summary information
instrhwinfo Information about available hardware
methods Class method names and descriptions
record Record data and event information to file
clear Remove instrument objects from MATLAB workspace
delete Remove instrument objects from memory
instrcallback Display event information when event occurs
instrfind Read instrument objects from memory to MATLAB workspace
instrfindall Find visible and hidden instrument objects
instrhelp Help for instrument object type, function, or property
instrid Define and retrieve commands that identify instruments
instrnotify Define notification for instrument events
instrreset Disconnect and delete all instrument objects
inspect Open Property Inspector
isvalid Determine whether instrument objects are valid
length Length of instrument object array
load Load instrument objects and variables into MATLAB workspace
obj2mfile Convert instrument object to MATLAB code
propinfo Instrument object property information
save Save instrument objects and variables to MAT-file
size Size of instrument object array

Examples and How To

Configuring Bluetooth Communication

Instrument Control Toolbox™ can communicate with Bluetooth devices via an adaptor. You can discover your devices and view their properties.

Transmitting Data Over the Bluetooth Interface

You can read and write both text data (ASCII based) and binary data over the Bluetooth interface.

Using Events and Callbacks with Bluetooth

You can enhance the power and flexibility of your instrument communication by using events and callbacks.

Using Bluetooth Interface in Test & Measurement Tool

The Bluetooth interface is supported for use in the Test & Measurement Tool, and includes the same functionality that is available in the core toolbox.


Bluetooth Interface Overview

The Instrument Control Toolbox Bluetooth interface lets you connect to devices over the Bluetooth interface and to transmit and receive ASCII and binary data.

Bluetooth Interface Usage Guidelines

These tips and guidelines may be relevant to your use of the Bluetooth interface.

Instrument Control Toolbox Properties

These properties are available in the toolbox.


Troubleshooting Bluetooth Interface

Try these tips if you have problems using the toolbox with the Bluetooth interface. Includes information about Bluetooth supported platforms, adaptor requirements, configuration and connection, and other interface-specific tips.

Was this topic helpful?