[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: input time limit
From: |
Robert A. Macy |
Subject: |
Re: input time limit |
Date: |
Tue, 09 Nov 2004 14:35:59 -0800 |
Heather,
Is there a way to make input statement a...
if while [timer running] command?
If not, you could use an extra file and have the program
read this *Calibration.txt" file for the calibration term.
the file could contain the date/time code, so your program
knows how relevant the calibration info is.
For example, you write
qualifier=1;calibration=??;
save -ascii "Calibration.txt" qualifier calibration;
your program reads the data and rewrites the file with the
qualifier flag set to 0. Then if it finds a zero when it
reads the file it can put up ten or twenty very insistent
messages.
I know it's a "work around" but your program would always
be running even while waiting for an input.
- Robert -
On Tue, 9 Nov 2004 10:40:38 -0600
"Heather Duman" <address@hidden> wrote:
> I'm writing some code that calibrates values reported by
> a sensor. I
> have some criteria that must be met before calibration
> can occur. After
> these criteria have been met, I have an input (prompt)
> statement to
> enter the measured value used for calibration. The sensor
> will continue
> transmitting values even if calibration has not occurred.
> Is there any
> way to place a time limit on the input request in case it
> is not
> noticed? We need all values to be recorded, regardless of
> calibration.
> All of my attempts at using "pause ()" have failed to
> produce the
> desired result.
>
> Heather Duman
>
>
> IMPORTANT NOTICE: This communication, including any
> attachment, contains information that may be confidential
> or privileged, and is intended solely for the entity or
> individual to whom it is addressed. If you are not the
> intended recipient, you should contact the sender and
> delete the message. Any unauthorized disclosure, copying,
> or distribution of this message is strictly prohibited.
> Nothing in this email, including any attachment, is
> intended to be a legally binding signature.
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------