LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

fail in cleanup

I have a test library created by LabWindows ver 6.0 and a sequence
file running in TestExec ver 2.00. Occasionally when one of the tests
fails, say because of a measurement being out of limit, the reported
Result will be "FAIL (in cleanup function)" instead of "*** FAIL ***".
As far as I know my cleanup function isn't actually failing. The
cleanup function returns a 1 if if can execute without problems and a
0 if there problem. The "FAIL (in cleanup function)" occurs even when
the cleanup function returns a 1. I have verified this by placing
MessagePopups in every location where the function could a 0. I have
also verified this by intentionally always returning a 1 in my cleanup
function. Could someone give me some hints as to how to go about

debugging this problem? Also it would be helpful to me if someone
could point me to information on the correct way to write cleanup
functions.

Thanks
0 Kudos
Message 1 of 3
(2,786 Views)
Kevin,

Are you using TestStand 2.0 or Test Executive 2.0?

If you are using TestStand 2.0, when you say, "the reported Result will be 'FAIL (in cleanup function)' instead of '*** FAIL ***'", do you see that in the actual text of the report? If so, is it listed as the result of a step?

I'm not sure what you mean by a cleanup function? Is that a step in the Cleanup group?

Reply back with some more info and I'll see what I can do to help you out.

Best Regards,

Matt P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,786 Views)
Test Executive 2.0.

We have both TestStand 2.0 and Test Executive 2.0 but the particular problem I'm inquiring about here is happening on Test Executive 2.0
0 Kudos
Message 3 of 3
(2,786 Views)