There is no more problem (sorry for omitting advice).

It was not related to Xenomai. The problem was with the I/O card. 

rt_intr_* calls were not sufficient. I had to make I/O card API calls too.

Something like this:

while (!end)
{
    rt_intr_wait();

    // disable interrupts
    rt_intr_disable();
    InterruptEnable(board, FALSE);    <-------------- this call was not there 
when the problem was

    processing...

    // reenable interrupts
    rt_intr_enable();
    InterruptEnable(board, TRUE);
} 


Thanks

Hubert


>>> Gilles Chanteperdrix <[EMAIL PROTECTED]> 2008-04-09 11:00:04 >>>
Hubert Talbot wrote:
 > Hi,
 > 
 > I work with Sensoray S626 IO card.
 > 
 > My test consists in generating signal with a calibrator, one per second 
 > during 5 seconds.
 > 
 > I use rt_intr_wait and I get about 50000 interrupts, I have to filter them 
 > to count only the good ones (5).
 > 
 > The provided demo does not behave this way. It receives only the ones 
 > generated by the calibrator. 
 > 
 > Where do the ~50000 interrupts come from?

A stupid advice: did you check rt_intr_wait return value ? Maybe
something is badly configured and rt_intr_wait returns an error 50000
times ?

-- 


                                            Gilles.


_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to