1comedi_config(8) System Manager's Manual comedi_config(8)
2
3
4
6 comedi_config - COMEDI configuration utility
7
9 comedi_config [-vVq] /dev/comediN <driver> [<option1>[,<option2>...]]
10
12 comedi_config is used to configure comedi drivers. You must have
13 comedi support compiled into your kernel or loaded as a separate module
14 in order to use this utility. Each control and measurement device is
15 associated with a particular comedi device file /dev/comediN, where N
16 is 0,1,2,3, etc. Comedi_config allows you to associate a particular
17 driver and device with a comedi device file, and also configure driver
18 parameters for the particular device.
19
20 Comedi_config can be used with optional parameters which are driver
21 dependent. Parameters are specified by comma-delimited list of inte‐
22 gers. The integers may be expressed as decimal, hexidecimal (starting
23 with 0x) or octal (stating with 0). In addition, a parameter may be
24 left blank, indicating 0. PCI-based devices typically require no
25 parameters, although some allow you to specify the bus and slot of the
26 card to configure as the first two parameters. ISA-based devices typi‐
27 cally use the first and second parameters to indicate I/O base address
28 and interrupt level.
29
30 More information about the parameters required by individual drivers
31 can be found in the comedi documentation, in the file drivers.txt.
32
33
34
35
37 comedi_config recognizes the following options:
38
39 -q, --quiet don't print output while running.
40
41 -v, --verbose print verbose output while running.
42
43 -V, --version print version number and exit.
44
45 -r, --remove remove previously configured driver.
46
47
48 --read-buffer num
49 set read buffer size to num kilobytes. The default size is 64k.
50
51
52 --write-buffer num
53 set write buffer size to num kilobytes. The default size is
54 64k.
55
56
57 -i, --init-data, --init-data0 file
58 upload initialization data (typically firmware) from file to
59 board.
60
61
62 --init-data1 file
63
64 --init-data2 file
65
66 --init-data3 file
67 Some drivers require more than one file for initialization data.
68 Use these options to specify additional initialization data
69 files. See the driver-specific documentation for further
70 details.
71
72
73
75 [This section has not been implemented yet.]
76
77 A list of device configurations can be put into the file
78 /etc/comedi.conf. This file takes the form
79
80 <device> <driver> <param1>,<param2>,...
81
82 These configurations will be read and performed when the switch -a is
83 used. This is potentially useful when run from an initialization
84 script.
85
86
88 A National Instruments PCI-MIO E series board can be configured to use
89 /dev/comedi0 using the command:
90
91 comedi_config /dev/comedi0 ni_pcimio
92
93 A National Instruments AT-MIO E series board can be configured to use
94 /dev/comedi3 using the command:
95
96 comedi_config /dev/comedi3 ni_atmio 0x220,3
97
98 This tells the driver that the board is configured for I/O base 0x220
99 and IRQ 3.
100
101
103 Additional text documentation can be found in
104 /usr/doc/comedilib-0.7.11. The current version of Comedi and Comedilib
105 can be obtained from ftp://ftp.comedi.org/pub/comedi. The Comedi web
106 site is located at http://www.comedi.org/comedi.
107
108
110 comedi(7)
111
112
114 0.7.x
115
116
118 David Schleef, <ds@schleef.org>
119
120
121
122
123 comedi_config(8)