Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Data acquisition during a week with triggers

조회 수: 1 (최근 30일)
Roser Torrent
Roser Torrent 2012년 5월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I'm searching how I can be program some .m file in order to acquired some data during a week, and only I want save a piece of data (during one minute after the trigger occurs).
I've studied how perform the trigger and which types of triggers there are.
In the "Configuring Analog Input Triggers" explains how save data when a trigger occurs and you can specify how many triggers do you want to occurs. In my case, I want specify the lasted the listening of the channel (a week), how long I want to save the data (1 minute after the trigger occurs) but I don't know how many triggers occur (it depends on number of electrical signals that the sensors detect).
Can you help me how I can develop this adquisition?
Thanks,
  댓글 수: 1
Daniel Shub
Daniel Shub 2012년 5월 2일
While a week long program might work, I think that is pushing the limit to how long most people keep MATLAB running for ...
http://www.mathworks.com/matlabcentral/answers/21545-what-is-your-matlab-uptime

답변 (1개)

Roser Torrent
Roser Torrent 2012년 5월 2일
Hi,
I've found the follow command may be it's a good way to solve my problem.
set(ai, 'TriggerRepeat', inf);
I know that I need to put the 'stop' command in order to do a correct data acquisition, but I don't know how I control the total duration of the data acquisition. In most examples, the variable 'duration', when we use the trigger's commands, means the duration of the system listening the channel after the trigger occurs, no the total time of this listening. How I can control the total time?
Thanks

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by