Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6525

Closing ActiveX references correctly in Simple UI

$
0
0

Hi,

 

I am currently trying to modify the Simple UI provided with Teststand 2013 in order to access global station variables through LabVIEW.  As a simple test, I am trying to access the LastUserName value.  When I run the VI for the first time after opening LabVIEW, I get no error messages and the program runs as required.  Stopping the VI execution returns no errors, but when I try to run the VI and run the Teststand sequence again, the execution stalls and I get a waiting status.  I must then close the VI execution by killing all Teststand threads  I believe the PropertyObjects are not released properly and I find the event structure quite puzzling to deal with.

 

My attempt at closing the references within the while loop looks like this : 

 

Capture.PNG

 

The rest of the program is exactly as provided with Teststand 2013.

 

Any input on how to properly close the ActiveX references and retrieving station globals within LabVIEW would be much apreciated.

 

Thank you for your help,

 

Christian

 

 


Viewing all articles
Browse latest Browse all 6525

Trending Articles