CSLUG - Central South LabVIEW User Group (UK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Availability Check

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.

0 Kudos
Message 11 of 22
(2,341 Views)

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

0 Kudos
Message 12 of 22
(2,341 Views)

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

0 Kudos
Message 13 of 22
(2,341 Views)

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.`

0 Kudos
Message 14 of 22
(2,341 Views)

It says it's still awaiting moderation approval. Don't know how long that normally takes

Message 15 of 22
(2,341 Views)

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!

0 Kudos
Message 16 of 22
(2,341 Views)

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


Random Ramblings Index
My Profile

Message 17 of 22
(2,341 Views)
0 Kudos
Message 18 of 22
(2,341 Views)

Hi Richard,

Any chance you could save it down as version 2014 please?

Thanks in advance,

Nick

0 Kudos
Message 19 of 22
(2,341 Views)

Done

Message 20 of 22
(2,341 Views)