Digital acquisiton speed, it misses pulses
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi everyone,
I am trying to make a very simple acquisiton program in wich I read a low frequency digital signal and plot the results. The problem I have is that the acquisition doesn't seem to be fast enough for the application, as it misses many pulses at 80 Hz approximately. I don't understand why, the frecuency is very low and with an Advantech PCI 1711 Board this should't be happening.
Here is the program
dio = digitalio ('advantech',0)
hwlines = addline(dio,2,'In')
tic
for i=1:600
out(i)= getvalue (dio)
save('datos.txt','out')
end
tiempo=toc
stairs (out)
Thanks a lot in advance
Alejandro
댓글 수: 8
ayam mohsen
2013년 4월 24일
what version of matlab you see to used with pci-1711u notice ,i found just matlab 2008 and 2007 can see the pci-1711u using real time window target simulink
채택된 답변
Walter Roberson
2012년 8월 30일
It is not recommended to save() within the loop. save() can take a fair bit of time.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!