bladeRF/host/libraries/libbladeRF_bindings/matlab
2015-11-23 18:39:39 -05:00
..
test matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
.gitignore matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF.m matlab: Fixed use of invalid varible in error msg 2015-11-23 18:25:31 -05:00
bladeRF_IQCorr.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_rx_gui.fig matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_rx_gui.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_Simulink.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_StreamConfig.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_VCTCXO.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_XCVR.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
libbladeRF_proto.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
README.md matlab: Updated README to note tested versions 2015-11-23 18:39:39 -05:00

MATLAB & Simulink Bindings

This directory provides libbladeRF bindings for MATLAB and Simulink.

These bindings are implemented as a thin layer of MATLAB code that utilizes loadlibrary to load libbladeRF into the MATLAB process and calllib to execute libbladeRF functions.

The various device control and configuration parameters are mapped to accessors methods, which yields a simple and intuitive interface. For example, to open a device and configure its RX and TX frequencies:

device = bladeRF();
device.rx.frequency = 915.125e6;
device.tx.frequency = 921.700e6;

Before starting, run help bladeRF.build_thunk to view instructions on how to have MATLAB build a Thunk file to use in conjunction with libbladeRF.

For more information, use the MATLAB help and doc commands on the files in this directory, as well as on the various object properties contained in these files.

Files

Filename Description
bladeRF.m Top-level object for MATLAB libbladeRF bindings. See doc bladeRF for information about the available properties and methods.
bladeRF_Simulink.m MATLAB System Object implementation for Simulink. This exposes bladeRF.m to Simulink, allowing the device to be used to receive, transmit, or operate full duplex.
bladeRF_rx_gui.m A configurable demo GUI that receives and plots samples in real-time.
bladeRF_XCVR.m A submodule of bladeRF.m that provides parameter-based access to RX and TX module configuration items.
bladeRF_VCTCXO.m A submodule of bladeRF.m that provides access to the VCTCXO trim DAC settings.
bladeRF_IQCorr.m A submodule of bladeRF.m that provides access to IQ DC offset and gain imbalance correction functionality.
bladeRF_StreamConfig.m An object that encapsulates bladeRF stream parameters.

Supported Versions

These bindings have been tested on MATLAB 2014b and 2015b. Earlier versions may be compatible, but this is not guarenteed.

License

This code is distributed under an MIT License.

Trademarks

MATLAB and Simulink are registered trademarks of The MathWorks, Inc.