Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
control time to stop a program

Subject: control time to stop a program

From: Jose

Date: 9 Jul, 2009 16:04:02

Message: 1 of 2

Hello Everyone,

I have a National instrument DAQ and I get a raw of data (x vector with 25000 elements) every one second from a master computer to analize it in another computer (slave).
My problem is:
when I get the vector x=[0 0 ....0] in 1 sec, i.e (the 25000 components are 0) in 1 sec, my program is stopped.
But, I am interested to wait up to 5 secs, not only 1 sec to make this decision.
i.e, the idea is take the decision to stop the program when I get 5 consecutives vector x = [0 0 ...0] , not only 1.

There some function to control it?

Thanks in advance,

Jose.

Subject: control time to stop a program

From: Sherryl Radbil

Date: 13 Jul, 2009 12:43:04

Message: 2 of 2

See the identical post
http://www.mathworks.com/matlabcentral/newsreader/view_thread/255728#663987
for the answer.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us