09-06-2016 11:47 AM
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!
Solved! Go to Solution.
09-07-2016 06:12 PM
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.
09-08-2016 06:46 AM
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.
09-08-2016 10:37 AM
Setup a testsystem
install driver
activate wireshark
connect to device
🙂
09-09-2016 06:29 AM
Thank you Henrik, I was hoping to get a look at the commands before I actually buy the unit.
09-09-2016 07:16 AM
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.