Re: test - "no hardware" code

On 05/07/2006 23:59, Adrian T Sindile wrote:
> Hi,
> How can I test comedi if I do not have my Measurment Computing board yet 
> (it has been ordered - I would like to test the software meanwhile)? I 
> saw the following driver in an older drivers.txt file:
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
> 
> Driver: comedi_test.o
> Description: generates fake waveforms
> Author: Joachim Wuttke <Joachim.Wuttke_at_icn.siemens.de>, Frank Mori Hess
>   <fmhess_at_users.sourceforge.net>, ds
> Devices:
> Status: works
> Updated: Sat, 16 Mar 2002 17:34:48 -0800
> 
> This driver is mainly for testing purposes, but can also be used to
> generate sample waveforms on systems that don't have data acquisition
> hardware.
> 
> Configuration options:
>   [0] - Amplitude in microvolts for fake waveforms (default 1 volt)
>   [1] - Period in microseconds for fake waveforms (default 0.1 sec)
> 
> Generates a sawtooth wave on channel 0, square wave on channel 1, 
> additional
> waveforms could be added to other channels (currently they return flatline
> zero volts).
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> I have only successfully installed and compiled comedi and comedilib - 
> nothing else.

This ought to work (but I haven't tried it, and it hasn't been updated 
in a while):

# modprobe comedi_test
# comedi_config /dev/comedi0 comedi_test

Then run some of the comedilib testing or demo programs.


-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-07-06Z09:13:46