getdata giving "An unexpected error occurred."

Occassionally I'll get an error when I make a getdata call. Here is the sample code and the error it throws.
Code:
[DAQ_data, DAQ_time] = getdata(ai, ai.SamplesAcquired);
Error:
??? An unexpected error occurred.
Error in ==> analoginput.getdata at 199
[varargout{1:nout}]=getdata(uddobj,samples,dataformat);
Anyone seen this before and have any recommendations on fixing it?
Thank you!

3 件のコメント

Sean de Wolski
Sean de Wolski 2011 年 8 月 9 日
Everything's plugged in and has been plugged in since the beginning of the ML session?
Adam
Adam 2011 年 8 月 9 日
Yep -- I'm doing multiple getdata calls in the same ML session/script.
Adam
Adam 2011 年 8 月 10 日
Between getdata calls the only calls I'm making to my ai object are start() and stop().

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

質問済み:

2011 年 8 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by