LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

There is a delay in the PING server using system exec.vi.

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.

0 Kudos
Message 1 of 17
(4,399 Views)

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

0 Kudos
Message 2 of 17
(4,394 Views)

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?

0 Kudos
Message 3 of 17
(4,377 Views)

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

0 Kudos
Message 4 of 17
(4,342 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 17
(4,322 Views)

Sorry, I tried it according to what you said, but it didn't improve.

0 Kudos
Message 6 of 17
(4,318 Views)

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.

0 Kudos
Message 7 of 17
(4,316 Views)

Attached is my computer running condition.

0 Kudos
Message 8 of 17
(4,305 Views)

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.

0 Kudos
Message 9 of 17
(4,262 Views)

@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.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 10 of 17
(4,257 Views)