From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <47FCAA4E0200000100193210@domain.hid> Date: Wed, 09 Apr 2008 11:36:45 -0400 From: "Hubert Talbot" References: <47E134100200000100192E08@domain.hid> <18428.55796.407005.6130@domain.hid> In-Reply-To: <18428.55796.407005.6130@domain.hid> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [Xenomai-help] =?iso-8859-15?q?R=E9p=2E_=3A_Re=3A__Too_much_Inter?= =?iso-8859-15?q?rupt?= List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org There is no more problem (sorry for omitting advice). It was not related to Xenomai. The problem was with the I/O card.=20 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); }=20 Thanks Hubert >>> Gilles Chanteperdrix 2008-04-09 = 11:00:04 >>> Hubert Talbot wrote: > Hi, >=20 > I work with Sensoray S626 IO card. >=20 > My test consists in generating signal with a calibrator, one per second = during 5 seconds. >=20 > I use rt_intr_wait and I get about 50000 interrupts, I have to filter = them to count only the good ones (5). >=20 > The provided demo does not behave this way. It receives only the ones = generated by the calibrator.=20 >=20 > 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 ? --=20 Gilles.