From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand References

The majority of my vi called by test stand, use Sequence Context In (ThisContext).  I never close this reference.  Will my sequence file eventually have problems in it's run for an extended duration? 

0 Kudos
Message 1 of 2
(1,779 Views)

You shouldn't have to close Sequence Context inside of your code module. General rule of thumb is that if you pass the reference in from TestStand, TestStand will handle closing it (not the VI). If you open a new reference (e.g. SequenceContext.Sequence) inside of a VI, you should close it:

http://www.ni.com/tutorial/52207/en/#toc2

 

Another gotcha is if you duplicate the reference, you need to close it yourself:

https://zone.ni.com/reference/en-XX/help/370052AA-01/tsapiref/infotopics/lv_duplicate_com/

 

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 2
(1,769 Views)