04-25-2011 04:41 AM
Is there any ways other than TCP/IP or FTP to ping and check whether a particular network device is present or not in the network by using RT controller ??
Thanks,
Nanda
04-25-2011 10:56 AM
I believe there is a vi called 'find all targets.vi' in the system configuration api
05-01-2011 05:08 AM
The "Find Targets" VIs will only find NI RT controllers. If you want to do an ICMP ping to a non-NI device it will not do what you want.
A while back I wrote up this VI to do an ICMP ping on Windows, PharLap, and VxWorks controllers that should still work. On VxWorks devices there was a bug in the WindRiver implmentation that would incorrectly add a delay to the round-trip time---I do not know if this has been fixed.
Eric
05-10-2011 04:57 PM
Nice VI thanks!
11-18-2011 04:27 AM - edited 11-18-2011 04:28 AM
@BlueCheese wrote:
The "Find Targets" VIs will only find NI RT controllers. If you want to do an ICMP ping to a non-NI device it will not do what you want.
A while back I wrote up this VI to do an ICMP ping on Windows, PharLap, and VxWorks controllers that should still work. On VxWorks devices there was a bug in the WindRiver implmentation that would incorrectly add a delay to the round-trip time---I do not know if this has been fixed.
Eric
I tried it on both my PC and a PXI-RT using LV2010 and it work perfectly!
The problem is I tried "translating" it to LabVIEW 7.1 and LV closses inmediately
Would you have an older version of the VI for PharLap?
11-18-2011 07:20 AM
Update!
My LV7.1 vi doesn't close inmediatelly anymore
However, it timesout on the "select" before the "recvfrom".
Any ideas?
Regards
07-02-2014 09:06 AM
This VI (after some clean-up) is AWESOME!
Thank you!
03-15-2018 05:11 PM
@BlueCheese wrote:
A while back I wrote up this VI to do an ICMP ping on Windows, PharLap, and VxWorks controllers that should still work.
Someone told me that this Ping.vi was broken on newer LVRT targets running PharLap (at least in 2016, but probably was broken when some parts of the network stack were upgraded a few years back). I took a quick look and fixed the VI. Attached is a 2017 version.
03-16-2018 03:32 PM
Can you save that back in 2016?
I went through and figured out a few things with the old ping.vi.
I'd bet if I understood why the above (timed structure + UI thread) were both required for this to work in ets, I'd know an awful lot more about how LabView works
03-19-2018 06:06 PM
I don't have a chance at the moment to save back to 2016. However, the only two changes needed are:
There is no issue with using sockets from multiple threads. I suspect the second issue was causing funny crashes that changed behavior depending which thread you were calling from.