LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

d

Ok I normally use return FAILURE , which is defined as -1.  to end the program.  this case only happens when an condition fails for me.

 

 

 

EBALCI :

 

now that i think about it, Im not using in graphical user interfaces in my program, my code is a standalone automation code, so I dont i really need to be

using QuitUserInterface(); should I use exit(0); to end the program, Failure I want to shut the program down.

so what should i do in this case? 

0 Kudos
Message 61 of 63
(837 Views)

I have no access to a CVI system now so I cannot confirm it, but I seem to remember to have read something like CVI implementation of exit () does not permit the command to pass the parameter back to the OS. You could go and read the online help: I may be wrong but if this is true a discussion on it has no sense at all.

 

 

*Edit*

I have found it on NI site:

Due to the way that this function is implemented, the exit status value entered into this parameter is ignored.

Message Edited by Roberto Bozzolo on 11-28-2009 10:09 AM


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 62 of 63
(830 Views)
so my question is how would i end the program? by return FAILURE right which is -1?
0 Kudos
Message 63 of 63
(827 Views)