NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CTD Preparation Tips - New Format By Coding (since April 2020)

Really helpful information ! I learnt quite some stuff 🙂

I have a point to make regarding your solution though. When a Test Fixture Initialization error occurs, you jump to Addition Results Step and thus skip the Cleanup. But the Initialization is done for DMM, PSupply and SP25 in 3 sequential steps. If an Error occurs in you 2nd or 3rd Init step and you jump to Additional Results step at end, the sequence will skip closing the devices you successfully initialized before the Error occurred.

Wouldn't that be against recommendations ?

0 Kudos
Message 11 of 13
(506 Views)

It's been too long to remember what I did here, but yes.  I can't think of a good reason to skip cleanup ever.

CLA
0 Kudos
Message 12 of 13
(495 Views)

Hi, 

I am also preparing for the CTD exam. for your remark about closing the other references.

You can set the RunState.SequenceFailed to true on the post expression of the init step if the error occured.

In that way, the sequence Init will Fail and go to the cleanup of the main sequence.

Chakib11_0-1777114646289.png

 

 

Chakib11_2-1777114161114.png

 


 
 

 

0 Kudos
Message 13 of 13
(346 Views)