Hello
I am using an old PCI computer to connect to a PM6666 counter.
My interface is a NI PCI GPIB board.
Output of the lspci command:
03:0b.0 Communication controller: National Instruments PCI-GPIB (rev 02)
Subsystem: National Instruments PCI-GPIB
Flags: bus master, medium devsel, latency 64, IRQ 23
Memory at feaff000 (32-bit, non-prefetchable) [size=2K]
Memory at feaf8000 (32-bit, non-prefetchable) [size=16K]
Kernel modules: tnt4882
I have tried to get its model with this script:
import sys
import time
import Gpib
inst = Gpib.Gpib(0,6) # Device address 6
time.sleep(1)
inst.write("ID?\n")
time.sleep(1)
str = inst.read(40)
print str
The counter switches to remote but then issue an error:
Traceback (most recent call last):
File "test_gpib.py", line 14, in <module>
inst.write('ID?\n')
File "/usr/local/lib/python2.7/dist-packages/Gpib.py", line 49, in write
gpib.write(self.id, str)
gpib.GpibError: write() failed: A read or write of data bytes has been aborted, possibly due to a timeout or reception of a device clear command.
Here is my gpib.conf:
interface {
minor = 0 /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */
board_type = "ni_pci" /* type of interface board being used */
name = "violet" /* optional name, allows you to get a board descriptor using ibfind() */
pad = 6 /* primary address of interface */
sad = 0 /* secondary address of interface */
timeout = T10s /* timeout for commands */
eos = 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage return */
set-reos = yes /* Terminate read if EOS */
set-bin = no /* Compare EOS 8-bit */
set-xeos = no /* Assert EOI whenever EOS byte is sent */
set-eot = yes /* Assert EOI with last byte on writes */
master = yes /* interface board is system controller */
}
I tried as well with ibtest command and write RL1, but there is still an error
: w
enter a string to send to your device: RL1
sending string: RL1
gpib status is:
ibsta = 0xc100 < ERR TIMO CMPL >
iberr= 6
EABO 6: Operation aborted
ibcntl = 0
I am now stuck! Anything else I could try?
Thanks in advance
Walter