API for MATLAB: Specs & Features

API for MATLAB - gtec's Device Driver for MATLAB

The API for MATLAB is available for g.HIamp, g.USBamp, g.Nautilus and g.MOBIlab+. The toolbox is a device driver that lets users read biosignal data like EEG, ECoG, EMG, EOG and ECG within the MATLAB environment. MATLAB is a very flexible development environment which allows you to easily set up your own signal acquisition and analysis by utilizing all available toolboxes from MATLAB (like Statistics, Neural Networks, and Signal Processing).

The API for MATLAB contains commands which give full access to the amplifier. There are commands for reading the data, setting the bandpass and Notch filters, changing the sampling frequency of the amplifier, defining bipolar derivations and calibrating the system.

One of the key advantages of API for MATLAB is that it is fully integrated into MATLAB. Therefore, you can start data acquisition within minutes, and build your application easily and quickly on top of it.

Product Highlights

  • Acquire EEG, ECoG, ECG, EMG, EOG data directly within MATLAB
  • Control g.HIamp, g.USBamp, g.Nautilus and g.MOBIlab+ from the MATLAB command line
  • Write your own MATLAB programs for on-line visualization and signal analysis
  • Easily use the MATLAB API to handle g.tec amplifiers
  • Data can be read directly into MATLAB for further off-line processing
  • Speed up your development time from months to hours

More Product Details

On-line Biosignal Acquisition

Define the analog input object for g.USBamp

ai = analoginput('guadaq',1); 
addchannel(ai,[1]);

Set the sampling rate to 256 Hz and acquire 10 seconds of data

set(ai,'SampleRate',256,'SamplesPerTrigger',10*256);
preview=256; 
p = plot(zeros(preview,1)); grid on 
start(ai)

Wait for one second to have at least 256 samples for the visualization

while ai.SamplesAcquired < preview
end

Show the acquired data in the figure

while ai.SamplesAcquired < 10 * 256
 &nbsp; &nbsp;data = peekdata(ai,preview);
 &nbsp; &nbsp;set(p,'ydata',data);
 &nbsp; &nbsp;drawnow;
end

 

Usage of Softscope

The Data Acquisition Toolbox provides a scope block for the visualization of data. Perform the following steps to visualize g.USBamp and g.MOBIlab+ data in this scope.

First register the g.USBamp/g.MOBIlab+ adaptor with

daqregister('guadaq')
ans = &nbsp;'guadaq.dll' successfully registered

Configure g.USBamp to acquire 1 channel in calibration mode. Therefore an analog input object with the adaptor guadaq of device 1 must be created.

ai = analoginput('guadaq',1);

Add the first channel


addchannel (ai,1)

and set g.USBamp to calibration mode


set(ai,'Mode','Calibration');

Start the Data Acquisition Oscilloscope


softscope(ai);

 


Available configurations

Software

product no.: 5016 read more g.MOBIlab+ API for MATLAB — MATLAB driver software package for g.MOBIlab+
product no.: 0261 read more g.USBamp API for MATLAB — MATLAB programming driver package for g.USBamp
product no.: 0261D read more g.HIamp API for MATLAB — MATLAB programming driver package for g.HIamp
product no.: 0261E read more g.Nautilus API for MATLAB — MATLAB programming driver package for g.Nautilus

See some related products

Hardware and Accessories

read more g.USBamp: Specs & Features — g.tec's high performance biosignal amplifier, acquisition and processing system
read more g.MOBIlab+: Specs & Features — mobile biosignal acquisition and processing with a PC or notebook
read more g.HIamp: Specs & Features — multi-channel biosignal amplifier
read more g.Nautilus: Specs & Features — wireless EEG system with active electrodes

Related Media and Documents

Product Manuals/Handbooks

g.USBamp

log in required
application/pdf
gUSBampMatlabAPI — 17/04/2014 — 872.71 kB

g.MOBIlab+

log in required
application/pdf
gMOBIlabplus MATLAB API — 17/04/2014 — 667.06 kB