05-09-2022 07:25 AM
Hi,
I using the cmd System Exec.vi to call the WinSAT.exe and it is executing the winsat.exe (winsat formal -v) by opening the other winsat command prompt and the "standard output " string of System Exec.vi is empty. How to read or get the output from the winsat command prompt or as winsat.exe has built in the command line, is there any way to direct the WinSAT.exe instead of using the cmd line to WinSAT.exe?
Thanks in advance!!
05-09-2022 12:08 PM - edited 05-09-2022 12:09 PM
It's all pretty confusing. You claim to call WinSAT.exe from LabVIEW and that this then calls winsat.exe in turn. Considering that Windows is not using case sensitive filenames this can't even start to work. So can you explain more?
If you really try to call an exe that calls another exe, you only will see the standard IO from the secondary exe, if the primary exe explicitly hooks the standard IO from the child and then forwards that information to its own standard IO. And you can only see the standard IO from the called exe in LabVIEW if you set Wait for Completion? to TRUE. Otherwise LabVIEW does not try to hook the standard IO of that process, since that process may and almost always still is executing when LabVIEW returns from SystemExec.