필터 지우기
필터 지우기

analog output error using MCC USB-1408fs

조회 수: 4 (최근 30일)
Karl
Karl 2011년 5월 25일
I receive the following error when starting an analog output using a MCC USB-1408fs
MCC: Count must be integer multiple of packet size for Continuous mode
Any suggestions as to what is going on?
The mfile is:
SampFreq = 20; % Hz
Duration = 5; % sec
NSamples = SampFreq*Duration+1;
t = [0:1:NSamples-1]'/SampFreq;
v = 1+sin(2*pi*t/Duration);
ao = analogoutput('mcc',0);
addchannel(ao,0);
set(ao,'SampleRate',SampFreq);
set(ao,'TriggerType','Immediate');
putdata(ao, v);
start(ao);
wait(ao,Duration+2);
stop(ao)
delete(ao)
clear ao
The error is generated by the start(ao) command.
Other information:
MCC Instacal v6.01; matlab 7.4.0 (R2007a); data acq toolbox v2.10; winXP

채택된 답변

Chirag Gupta
Chirag Gupta 2011년 5월 25일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by