LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec undefined error

Solved!
Go to solution

I am getting error code: 205103168 (0x0C39A040) source: "System Exec.vi. Command was "ping  -n 1 -w 100""

 

Yes, I am aware that the command is ill formed and doesn't ping anything. When executed, the standard output says that I should specify an address, but without error.

 

I was unable to replicate this error myself, it is from error log from a client. So I suppose this error occurs rarely. I found that the System Exec can throw Windows errors too, but for this error I found no record with Google. So I doubt it is a Windows error. Any clues?

 

 

0 Kudos
Message 1 of 3
(330 Views)

@VitSlay wrote:

I am getting error code: 205103168 (0x0C39A040) source: "System Exec.vi. Command was "ping  -n 1 -w 100""

 

Yes, I am aware that the command is ill formed and doesn't ping anything. When executed, the standard output says that I should specify an address, but without error.

 

I was unable to replicate this error myself, it is from error log from a client. So I suppose this error occurs rarely. I found that the System Exec can throw Windows errors too, but for this error I found no record with Google. So I doubt it is a Windows error. Any clues?

 

 


Typically an undefined error is a custom error that didn't get added into the error.txt (or the file was left out of the deployment).  If you are the developer, buried within your code, someone said, "throw this error when something happens".

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 2 of 3
(295 Views)
Solution
Accepted by topic author VitSlay

While System Exec looks like it is the Command Line window, it is not! It directly Creates the process from the command line and that also means that whatever the process returns as return value will be interpreted as error code.

 

If you want the command line handling you have to add the according command to the System Exec command line:

 

cmd ping ………..

 

This will launch cmd.exe and pass it the rest of the command line to execute. That will give you a similar behavior than what you get in the Command Line window.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGivCAG&l=nl-NL

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 3
(271 Views)