MATLAB library for the command, control and monitoring of the Liquid Instruments Moku:Lab device.
For moku-MATLAB documentation please run help moku
from your MATLAB console.
For information on how to discover your Moku:Lab's IP address see the Connecting to your Moku:Lab guide.
- Download the moku-MATLAB Toolbox
- In MATLAB, open the downloaded Toolbox file using the file explorer.
- Press "Install".
- Run
help moku
in the MATLAB console to confirm installation.
- Download the moku-MATLAB zip file
- Extract the zip file to a convenient location (we recommend Documents/MATLAB/Add-Ons/Toolboxes).
- Open MATLAB.
- In the Home tool pane, click "Set Path".
- Click "Add with Subfolders..." and select the extracted moku-MATLAB folder.
- Press "Save" to permanently add the folder to the MATLAB path.
- Run
help moku
in the MATLAB console to confirm installation.
- Windows - MATLAB 2013a+
- Linux - MATLAB R2013a+
- Mac - MATLAB 2014a+
You can find example scripts for instruments in the examples/ folder.
Here is a basic example of how to connect to a Moku:Lab, deploy the Oscilloscope and fetch a single data trace.
% Connect to your Moku:Lab's Oscilloscope instrument
m = MokuOscilloscope('192.168.69.100'); % Your Moku:Lab IP here
% Set the Oscilloscope timebase to be +-1msec
m.set_timebase(-0.001,0.001);
% Get a single frame of data with a 10-sec timeout period
data = m.get_realtime_data('timeout',10);
% Print the time-voltage data for both channels
data.time
data.ch1
data.ch2
moku-MATLAB is covered under the MIT License (refer to the LICENSE file for details).
Refer to library source files for individual licensing details.
Please log issues here on Github.