I have a little experience with Comedi and a PCI-6033E. 

If you want, you can specify a number of analog input channels to take
samples.  You also specify that the card is to produce an interrupt at the
end of the  conversion.  You create a setup routine that must be called from
init_module() to specify the parameters.  In this setup routine you specify
a thread to handle the interrupt generated by the card.  You also specify
the frequency at which you would like the conversions to take place.  You
can do all of your single sample processing inside that thread.  

The init_module routine is called when the module is installed.  Then the
card will start making periodic conversions and call your thread at the end
of each conversion.  

So, in a nut shell, it can be done.

Rich

-----Original Message-----
From: Massimiliano Cialdi [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 2:10 AM
To: comedi; rtl
Subject: [rtl] comedi & interrupt


I'm working with a ni lab-pc-1200 and a pci6024e boards, using comedi.
I have to read from the board the single data instead of data package,
in fact I need to perform some computation at every sample time. My
problem is that at the moment I use a periodic thread, but I would like
to use the board interrupts.
I wonder if it's possible, using comedi, to obtain temporized interrupt
by programming the boards, directly or using some low level comedi
functions, and using it for read single data.

thanks and sorry for my english
-- 
Massimiliano Cialdi
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to