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: 

closing a step reference

Hello

What is the proper method to use to close an open sequence step reference?  I can't seem to find one under any of the object classes methods.

 

thanks

0 Kudos
Message 1 of 4
(2,933 Views)

Hi,

 

It depends on what programming language you are using.

If its just in TestStand then setting the variable to Nothing will release the object reference.

 

ie

Locals.objref = Nothing

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(2,922 Views)

If you are using Object Reference type Property Objects to store references, then there is no need to set those variables to nothing or null.  When the variable leaves scope (i.e. when the sequence or execution finishes), TestStand will automatically release the references.

 

This is one advantage to using the TestStand API from a sequence, you don't have to worry about closing the references, because the Engine will do it for you.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 3 of 4
(2,905 Views)

ok good info,

thanks

0 Kudos
Message 4 of 4
(2,903 Views)