For Programmers: Free Programming Magazines  


Home > Archive > Matlab > August 2005 > How to pause three M-Files with different waiting cycles?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to pause three M-Files with different waiting cycles?
Winde

2005-08-15, 4:02 am

I have a Matlab GUI which executes three M-Files i a different
execution cycle.
E.g. the first one uses a one second cycle, the second one a ten
second cycle and the last a 30 seconds cycle.
Trying to execute the gui leads to the problem that the two m-files
using the faster cycles wait as long as the slowest one.
I use these three m-files to compute data from an opc server in
different time intervals.
I tried to use the matlab pause function to do the right timing in
each m-file but it didn't work properly.
Winde

2005-08-16, 5:10 pm

May I use a global timer, which all three M-Files could use?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com