Trigger analog output with analog input using Data Acquisition Toolbox

5 次查看(过去 30 天)
I am using a national instruments USB 6353 DAQ and matlab's data acquisition toolbox to perform some data acquisition operations. I would like to change from solely collecting data (which works great now) to outputting an analog signal if a specific condition is met in the data collected, in near real time.
pseudo code would look something like this:
create analog input channel
create analog output channel
queue analog output
begin collecting data (this would have to be a background operation, right?)
if(analog input > 2.9v)
trigger output
end
I just can't figure out how external triggering would work using the data acquisition toolbox, unless it's a manual or immediate trigger.
  1 个评论
W Joey
W Joey 2015-7-16
Hi Eric, I have met the same problem with you. And i collect input data in a matrix and then compare the value of data to threshold. But i use foreground input and the problem is the comparison will begin only after all data has been collected and it wastes time. Would you like to upload your code?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile 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!

Translated by