View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
MATLAB Support Package for Vernier SensorDAQ

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 663 KB File ID: #32636 Version:

MATLAB Support Package for Vernier SensorDAQ



22 Aug 2011 (Updated )

MATLAB library for reading Vernier sensors using SensorDAQ hardware

| Watch this File

File Information

Vernier SensorDAQ ( is a USB data-acquisition interface. It can be used to gather data from Vernier sensors ( and also includes terminals for analog and digital I/O.
This support package extends the capabilites of Data Acquisition Toolbox (R2011b or later), and allows you to access the following SensorDAQ capabilities:
 * Vernier analog sensor measurements
 * Analog I/O (using the terminals)
 * Counter input
 * Digital I/O

The support package uses Data Acquisition Toolbox's "Session-based Interface" (except for the digital I/O, which uses the Legacy interface and requires 32-bit MATLAB).

Sample usage:

  % --- Read a Vernier Sensor ---

  session = sdaq.createSession();
  sdaq.addSensor(session, 1, sdaq.Sensors.Barometer);

  % the scaling function converts raw voltage to physical units
  scale = sdaq.getScaleFun(sdaq.Sensors.Barometer);

  % get a single measurement, and convert to physical units
  rawdata = session.inputSingleScan();
  data = scale(rawdata);

  % collect 2 seconds worth of data
  session.DurationInSeconds = 2.0;
  rawdata = session.startForeground();
  data = scale(rawdata);

  % --- Analog input ---

  session = sdaq.createSession();

  % collect 2 seconds worth of data
  session.DurationInSeconds = 2.0;
  data = session.startForeground();

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 7.13 (R2011b)
Other requirements * Windows platform only * Digital I/O requires 32-bit MATLAB (which can be installed on 64-bit Windows system)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
27 Sep 2016 Weizhen

Is there any version that is Mac compatible?

Comment only
12 Oct 2014 Akina

Akina (view profile)


I was wondering if you could fix the problems you had with matlab-sensorDAQ; I'm in the process of purchasing a hand dynamometer/interface that're compatible with matlab, and looking into the option with Vernier. Let me know if you've found any solutions!


Comment only
01 Sep 2014 Francisco Redondo


I am currently trying to collect data from Vernier hand dynamometer using sensor DAQ and Matlab R2013b.
I have two problems:
- Matlab does not recognize input channel "_sensor0_5V" as a valid channel for using the ch1 of SensorDAQ.
- I can't be able to measure in background with MATLAB with 'ai0' or 'i1' channels. I want to measure continuously.

This Support Package for Vernier SensorDAQ is very useful, but I have the above mentioned problems.


Comment only
13 Sep 2011 1.2

* Changed "Created Using" to R2011b

01 Sep 2016

Updated license

Contact us