comedilib/demo
2000-09-03 02:15:44 +00:00
..
rt Updating for comedi-0.7.39 and RTLinux-2.1 2000-02-10 00:11:16 +00:00
antialias.c added antialias.c 2000-06-02 21:37:40 +00:00
ao_waveform.c many random changes 2000-05-27 00:56:45 +00:00
cmd.c added documentation 2000-09-03 02:15:20 +00:00
eeprom_dump.c Initial revision 2000-02-02 05:14:23 +00:00
info.c added lots of more information 2000-09-03 02:15:44 +00:00
inp.c Initial revision 2000-02-02 05:14:23 +00:00
inpn.c removal of rangetype 2000-03-29 23:53:11 +00:00
insn.c insn demo 2000-08-09 21:11:29 +00:00
main.c patch from Tomasz 2000-05-27 00:55:34 +00:00
Makefile added insn 2000-08-09 21:13:53 +00:00
mode1.c Initial revision 2000-02-02 05:14:23 +00:00
mode2.c rewrite 2000-06-02 21:52:45 +00:00
mode3.c Initial revision 2000-02-02 05:14:23 +00:00
mode4.c Initial revision 2000-02-02 05:14:23 +00:00
outp.c Initial revision 2000-02-02 05:14:23 +00:00
README Initial revision 2000-02-02 05:14:23 +00:00
sv.c Initial revision 2000-02-02 05:14:23 +00:00
tut1.c Initial revision 2000-02-02 05:14:23 +00:00
tut2.c removal of rangetype 2000-03-29 23:53:11 +00:00

Examples


ao_waveform:

	You need a device (and driver) capable of streaming analog output,
	which currently is some of the members of the NI AT-MIO and PCI-MIO
	E series.  Creates a sine wave on an analog output channel.

cmd:
	Example of how to use the new 0.8 command structure.  Not functional.

eeprom_dump:
	Dumps the EEPROM of a card, if it has one.  Useful for debugging
	devices/drivers.

info:
	Displays some information that Comedi knows about a device.

inp:
	Simple input demo.  Reads one sample from an input line.

inpn:
	Slightly more complicated input demo.  (It has a for() loop.)
	Reads each channel on a subdevice, at every possible input
	range, and converts the data to a voltage.

mode1:
	Doesn't work.

mode2:
	Demo for streaming analog input.  Only works for boards/drivers
	with that capability.

mode3:
	Doesn't work.

mode4:
	Same as mode2, except using an external trigger.

sv:
	Similar to inp, but measures the input using the comedi_sv_*()
	functions, which average many samples to try to get a more accurate
	estimate of the actual input.

tut1:
tut2:
	Tutorial examples.


Many of these demos are linked with the file main.c, which parses
command line options.  Some options don't make sense with all programs.
The options are:


-a <aref>	uses analog reference <aref> (default: 0)
-c <chan>	uses channel <chan>
-s <subd>	uses subdevice <subd>
-r <range>	uses voltage range <range>
-f <file>	uses device file <file> (default: /dev/comedi0)
-v		verbose
-d		set analog reference to differential
-g		set analog reference to ground
-o		set analog reference to other
-m		set analog reference to common