フィルターのクリア

Stop ai manually

2 ビュー (過去 30 日間)
Kay
Kay 2011 年 7 月 21 日
Hi everyone,
I am using the DAQ toolbox to build a negative feedback system. Anyhow, Is there any method to stop the ai by typing stop(ai); ? I want to stop the data acquisition by hand instead of setting the SamplePerTrigger.
Thank you, Kay

採用された回答

Chirag Gupta
Chirag Gupta 2011 年 7 月 21 日
Hi Kay,
This is possible. Here is some sample code:
ai = analoginpt(....);
% Add channels and set it up
% Use SamplesPerTrigger property to achieve this by setting it to Inf
ai.SamplesPerTrigger = Inf;
start(ai)
% This will continue unless a stop(ai) command is issued
Documentation link for SamplesPerTrigger
You may also want to refer to 'Continuous Acquisition Using Analog Input' demo in the documentation that covers the same scenario
  3 件のコメント
Chirag Gupta
Chirag Gupta 2011 年 7 月 21 日
I would suggest looking at the demo! Also, how are you running it? Can you post some sample code?
Chirag Gupta
Chirag Gupta 2011 年 7 月 21 日
After running the stop(ai) command, check the value of ai.Running
or isrunning(ai)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData 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