From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-30-2014 05:15 AM
hi
friends, we want to ping several IP's simultaneously and we use .net functions , but when number of IP's are more than 5 IP, our program work slow and can not work on other part of panel, because this method is polling not event or interupt base. i see event handelr on .net methods and property but can not find out how work and I can not use it
any suggestion?
I attach simple code for .net ping
06-30-2014 05:18 AM
What happens if you set this VI as Reentrant and parallellize the IPloop? (assuming you loop through a list of IPs, else you should) 🙂
/Y
06-30-2014 05:50 AM
@meysam_b wrote:
hi
friends, we want to ping several IP's simultaneously and we use .net functions , but when number of IP's are more than 5 IP, our program work slow and can not work on other part of panel, because this method is polling not event or interupt base. i see event handelr on .net methods and property but can not find out how work and I can not use it
any suggestion?
I attach simple code for .net ping
When you say you cannot work on other part, I believe you are running this Ping in the same loop. Can you try this ping in a different loop? Also the timeout you mentioned is in Seconds?
06-30-2014 07:45 AM - edited 06-30-2014 07:46 AM
I had a similar need when I was looking to discover which ethernet cDAQ chassis were connected to my PC. I had a range of IP addresses to ping but whenever I would ping them it would take a long time to go through a list of say 100 IP addresses. I ended up using a command line tool by sysinternals which can ping multiple IP addresses simultaneously then report which ones were found. Here is the link.
http://forums.ni.com/t5/LabVIEW/Discover-cDAQ-Ethernet/m-p/2817584#M824878
Edit the IPs.txt in that after extracting the zip to a folder and it should return which IPs it found.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-01-2014 12:43 AM
thank you for very good reply
I try hoovahh solution and it is very good program. just I'm try match it for my application
one question, the programmer said some people reported that PingInfoView stop pinging after a few hours, this is worry me for reliable and stable work on my application. do you see this bug?
what should i do?
07-01-2014 04:38 AM
and another question , how can i use "ping every seconds" ? I can not use it,
my code attached, please see and edite it.
thanks.
07-01-2014 04:47 AM
here is my code 🙂
07-01-2014 07:32 AM
What in the world are you trying to do with this? If you want to look for IPs every second put my VI in a whiile loop and call it every second using the elapsed time VI. My code already returned an array of IP addresses found, what other information about the ping would you want to know?
I can't say I ran this code continuously for hours. I would use it once on startup to detect devices that are connected. Then if the user choose to I would rescan but generally this VI would only be ran once.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-01-2014 07:47 AM
a part of our program is ping monitoring, so we need continuously check IPs, this is important for me.
the code give us percent of alive IPs package, and if call whit external loop then we have 100% or 0% alive (for each ping) but i need real percent of alive.
one question: how it work? is it use .net functions? this is very fast. do you see source code of PingInfoView?
07-01-2014 07:52 AM
@meysam_b wrote:
a part of our program is ping monitoring, so we need continuously check IPs, this is important for me.
the code give us percent of alive IPs package, and if call whit external loop then we have 100% or 0% alive (for each ping) but i need real percent of alive.
one question: how it work? is it use .net functions? this is very fast. do you see source code of PingInfoView?
No idea what PingInfoView uses you'll need to contact sysinternals, I highly doubt souce code is available.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord