Hi,
To check if all devices work OK I'm using expression ( systime() - temp_gorice.time[0] > 5 )..Now I need to check other IP devices eg. TCP/RS232, access points, IP printers , IP cams that is not modbus so only solution is to ping them.
so here I need to make sequence like this...
function checkPing(string ip, string path)
system.ShellExecute("cmd","","/C ping " + ip + " > " + path, "", "hide")
delay(5)
private h = file.Open(path,1,0,0,0)
private string data = file.Read(h, file.GetLength(h))
file.Close(h)
return(find(data,"TTL=",0) != -1)
I want to show for every device on network their TTL time like...
node 12 ( Lexmark printer, room 12) : 12ms
node 15 ( IP cam, room 14): 10ms
etc...
please see screen, is that OK ? DF freezes..
what should be there ... string path --> path to txt file with ping results... ??