Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Detection if ENET-485/2 if active in application

How can i detect if the ENET 485/2 device is active and i can connect to a port. When i request a connect, for example serial.open, and the ENET 485/2 is switched off, the detection time for testing if the port exist takes a long time.
Then i have to restart my computer when i want to connect it later, even when i had turned on the enet device by now.
What have i to do to prevent restarting my computer after a try to connect a enet device what is switched off?

Thanks so far.
0 Kudos
Message 1 of 3
(3,297 Views)
You can "ping" the enet (based on its Hostname or IP address).
0 Kudos
Message 2 of 3
(3,297 Views)
Hi,

There was a more lengthy answer to a very similar question at http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=5065000000080000003C6F0000&ECategory=Instrument+Connectivity.GPIB . In the end, SanJay was correct, and a ping operation would work the best.

I am not sure why you would need to reboot to bring communication back up. It could be that DHCP is assigning the box a different IP. You should try refreshing the device list in MAX (Use the F5 command).

Hope this helps out!

Best Regards,
Aaron K.
Application Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,297 Views)