Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a driver for the GPIB-ENET100 in C++ based on a Linux machine

Solved!
Go to solution

I've picked up some remnants of a driver for this device and I'm trying to ressurect it for a new project.

 

Basic comms between the host and the GPIB-ENET device are working OK, I can scan the GPIB bus for instruments and pick up the address of the connected analyser sucessfully.

 

But, if I try and write commands to the instrument I get a GPIB error.

 

Communication works fine using the windows based NI explorer tool so I captured the Ethernet traffic and found several message types that I don't recognise. It also appears to be sending messages on port 5015 as well as the main port 5000.

 

SO, my question: Is there a document covering the interface with this device at a low-level TCP message level? Or, as I suspect, is this stuff secret and I'm expected to buy some expensive software from NI?

0 Kudos
Message 1 of 2
(3,201 Views)
Solution
Accepted by topic author proteus

SOLVED.

 

After connecting to the GPIB-ENET100 using ibfind and setting various options at board level it is essential to drop and reconnect the socket before attempting to connect and communicate at device level.

 

My version of ibfind opens a socket and my version of ibonl closes the socket when called to set a board/device offline.

 

The driver now works perfectly.

0 Kudos
Message 2 of 2
(3,118 Views)