NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to set an ActiveX reference to Nothing or test for "Nothing"-ness of an ActiveX reference?

In TestStand 2.0, is there a way to set an ActiveX reference to "Nothing"
(to use the Visual Basic term)? In other words, is there a way to release
the ActiveX DLL or EXE object without waiting for the ActiveX reference to
go out of scope?

Also, is there way to test whether or not a particular ActiveX reference has
been initialized (i.e. is or is not "Nothing")?

TIA,

Bob.
0 Kudos
Message 1 of 4
(3,225 Views)
Yes, there is an expression constant Nothing in the TestStand expression language. Just assign it to the variable or use it in an equality comparison. You can use a statement step to do this.

Doug Melamed
0 Kudos
Message 2 of 4
(3,225 Views)
> Yes, there is an expression constant Nothing in the TestStand
> expression language. Just assign it to the variable or use it in an
> equality comparison. You can use a statement step to do this.

D'oh! I didn't look under Constants and I couldn't find anything in the
user manual index...

Thanks.

Bob.
0 Kudos
Message 3 of 4
(3,225 Views)
Is there a way to do this from within a CVI DLL? I am setting a synchronization lock within TestStand, but I need to release the lock from within the DLL. I am storing the lock in TestStand as an ActiveX Reference.

Thanks,

Brian
0 Kudos
Message 4 of 4
(3,225 Views)