Re: Acquisition and configuration functions

Jiri,

I've thought a bit about the slowly vaying inputs. I think the best
thing is to do this by the asynchronous commands (if available). They 
run in the background and collect the data while you are doing 
something else. It seems for me that the functions for slowly varying 
inputs always lock up your program during the averaging process which 
is not good in your case. Look at the source code sv.c.

Q to the guru D.S.: or is there a hidden function deep in the comedi 
library/cvs which performs asynchronous averaging and we (normal) 
users don't know anything about it? :-)

/Bernd

Jiri Baum wrote:

 > Bernd:
 >
 >> here's a better docu:
 >> 
<http://people.mech.kuleuven.ac.be/~bruyninc/comedi/html/x597.html#SLOWLYVARYING>
 >
 >
 >
 > Thanks, that's better - but I'm still not much wiser. comedi_sv_init()
 > is supposed to initialize the sv structure - but where does it get the
 > info? Should range, aref and n be already filled in? Should any of the
 > other fields?
 >
 > What's comedi_sv_update()? The webpage doesn't mention it, but it's in
 > comedilib.h under "slowly varying stuff". The manpage is not very
 > helpful, it says that it updates internal parameters of the slowly
 > varying comedi structure sv - but not how it updates them, with what,
 > and why/when one would call it.
 >
 >
 > Jiri


-- 
http://www.cn.stir.ac.uk/~bp1
mailto:bp1_at_cn.stir.ac.uk



-- 
http://www.cn.stir.ac.uk/~bp1
mailto:bp1_at_cn.stir.ac.uk

Received on 2003-08-11Z16:10:30