Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-ENET/1000 Command Reference

Solved!
Go to solution

Hello,

 

I would like to control GPIB instruments via Ethernet using my own software

fom a Linux box.  Not planning to use MAX and/or any other NI software/drivers.

I need to be able to talk to the GPIB-ENET/1000 via C commands like:

 

  socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

  connect(socket, ...);
  send(socket, "something", ...);
  recv(socket, where_to, ...);

 

Is this something that can be done?

Is there a reference document summarizing GPIB-ENET/1000 commands

that I must use to communicate with GPIB instruments?

 

  Thanks!

 

0 Kudos
Message 1 of 6
(4,477 Views)
Solution
Accepted by topic author svcher

Hi,

 

You will need an NI Driver to communicate with an NI device. The driver you would need is NI 488.2 and can be found here for Linux:

http://www.ni.com/download/ni-488.2---linux-15.1.1/5926/en/

 

This comes with a C API so you can use any C programming environment you would like.

Nolan H.
Applications Engineer
National Instruments
Message 2 of 6
(4,441 Views)

Thank you Nolan.

I understand that there is no way to communicate with GPIB-ENET/1000 using simple TCP/IP,

one has to install the driver and communicate through the driver.  This is not a good solution for me since I was hoping to be able to control equipment using a remote Linux machine that belongs to a computer farm.  I cannot tell which computer I will be logging in ahead of time, and I cannot pre-install the driver on all computers on the farm.

 

0 Kudos
Message 3 of 6
(4,431 Views)

Setup a testsystem

install driver

activate wireshark

connect to device

🙂

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 6
(4,425 Views)

Thank you Henrik, I was hoping to get a look at the commands before I actually buy the unit.

0 Kudos
Message 5 of 6
(4,416 Views)

The question is: HP/AG/KS also made* such units... maybe they provide such informations??

 

*) I have a HP E2050A , not 1000 , more 10 Base T  🙂  and I have no idea if  more recent units are available.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 6
(4,413 Views)