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