I think this solution is close. What I would do is to have the timer
set an occurrence every time it expires. Have the loop that requests
the data from the stabiliser wait for an occurrence every iteration.
Then allow a button or some type of logic (when you want to send a
request to change the units) also to set the occurrence when pressed.
This will also trigger the loop to execute, but will not interrupt the
timer.
I can certainly draw up what I mean rather quickly and email it if
needed. Let me know.
Hope that helped.
Mark
In article <954c0g$t2g$1@pollux.ip-plus.net>,
"Shane" wrote:
> I don`t know if this is anything like what you`re looking for, but
it`s most
> likely how I would solve the problem (And have done in the past).
>
> u can use occurrences to make the two different parts of the program
> dependent on each other. Generate an ocurrence, wire it into the loop
and
> into the other part of the program you want to use. Set a case
structure
> within the loop to set the ocurrence upon the required condition. Set
the
> other part of your program within a sequence, with the first frame
waiting
> for the ocurrence. The code you want to execute after the ocurrence
comes
> in the second frame. Since the other part of the program is waiting
for the
> ocurrence (and the transmission of an ocurrence signal is independent
of
> dependency or loop status, i.e. the ocurrence state can be transmitted
> WITHOUT breaking the loop), this part will then execute once the
condition
> is met. After this, the loop will ocntinue to run (Or can be stopped
if you
> prefer).
>
> Anyone else got an idea whether this is the best solution?
>
> Shane O`Neill
>
> Ips McKornix schrieb in Nachricht <9545gs$geb$1@info.cyf-kr.edu.pl>...
> >Thank you all for all your help but I cannot find the solution.
> >My problem is as follows :
> >
> >I have to get the temperature from the stabiliser every given period
of
> >time. I do it in this way : get the temperature and then I set a
timer and
> >wait until the period of time passes. Then I do the next measurement
and so
> >on. Meanwhile I may want to set the stabiliser to send the value of
> >temperature in Kelvins or centigrade. Unfortunately it's done only
when the
> >timer completes its job. I have to interrupt the loop that makes the
timer
> >go and send a request to the stabiliser. That's what I can't do.
> >DO you have any suggests? Any help will be appreciated.
> >
> >Thanks
> >
> >Ips McKornix
> >
> >
>
>
Sent via Deja.com
http://www.deja.com/