gpib.conf 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /***********************************************************************
  2. GPIB.CONF IEEE488 library config file
  3. -------------------
  4. copyright : (C) 2002 by Frank Mori Hess
  5. (C) 1994 by C.Schroeter
  6. email : fmhess@users.sourceforge.net
  7. ***************************************************************************/
  8. /***************************************************************************
  9. *
  10. * Syntax:
  11. *
  12. * interface { ... } starts new interface board section
  13. * device {...} device configuration
  14. *
  15. ***************************************************************************/
  16. /* This section configures the configurable driver characteristics
  17. * for an interface board, such as board address, and interrupt level.
  18. * minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, etc.
  19. */
  20. interface {
  21. minor = 0 /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */
  22. board_type = "ni_pci" /* type of interface board being used */
  23. name = "violet" /* optional name, allows you to get a board descriptor using ibfind() */
  24. pad = 0 /* primary address of interface */
  25. sad = 0 /* secondary address of interface */
  26. timeout = T3s /* timeout for commands */
  27. eos = 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage return */
  28. set-reos = yes /* Terminate read if EOS */
  29. set-bin = no /* Compare EOS 8-bit */
  30. set-xeos = no /* Assert EOI whenever EOS byte is sent */
  31. set-eot = yes /* Assert EOI with last byte on writes */
  32. /* settings for boards that lack plug-n-play capability */
  33. base = 0 /* Base io ADDRESS */
  34. irq = 0 /* Interrupt request level */
  35. dma = 0 /* DMA channel (zero disables) */
  36. /* pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver */
  37. /* pci_bus = 0 */
  38. /* pci_slot = 7 */
  39. master = yes /* interface board is system controller */
  40. }
  41. /* This is how you might set up a pcIIa board on /dev/gpib1, uncomment to use. */
  42. /*******************
  43. interface {
  44. minor = 1
  45. board_type = "pcIIa"
  46. pad = 0
  47. sad = 0
  48. timeout = T3s
  49. eos = 0x0a
  50. set-reos = yes
  51. set-bin = no
  52. base = 0x2e1
  53. irq = 7
  54. dma = 1
  55. master = yes
  56. }
  57. *********************/
  58. /* Now the device sections define the device characteristics for each device.
  59. * These are only used if you want to open the device using ibfind() (instead
  60. * of ibdev() )
  61. */
  62. device {
  63. minor = 0 /* minor number for interface board this device is connected to */
  64. name = "voltmeter" /* device mnemonic */
  65. pad = 7 /* The Primary Address */
  66. sad = 0 /* Secondary Address */
  67. eos = 0xa /* EOS Byte */
  68. set-reos = no /* Terminate read if EOS */
  69. set-bin = no /* Compare EOS 8-bit */
  70. }
  71. device {
  72. minor = 0
  73. name = "scope"
  74. pad = 8
  75. sad = 0
  76. }