/*
Thanks Chris! Do you know if that would be considered a "clean" (normal LabVIEW) exit? Would LabVIEW be able to do whatever "house keeping" it does upon regular application termination? -Ed
*/
hello
well, i would say "no". the call of exit kills the process, i.e. the instance of your LabView RTE. the only things cleaned up by the call of exit in a standard c-app are those initialized with atexit (if my memory hasn't left me). so, in your place i would clean all things opened by my self (files, DAQ, etc) BEFORE the call of exit, but the things opened by the LabView RTE (services etc.) may be just killed. but, for more info regarding exit visit msdn.com.
hmmm..
if you want to be save, you could create a textfile containing the errorcode at the end of your app, exit LabView RTE with the LV-Exit function, and then read the textfile in your batch (there are some batch-commands for such purposes)!
let us know
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"