LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why I have to set "Wait Until Completion" to F in order to make my vi work properly work when I pass param to system exec.vi

I got an error, please see the attachment. The runme.bat is "mercierxmodem COM11 "xmodem" c:\MercierPromptsEN.bin", its path is c:\runme.bat. I still can't make it work. 😞

 

 

0 Kudos
Message 11 of 15
(742 Views)

@weny wrote:

I got an error, please see the attachment. The runme.bat is "mercierxmodem COM11 "xmodem" c:\MercierPromptsEN.bin", its path is c:\runme.bat. I still can't make it work. 😞

 

 


Where else is Com11 open???

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 12 of 15
(735 Views)

Now I added another visa close before run this batch file, still doesn't work. The result I got is running forever till I close the cmd.exe window. But if I set Wait until Completion to F, I got nothing. Please see the attchment. Thanks!!!

0 Kudos
Message 13 of 15
(727 Views)

Well now the problem appears to be different.  So you're sending the file via xmodem... but is the client ready to receive it?

 

Did you add the VISA close there for troubleshooting purposes?  Normally, I'd trace the issue back to where it should've been closed and then close it there.

 

And I'm sure you know this, but setting the flag to false merely makes the VI ignore the fact that the command line is hung, and it's not really working properly?

 

Is this the only way to do it?  Instead of calling it from the command line, is there a dll it hooks into that you can call directly?

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 14 of 15
(705 Views)

Taking a A long shot here.

 

Try removing the working directory input and just use command line input ONLY.

 

 

 

0 Kudos
Message 15 of 15
(696 Views)