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

版本 1.1.0.1 (3.7 KB) 作者: Rob Purser
Read a National Instruments USB-TC01 single channel thermometer from MATLAB®
1.0K 次下载
更新时间 2016/9/1

查看许可证

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.

Example:
myTemp = TC01('Dev4','J');

read(myTemp)
ans =
20.9406

% release the hardware
clear myTemp

For more information about the Data Acquisition Toolbox, visit http://www.mathworks.com/products/daq

引用格式

Rob Purser (2024). Read a National Instruments USB-TC01 single channel Thermometer in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/29707-read-a-national-instruments-usb-tc01-single-channel-thermometer-in-matlab), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.1

Updated license

1.1.0.0

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

1.0.0.0