board_info -> comedi_board_info

147 views
Skip to first unread message

Bernd Porr

unread,
May 2, 2012, 1:17:57 PM5/2/12
to comed...@googlegroups.com
I think it would be great if we could move the board info into the
normal install path (e.g./usr/bin and not /usr/share/doc/...) so that
the command is available to users. It's very useful for people writing
code and gives quickly all the relevant info. So thought it's a good
idea to move that from the demo dir to a standard binary location? I can
do that.

/Bernd

bp1@bp1-desktop:~/sandbox/comedilib/demo$ ./board_info
overall info:
version code: 0x00074c
driver name: usbduxsigma
board name: usbduxsigma
number of subdevices: 4
subdevice 0:
type: 1 (analog input)
flags: 0x10119000
number of channels: 16
max data value: 16777215
ranges:
all chans: [-1.325,1.325]
command:
start: now|int
scan_begin: timer
convert: now
scan_end: count
stop: none|count
command fast 1chan:
start: now 0
scan_begin: timer 250000
convert: now 0
scan_end: count 1
stop: count 2
subdevice 1:
type: 2 (analog output)
flags: 0x00125000
number of channels: 4
max data value: 255
ranges:
all chans: [0,2.5]
command:
start: now|int
scan_begin: timer
convert: now
scan_end: count
stop: none|count
command fast 1chan:
start: now 0
scan_begin: timer 1000000
convert: now 0
scan_end: count 1
stop: count 2
subdevice 2:
type: 5 (digital I/O)
flags: 0x00030000
number of channels: 24
max data value: 1
ranges:
all chans: [0,5]

--
www: http://www.berndporr.me.uk/
http://www.linux-usb-daq.co.uk/
http://www.imdb.com/name/nm3293421/
Mobile: +44 (0)7840 340069
Work: +44 (0)141 330 5237
University of Glasgow
School of Engineering
Rankine Building, Oakfield Avenue,
Glasgow, G12 8LT

Ian Abbott

unread,
May 2, 2012, 1:32:08 PM5/2/12
to comed...@googlegroups.com
On 2012/05/02 06:17 PM, Bernd Porr wrote:
> I think it would be great if we could move the board info into the
> normal install path (e.g./usr/bin and not /usr/share/doc/...) so that
> the command is available to users. It's very useful for people writing
> code and gives quickly all the relevant info. So thought it's a good
> idea to move that from the demo dir to a standard binary location? I can
> do that.
>
> /Bernd

Sounds reasonable. My only gripe is that the binary has neither any
command line help nor a man page. (comedi_test doesn't have a man page
either, but at least it has a -h option.)

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

Bernd Porr

unread,
May 2, 2012, 8:35:54 PM5/2/12
to comed...@googlegroups.com
I've added the command:

comedi_board_info

to comedilib which will be installed in the normal bin directory. I've
also created a man page.

Attached are the outputs. Standard and verbose. The verbose version
tells the user now quite a lot about the asynchronous
acquisition and also provides human readable output of the device flags.

/Bernd

On 02/05/12 18:32, Ian Abbott wrote:
> On 2012/05/02 06:17 PM, Bernd Porr wrote:
>> I think it would be great if we could move the board info into the
>> normal install path (e.g./usr/bin and not /usr/share/doc/...) so that
>> the command is available to users. It's very useful for people writing
>> code and gives quickly all the relevant info. So thought it's a good
>> idea to move that from the demo dir to a standard binary location? I can
>> do that.
>>
>> /Bernd
> Sounds reasonable. My only gripe is that the binary has neither any
> command line help nor a man page. (comedi_test doesn't have a man page
> either, but at least it has a -h option.)
>

--
usbduxsigma.txt
usbduxsigma2.txt
Reply all
Reply to author
Forward
0 new messages