Info

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

How to acquire data periodically in a state

조회 수: 2 (최근 30일)
Thang Nguyen
Thang Nguyen 2011년 4월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I am working on a sequence of valve control state. Each sequence is a set of valve command and will be stay for while for example 100msec. In each sequence, I need to record pressure data at 5msec interval. Currently, I don't know how to do it in a right way. What I did is using entry: Valves Value And there is a internal state call itself by after(0.005,sec) add value into an array at a index counter. I want 2 things: 1. I thinks updating data into array should be a function. I think it shouldn't be a state. That's why I don't like my solution. I guess it should be called inside "during:" syntax. I tried with on every(time,tick) but I don't know how to set the interval time 5 msec for this statement cause it doen't accept other values than tick. 2. I don't know if it's a right way to do is to set an array at index in increased after add the value. Is there any better way to do that?
I highly appreciate your time on reading and answering my questions.
Best regards, Thang
  댓글 수: 1
Thang Nguyen
Thang Nguyen 2011년 4월 4일
Hi, I need help with this.

답변 (0개)

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by