Re: Multiple loops interrupt each other :(

new topic     » goto parent     » topic index » view thread      » older message » newer message

If you do use timers, *do not* use the standard Windows timers. You 
should use Multimedia Timers (which are accessed with a different set of 
Windows API functions. I don't know if this sub system is supported by 
any Euphoria wrappers.), which are guareteed to have a resolution of 1 
millisecond.

The problem with the standard timers (setTimer, etc) is that they have 
NO guaretees whastsoever. That means that if you ask for a timer event 
every 500 milleseconds, it could be a second or more between the actual 
events. Worse, there could be a whole pack of backed up events that you 
get really fast. This could burn out your motors.



Euman wrote:

>
>
>Hello Weichel,
>
>Do you have PLC programming experience?
>I assume these "motors" are "servo motors"..correct?
>
>The best method to achieve this in Euphoria is thru the use
>of timers and a seperate loop for each axis per servo. 
>Euphoria "is" fast enough that servo input/output encoding 
>can be acompilished for multiple servo's.
>
>You could run multiple instances of Euphoria and use
>Interprocess communcations (Filemapping mode) so 
>each instance can share data.... blink
>
>Euman
>
>----- Original Message ----- 
>From: "Weichel" <steen.weichel at deepspace.dk>
>  
>
>>The problem is that the motors are for driving a telescope.
>>
>>One axis tracks the earth rotation and have a constant but tunable rate +
>>    
>>
>
>
>TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu