03-01-2016 03:20 AM
I've been tinkering with the idea of writing a ping using the LabVIEW natives. The packet structure is very well defined and documented.
https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
https://tools.ietf.org/html/rfc792
I'm a little shocked someone from NI hasn't done this and included it in the native pallet, unless I'm missing something.
03-01-2016 03:22 AM
Ping uses ICMP the layer below TCP or UDP, so I don't think it can be done. I looked briefly yesterday but I didn't think that the LabVIEW primitives would let us go that low. I would be happy to be proved wrong Mike
03-01-2016 03:29 AM
Just remembered I had found this before.
Can't remember the original author, or where it came from sadly.
https://decibel.ni.com/content/docs/DOC-47082
03-01-2016 04:06 AM
Just tried the link for the doc and ........
`It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.`
03-01-2016 04:08 AM
It says it's still awaiting moderation approval. Don't know how long that normally takes
03-01-2016 04:19 AM
I have to say I was quite surprised there was not a basic Ping vi from NI, or something to check network status quickly.
Certainly the System Exec Vi can do it but I don`t feel comfortable with it. (Not sure why).
Its a relief to hear I`m not just being thick and have missed the easy way to do it!
03-01-2016 04:23 AM
I've used the basic ping from the system exec (with some options on the command line) and it works just fine. Like you I always feel a little uncomfortable on the command line and I don't really know why. I've written some nice easy microservices on the command line and have never had a problem with it.
Steve
Opportunity to learn from experienced developers / entrepeneurs (Fab,Joerg and Brian amongst them):
DSH Pragmatic Software Development Workshop
03-01-2016 08:00 AM
03-01-2016 08:05 AM
Hi Richard,
Any chance you could save it down as version 2014 please?
Thanks in advance,
Nick
03-01-2016 08:16 AM
Done