Ian Abbott
c17577318d
Applied patch from David MacMahon <davidm -at- astro -dot- berkeley -dot- edu>.
...
Adds physical units support to comedilib demo programs.
I changed one of the format strings to help line up values better in the
'cmd' example.
2006-07-20 11:51:54 +00:00
Ian Abbott
d349d2e12b
Use comedi_perror to report error if comedi_open fails, and exit with exit
...
code 1.
2006-07-13 17:06:33 +00:00
Ian Abbott
761ffc3e90
Applied (slightly modified) patch from David MacMahon
...
<davidm -at- astro -dot- berkeley -dot- edu>.
Reports specific error string (strerror(errno)) if comedi_open fails (I
changed the format slightly from David's).
Displays subdevice flags as a hexadecimal number.
2006-07-13 12:43:14 +00:00
Frank Mori Hess
44d71a63cf
Patch from abbotti@mev.co.uk (Ian Abbott):
...
Fixes compile error with gcc 2.96.
2006-05-02 02:09:02 +00:00
Frank Mori Hess
caedc7bf15
Made cmd demo work with SDF_LSAMPL subdevices.
2005-12-28 17:11:35 +00:00
Frank Mori Hess
55147aef5c
info is board_info now
2005-03-13 17:04:47 +00:00
Frank Mori Hess
8e115ae15b
fix name collision with automake 1.9
2005-03-12 21:11:01 +00:00
Frank Mori Hess
545b9420d5
added some error checks
2005-02-24 20:46:56 +00:00
Frank Mori Hess
5d4729b9ec
mmap works for output waveforms now.
2005-01-23 03:11:30 +00:00
Frank Mori Hess
8f06878f5d
mark initial buffer contents as written, remove some unused variables,
...
fixed buffer overrun
2005-01-22 14:31:20 +00:00
Frank Mori Hess
99c8d0b5f1
added memory mapped ao waveform demo (untested)
2005-01-17 20:20:26 +00:00
Frank Mori Hess
8be0408187
add serial dio subdevice type
2004-02-29 16:49:29 +00:00
Frank Mori Hess
998c091e1e
doing a retry for the preload write is useless, since the command
...
hasn't started yet. Print a useful error message and exit instead.
2004-01-02 01:16:00 +00:00
Frank Mori Hess
054cade97f
made BUF_LEN larger, so boards with huge ao fifos (ni 67xx)
...
don't underrun when starting up.
2004-01-02 00:06:33 +00:00
David Schleef
8e2cd55f24
fix warnings
2003-08-16 23:18:07 +00:00
David Schleef
bd414e5a57
add #! line
2003-06-04 02:54:41 +00:00
David Schleef
cbc88ac621
Add python examples from Luc Lefebvre <luc.lefebvre@mcgill.ca>
2003-06-04 02:53:45 +00:00
Frank Mori Hess
fa4100f9a3
use CR_EDGE and CR_INVERT constants instead of magic numbers
2003-05-24 21:15:06 +00:00
David Schleef
8ab858452b
autoconfiscate
2003-05-02 07:53:44 +00:00
David Schleef
98801148b9
demos should be nodist
2003-05-02 07:52:24 +00:00
David Schleef
b28c52a42f
autoconfiscation
2003-05-02 07:19:00 +00:00
Frank Mori Hess
bf1b81075e
added apply_cal demo
2003-04-22 00:04:14 +00:00
Frank Mori Hess
26769e5635
set default n_scan value to 10 for insn demo, added check that it is
...
not set larger than MAX_SAMPLES
2003-03-05 17:01:34 +00:00
Frank Mori Hess
9d4aa91837
include string.h for memset()
2003-01-01 23:08:07 +00:00
Frank Mori Hess
ea64ba8daa
fixing includes for exit(), memset() for gcc 2.96 compiler warnings
2003-01-01 23:07:02 +00:00
Frank Mori Hess
55e46d503d
fix compiler warning
2002-12-31 01:13:13 +00:00
Frank Mori Hess
28cbcb99d8
added error check for mmap() call
2002-11-26 20:06:22 +00:00
Frank Mori Hess
5685d1ae2b
increased BUF_LEN, so demo works better with ni boards
2002-11-22 21:45:05 +00:00
Frank Mori Hess
8ab0f19e34
changed & to %, before it seemed to assume the buffer size was a power of
...
2
2002-11-20 00:43:19 +00:00
David Schleef
a220597b4b
remove some stuff that is in the lib now
2002-09-25 01:12:16 +00:00
David Schleef
5dae30af2f
add some error checking
2002-09-25 01:11:47 +00:00
David Schleef
cd6660ec58
Fix mistake getting buffer head position
2002-08-06 19:39:31 +00:00
David Schleef
f3ef54ca5c
Handles range,maxdata information correctly. Internal triggering works.
2002-06-07 00:16:42 +00:00
Frank Mori Hess
303d9e7ff1
fix INTTRIG insn
2002-05-22 16:44:42 +00:00
David Schleef
d59513479b
Use n_scans as the number of samples to measure.
2002-05-11 06:43:30 +00:00
David Schleef
0c0a3440db
Get rid of spurious "subdevice does not support commands" warnings.
2002-05-10 19:08:58 +00:00
Frank Mori Hess
2a637ef62c
replaced call to comedi_get_front_count() with call to identical comedi_get_buffer_offset()
...
since that is the function that is actually declared in comedilib.h
2002-04-16 20:51:56 +00:00
Frank Mori Hess
79614184d3
fixed error checking that tested for unsigned variables being negative
2002-04-02 19:55:33 +00:00
David Schleef
e3ab787c66
Added multi-channel support
2002-03-18 22:11:32 +00:00
David Schleef
ede9462423
perl demo
2002-03-18 21:52:13 +00:00
David Schleef
af2f7409a2
Changes to make it a little more robust
2002-03-18 21:50:40 +00:00
David Schleef
049c585b23
Make it work with the parallel port again
2002-01-22 09:34:49 +00:00
David Schleef
575761aed2
Fix to make the demo programs link statically with the local
...
library.
2002-01-21 00:33:05 +00:00
Frank Mori Hess
52a2615b4c
included string.h for declaration of memset.
2002-01-08 20:38:16 +00:00
David Schleef
b1886b0378
Removed comedi_poll(), since it was moved to comedilib
2001-10-24 22:25:51 +00:00
Frank Mori Hess
a6f0492b24
fixed bug that I did that was noted by allan willcox
2001-08-31 23:19:52 +00:00
Frank Mori Hess
ea27e98235
modified to work with TRIG_INT, made it use the -F command line option to
...
set update frequency
2001-08-24 19:08:55 +00:00
David Schleef
3298f1fcc5
Fix includes
2001-07-30 20:38:54 +00:00
Frank Mori Hess
58b905a8c3
made insn demo take 10 samples again as it originally did
2001-07-25 15:53:57 +00:00
David Schleef
6e9354dc5d
Add a few comments about recent changes in demos
2001-07-15 23:52:13 +00:00