bladeRF/host/libraries/libbladeRF_bindings/matlab
Brian Glod 1410ac2df9 matlab: Update README.md
- Added "Before Starting" section
- Added "MATLAB Toolbox Requirements" section
2017-07-05 08:58:17 -07:00
..
test matlab: Added methods for LMS6 DC cal routines 2015-12-12 21:18:56 -05:00
.gitignore matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF.m matlab: Updated version to v0.1.2 2016-06-29 14:35:17 -04:00
bladeRF_IQCorr.m matlab: Added automatic RX/TX DC correction 2015-12-28 22:20:20 -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: Fixed loopback name typo in bladeRF_Simulink.m 2016-01-08 17:56:16 -05:00
bladeRF_StreamConfig.m matlab: Added automatic RX/TX DC correction 2015-12-28 22:20:20 -05:00
bladeRF_VCTCXO.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_XCVR.m matlab: Ensure TX DAC is returned to 0+0j for tx.stop() 2015-12-10 15:09:52 -05:00
CHANGELOG matlab: Updated version to v0.1.2 2016-06-29 14:35:17 -04:00
libbladeRF_proto.m matlab: Search for thunk file in '.' and MATLABPATH 2016-01-04 22:36:04 -05:00
README.md matlab: Update README.md 2017-07-05 08:58:17 -07: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

You will need to generate a thunk file (a compatibility layer for loadlibrary()) so that MATLAB can correctly call the libbladeRF functions.

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.

MATLAB Toolbox Requirements

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_rx_gui.fig GUI layout for bladeRF_rx_gui.m
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.
libbladeRF_proto.m This file establishes the bindings and mappings to libbladeRF.

Supported Versions

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

License

This code is distributed under an MIT License.

Trademarks

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