Commit graph

9 commits

Author SHA1 Message Date
Ian Abbott
cbb8ca63c9 comedi_board_info: Clarify usage message
Put square brackets around "COMEDI_DEVICE" on the usage line to indicate
that it is optional, and add a line to indicate that it defaults to
"/dev/comedi0" if unspecified.

Also change "1Ghz" to "1 GHz" in the description of the -F option.
2018-03-07 11:27:42 +00:00
Mathias Neerup
49175cb240 getopt() returns int, not char. comedi_boarf_info keeps showing help, even though no parameters are specified. 2018-03-07 11:14:58 +01:00
Ian Abbott
e185d974ba comedi_board_info: improve display of external ranges.
The units for a range with internal unit code `RF_EXTERNAL | UNIT_volt` is currently
displayed as " (unknown unit 256)", for example an external bipolar
voltage range -1 to 1 is displayed as:

[-1 (unknown unit 256),1 (unknown unit 256)]

Change it to be displayed as:

[-1*EXT V,1*EXT V]
2012-10-15 16:18:47 +01:00
Ian Abbott
b1824dba8d comedi_board_info: reset n_chans_for_generic_timed for each subdevice
Add variable `def_n_chans_for_generic_timed` to hold the preferred
number of channels to use in calls to `comedi_get_cmd_generic_timed()`.
Reset the `n_chans_for_generic_timed` variable to this value each time
around the loop for each subdevice before clipping the value to the
number of channels the subdevice has.
2012-10-15 15:52:47 +01:00
Ian Abbott
1994c8d96c comedi_board_info: increased length of strtmp[]
`strtmp` is currently declared as `char strtmp[16]`, but that may be too
short for the calls to `unit_to_desc()` when the type of unit is
unknown.  Increase its length to 32.
2012-10-15 15:47:46 +01:00
Ian Abbott
0f77a92830 comedi_board_info: Moved man page into ../man
I'm not sure if all man pages should go in the general 'man'
subdirectory or a more specific subdirectory, but as the general 'man'
subdirectory already contained a man page for comedi_config (which has
its own source subdirectory), I moved the man page for comedi_board_info
there for consistency.

Also changed the EXTRA_DIST line in man/Makefile.am.
2012-05-14 14:35:23 +01:00
Bernd Porr
47b3edd6e2 Changed some of the descriptions for the SDF flags which were
a bit misleading.
2012-05-03 01:03:16 +01:00
Bernd Porr
33f3a2eada Just what I said in the git log is now also actually in the man page
namely that the frequency option is only there for debugging.
2012-05-03 00:52:13 +01:00
Bernd Porr
c22d498dc0 Added comedi_board_info which has been inspired by the original
info in the demo directory. I've made it a bit more verbose
and also took into account that now the generic_timed command
takes more than one channel so that a user can experiment which
sampling rates are possible with different channel numbers.
I've also added an option to set the sampling rate for the generic_timed
command. That sould actually not be needed but I'm sure there
are drivers out there which do not correct the sampling rate
downwards automatically.
2012-05-03 00:39:04 +01:00