필터 지우기
필터 지우기

Info

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

how to resolve problem with wiat statement ?

조회 수: 1 (최근 30일)
MANJUNATH
MANJUNATH 2012년 11월 15일
i am using NI DAQ USB 6255 for data acquisition , i need to acquire the voltages from 1024 pixels so i am using "for loop " to address the pixels and the problem is , its taking way much time( 36sec) .
using wait statement will stop matlab execution and jus acquire data and store in DAQ card but writing wait syntax for 2 seconds is not working , its taking around 19 second .
plz any one help to counter this problem
  댓글 수: 3
MANJUNATH
MANJUNATH 2012년 11월 16일
code
ai.analoginput('nidaq',Dev1,); addchannel(ai,0); set(ai,"sampleRate',10000); set(ai,"samplePerTrigger',2); dio=digitalio('nidaq',Dev1'); lines=addlines(dio,0:11,'out'); image=zeros(32); for y=1:32 forx=1:32 address=(y-1)*32+x; putvalue(dio,address); start(ai); wait(ai,2); data=getdata(ai); image(y,x)=mean(data); end; end; imshow(image);

답변 (1개)

Walter Roberson
Walter Roberson 2012년 11월 15일
Do not keep posting this same question! It has been merged with your original question http://www.mathworks.co.uk/matlabcentral/answers/53261-does-wait-statment-in-data-acquicition-help-to-speed-up-the-execution and discussion should go there!

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

Community Treasure Hunt

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

Start Hunting!

Translated by