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
(2,076 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:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x11cCAA&l=en-US#toc2

 

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

https://www.ni.com/docs/en-US/bundle/teststand/page/duplicating-com-references-in-labview.html

 

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