View License

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

» Watch video

Highlights from
Read a National Instruments USB-TC01 single channel Thermometer in MATLAB

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 3.67 KB File ID: #29707 Version:

Read a National Instruments USB-TC01 single channel Thermometer in MATLAB



14 Dec 2010 (Updated )

Read a National Instruments USB-TC01 single channel thermometer from MATLAB®

| Watch this File

File Information

Data Acquisition Toolbox™ software provides a complete set of tools for analog input, analog output, and digital I/O from a variety of PC-compatible data acquisition hardware.
Support for the National Instrument USB-TC01 device was added to Data Acquisition Toolbox in R2011b. If you have R2010b or R2011a, you can use this file plus the Data Acquisition Toolbox to collect data from this device.

obj = TC01(deviceID,probeType) creates an object OBJ representing the device with the DEVICEID assigned by the National Instruments Measurement and Automation Explorer, with the PROBETYPE of 'J','K','T', etc. representing the type of the thermocouple used.

Call the READ method one or more times on the object to retrieve the current temperature in Celsius. The first time this is called, there will be a short delay as the hardware is configured, but additional calls will go faster.

This requires the Data Acquisition Toolbox and MATLAB R2010b or later. Note that this object takes exclusive access to the hardware. To release it, clear the variable that the object is assigned to.

  myTemp = TC01('Dev4','J');
     ans =
  % release the hardware
  clear myTemp

For more information about the Data Acquisition Toolbox, visit

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
28 Aug 2014 Cory Timoney

I am currently attempting to use this code on MatLab2014a and i continually get this error "Undefined variable "daq" or class ""." any hints on what to do next?

Comment only
26 Aug 2011 Ryan

Ryan (view profile)

09 Dec 2011 1.1

Noted that Data Acquisition Toolbox has built in support for this device in R2011b.

01 Sep 2016

Updated license

Contact us