comedi_data_read problem

Hi all,
       I am using RTLinux with comedi installed using RTLAB linve 
CD made by Calin (thansk to him). I am using dt2821 data aquistion 
card and needs only single analog input channel and both analog 
output channels.
When I try to run demo programs of comedi, i can't get proper 
output for tut1.c program (it is the first program in comedi 
Documentation). It collects data as a big negative number. which 
is too much out of  Max data range of that card (it is 0 to 4095).  
Further for programs like cmd.c it gives massage while running as 
"command : access denied". The system run well all RTLinux example 
programs.  I am running all programs as a root.
My machine configuration is Cyrix processor at 300MHz with 64Mb 
RAM. I want to use the card at its hieghest throughput which is 
100k samples per second.
Please can any one suggest me the solution.( I am in hurry ).
thanks in advance.
with regards,
-SIDDHARTH

Received on 2003-02-26Z07:51:21