Fastest way to convert raw data to voltages

Dear All,
 
I have an array of 2 by 100 raw data to convert to its corresponding voltages.   I am currently running a while loop to convert element by element using comedi_to_phys() function.  Is there a faster way?  I may need to convert all these data within 1 ms.
 
Another problem is that sometimes the comedi_to_phys() function returned a VERY large positive double number.   Is this an out-of-range behaviour? Anyway to do a check on it?  I am very tempted to write my own coversion routine but afraid that it might not be as efficient as the existing one.
 
Thanks
 
wee liat

		
---------------------------------
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.

Received on 2004-10-18Z15:21:14