Continuous analog output ao daq
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi! I'm working with a national instruments data acquisition USB 6211 with the aim of generating an analog signal during several hours. I work with SamplesOutputFcn event in order to introduce new samples into the engine each SamplesOutputFcnCount. The problem is that when 4.2929e+09 samples has been generated (at a SampleRate of 100000 S/s) the object stops outputting the signal when its status is still sending data.
Could anyone tell me if there is any limit in the number of samples that can be output per trigger with an analog output object?? I try to find it in the data acquisition toolbox's help without any success.
Thank you very much!
댓글 수: 1
채택된 답변
Daniel Shub
2011년 5월 9일
I have not used that card (or even the DAQ toolbox in a long time). It would not surprise me if the limit was 2^32. In fact
log2(4.2929e+09)
ans =
31.9993
The limit is likely on the NI driver and not the DAQ toolbox. At 100 kHz, 2^32 samples is already 12 hours, how long do you need to go for? Can you lower the sample rate?
추가 답변 (1개)
Sean de Wolski
2011년 5월 9일
Use a timer function to repeatedly call the analog out trigger function.
doc timer
댓글 수: 4
Sean de Wolski
2011년 5월 9일
(I haven't used the DAQ toolbox in a few years and I'm on a MAC which doesn't have it, sorry I can't be more specific.)
참고 항목
카테고리
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!