Read DMM on a National Instruments DAQ device in MATLAB

버전 1.1.0.1 (3.14 KB) 작성자: Wael Hemdan
Provides access to National Instruments DMM channels available on devices like myDAQ and Elvis II
다운로드 수: 632
업데이트 날짜: 2016/9/1

라이선스 보기

The Data Acquisition Toolbox(TM) 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 National Instrument devices using the new Session Based Interface was added to Data Acquisition Toolbox in R2010b. If you have R2010b or later, you can use this file plus the Data Acquisition Toolbox to access the DMM on your DAQ device.

obj = DMM(deviceID,measurementType,min,max) creates an object OBJ representing the device with the DEVICEID assigned by the National Instruments Measurement and Automation Explorer, with the measurementType of 'Voltage' or 'Current', and min/max values representing the expected min/max range of the value being measured.

Call the READ method one or more times on the object to retrieve the 'Voltage' or 'Current' value in Volts or Amps respectively. 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. This object does not usually take exclusive access of the hardware as the subsystems are typically different, allowing you to use the DMM in conjunction with the DAQ device. To release the DMM, clear the variable that the object is assigned to.

Example:
myDMM = DMM('Dev1','Voltage',-10,10);
myDMM.read
ans =
4.97

% release the hardware
clear myDMM

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

인용 양식

Wael Hemdan (2024). Read DMM on a National Instruments DAQ device in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/40900-read-dmm-on-a-national-instruments-daq-device-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

Simple bug fix for failure to create the DMM analog input channel

1.0.0.0