10-14-2018 07:41 AM
Using system exec. vi to PING servers, it's normal to run source code, but after producing. EXE files, there's an 8 s delay, which disappears automatically after 10 minutes.
10-14-2018 07:57 AM
How interesting! Why do you suppose that is happening? Note that you have all of the data, including the LabVIEW code that we can't "see", so we can't explain what your code is doing, we can't test your code on our systems, etc. So we will rely on you to figure out why your code on your system produces this interesting result, and then to write a followup report explaining this to all of us.
Or you could post your code and let us try to replicate your finding, and maybe do a little poking around and see if we can come up with a fix, ourselves, which we can post for the enlightenment of the Community.
Bob Schor
10-14-2018 09:38 AM
What is the significance of the 8s and 10min. Are these exact measurements or approximate? How do you measure them? When does the timer start? What else does the program do during the 10 minutes? Are you pinging by IP address or by name?
10-14-2018 08:13 PM
I am sorry to reply you now. I have two computers. Their network environment is different. In one computer, the source code and EXE have no delay, in another computer, the source code has no delay, the EXE will delay about 8S, each time there is a delay, this program will start 10 minutes later, the delay will disappear, 8s and 10min is an approximate value, I did not give him manual delay, this time is also I want to find out. Please see the pictures for the program
10-14-2018 09:06 PM
Excerpt from the LabVIEW help on system exec:
"(Windows) To use a command that must be executed directly from a command prompt window, insert cmd /c before the command."
Although I'm not certain this is the issue, it couldn't hurt to set up the command correctly.
10-14-2018 09:22 PM
Sorry, I tried it according to what you said, but it didn't improve.
10-14-2018 09:26 PM - edited 10-14-2018 09:37 PM
Hello, my situation please see the attachment, . I have two computers. Their network environment is different. In one computer, the source code and EXE have no delay, in another computer, the source code has no delay, the EXE will delay about 8S, each time there is a delay, this program will start 10 minutes later, the delay will disappear ,so I am not sure if there will be any delay in running this program on your computer.
10-14-2018 09:40 PM
Attached is my computer running condition.
10-15-2018 12:56 PM
That does sound odd, and I don't have a solution. But you might want to try a few other methods to perform a ping and see if they too have a long delay. Here is one solution I did a while ago to ping many IP addresses as quickly as possible using a 3rd party tool called PingInfoViewer which can be called from the command line. In the past I've embedded that EXE into the VI so that it is always there as a dependency. I've also seen other .Net solutions to pinging.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-15-2018 01:09 PM
@jiaojiao002 wrote:
I am sorry to reply you now. I have two computers. Their network environment is different. In one computer, the source code and EXE have no delay, in another computer, the source code has no delay, the EXE will delay about 8S, each time there is a delay, this program will start 10 minutes later, the delay will disappear, 8s and 10min is an approximate value, I did not give him manual delay, this time is also I want to find out. Please see the pictures for the program
Hmmm... now that you mention it, I might have been seeing the same issue across two computers for a while now, but never gave it a thought. Not the ten minute part but the 8 sec delay. I guess I'll have to poke around just like you. 🙂