jmg Posted February 23, 2011 Report Share Posted February 23, 2011 I am writing a LabVIEW application that is launched by another system. The system will look at the return code (%ERRORLEVEL% in windows) when the application finishes and will also display anything that comes out on stderr to the user. How do I set the return code from within LabVIEW? How do I write to standard error? I've searched quite a bit but found nothing. Thanks for your help. Quote Link to comment
John Lokanis Posted February 24, 2011 Report Share Posted February 24, 2011 LabVIEW applications do not run as console apps. But, there are some trick you can play using .NET and Win32 dll calls. Read though this thread: Running LabVIEW as a CONSOLE app Quote Link to comment
jmg Posted February 24, 2011 Author Report Share Posted February 24, 2011 Thank you John! That is a big help. I had not yet stumbled onto the fact that the program that launched the .exe would not wait for it to complete! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.