Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to request service using a GPIB board in a PC

Hello,
 
I want to program some C++ code to communicate between 2 pc's and some more IEEE 488(.2) devices.
To start of, I'm playing with the Interactive control. Is it possible to request service from the non-CIC PC using the Interactive control commands?
 
I found the ibrsv command, which should do just that, but this doesn't seem to work: when using ibrsv I am told to use IBFIND or
IBDEV to open a device tom communicate with, but when I open a device (the CIC), I get the error ECIC... Of course I'm not the controller in charge, I want service!
 
 
Best regards,
Maarten
0 Kudos
Message 1 of 4
(3,471 Views)
For some extra info: I am using two pc's, one with a PCI board and one with a PCI-e board. The PCI board is GPIB0, PAD 0, configured as CIC and is also System Controller, set by the NI MAX utility.
The PCI-e board is GPIB1, PAD 1, and NOT System Controller.
 
I have succeeded in accessing a third device: a Fluke TV signal generator. Both pc's can read/write to this device. Of course for the GPIB1 PC to do so, it needs to revieve (temporary) control from GPIB0 using ibpctl. This does show that the PC's can detect each other and communicate.
0 Kudos
Message 2 of 4
(3,467 Views)
To be a device, you must use board-level commands (ibfind "GPIB0" instead of ibfind "dev1" or ibdev).  With a proper board handle, you should be able to call ibrsv.
0 Kudos
Message 3 of 4
(3,463 Views)
Thank you, this has helped.
0 Kudos
Message 4 of 4
(3,458 Views)