LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec.vi doesn't work properly with wait until set to True

Hello,

 

Thank you all for your help in advance. My system exec.vi doesn't work properly when "wait until completion?" is set to True. It seems to work partially though. I am trying to program Bluetooth module. This vi is part of larger system. see attach vi and picture.

 

However it works fine if wait until completion?" is set to False. I need window to be open after it is done programming or output to be display in standard output indicator.

 

Thank you again for your help.

Download All
0 Kudos
Message 1 of 9
(3,548 Views)

Are you sure it is working if you set it to false?

Does that command work if you don't do it from LabVIEW but from an actual Windows command prompt window?

 

The error message you show says "Untested Windows 10.0 version detected!".  That seems to be an error generated by the xxxxxxx.exe executable you are running as opposed to the way you are calling it in LabVIEW.  I think that if you set Wait Until Complete to False, it is still generating that error, but you just aren't seeing it.

0 Kudos
Message 2 of 9
(3,511 Views)

Hello RavensFan,

Are you sure it is working if you set it to false? Yes, it is works when set it to false. I have tested out by programming Bluetooth module and checked for transmit and receive on Bluetooth; and it does what it supposed to do.

 

Does that command work if you don't do it from LabVIEW but from an actual Windows command prompt window? Yes, it works in windows command. Currently, that is how it is being programmed.

 

This message "Untested Windows 10.0 version detected!" even comes up when programming thru windows command.

 

0 Kudos
Message 3 of 9
(3,500 Views)

What behavior do you actually want? Do you want the command window to remain open and ready for manual input once LabVIEW is done with it? It is out of the control of LabVIEW how the command window behaves once it is done.

 

(The wait for completion just determines if the LabVIEW code continues or not while the command prompt window is still executing. As the help explains, outputs are not available if you don't wait, because there cannot be data until the exe completes. Dataflow!)

 

What is your command line? Are you using the /k switch?

 

(Why would you concatenate a single string? It's a NOOP.)

Message 4 of 9
(3,478 Views)

Hello Altenbach,

 

Thank you for your input. I want the command window to be either open during programming or just labview outputs at standard output at end of programming.

 

I'm using /c switch. I am okay with /k but somehow it doesn't passes inputs wired to "standard input" (Bluetooth SN). I have to manually input Bluetooth SN again in window command prompt.

0 Kudos
Message 5 of 9
(3,451 Views)

Could you just redirect outputs to a temporary file and read that in LabVIEW?  So  end the command with something like >> c:\mytempfile.txt  ?

Message 6 of 9
(3,446 Views)

We cannot offer more suggestions unless you tell us exactly what all your inputs are. We are not clairvoyant!

0 Kudos
Message 7 of 9
(3,442 Views)

Hello altenbach.

 

It seems like the issue is Bluetooth programming tool that opens up windows command.

 

Amit

0 Kudos
Message 8 of 9
(3,419 Views)

I have a slight memory of reading of standard input issues before. What happens if you create a .bat-file with the parameter and run that instead?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 9
(3,413 Views)