getdata giving "An unexpected error occurred."

1 次查看(过去 30 天)
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 个评论
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 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by