Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IP port for GPIB over IP service

Hi,

 

Using MAX I'd like to connect to the device which is behind the router. (Router's IP is known and public)

 

Do do this I'd normally forwarded the port on the router, but what port is used to communicate with the instrument?

 

When I did scan the ports on the device (from local network) it looks like no port os open.

 

Cheers,

 

K.

 

 

0 Kudos
Message 1 of 4
(4,022 Views)

Hi MimiKLM,

 

A list of all of the ports that you should forward can be found on this page ( I assumed you are using an ENET-GPIB deivce and not a USB-GPIB device? 😞

 

http://digital.ni.com/public.nsf/allkb/CEF5A3568A5DA71D8625732800520EA1?OpenDocument

 

Hopefully this should help you connect to your GPIB device.

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 4
(3,987 Views)

Almost there,

 

I forwarded ports 5000 to 6000 and 44516 both TCP/UDP.

 

And I have some strange behaviour. I got the data back but with timeout error.

 

Any thoughts more?

 

Image.png

0 Kudos
Message 3 of 4
(3,967 Views)

Hi MimiKLM,

 

There could be a few reasons for the timeout in this case, it looks to me that you are looking to read 1024 bytes, and the program is timing out after having read 1024 bytes and not being able to find the remaning data, it could also be due to the set up of things like the baud rate, stop bits etc. This page gives a few good steps on reasons behind the timeout error:

 

http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 4 of 4
(3,954 Views)