필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Add a NI SCXI-1000 module to a Matlab Session-based DAQ

조회 수: 1 (최근 30일)
Greg
Greg 2015년 4월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I am having trouble setting up a session-based DAQ on R2012a version of Matlab (64-bit) with DAQ toolbox to an NI signal conditioning system. This includes an NI-6251 USB to SCXI-1000 chassis with an SCXI-1520 strain module and SCXI-1314 strain terminal block. When I use NI M&AE everything self-tested successfully and calibrated properly. I am unable to pull the specific strain module into the Matlab session. Matlab responds that it is an unsupported device, but the Dev1 it recognizes, but results in irrelevant data. The code I have tried is below. The solution if hopefully simple, but I may need an adaptor kit, not sure. Any help is appreciated.
%Create Session-based interface
d = daq.getDevices; s = daq.createSession ('ni'); ch = s.addAnalogInputChannel ('Dev1', 0,'Voltage'); %ch = s.addAnalogInputChannel ('SC1Mod3', 0:7,'Voltage'); %Attempted in lieu of Dev1, but did not work. s.Rate = 2.0; s.DurationInSeconds = 30.0; data = s.startForeground;

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by