LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Test Stand API with DQMH: Unloading Sequence Files and executions and Shutting down Test Stand.

Hi,

 

I am using test stand API for the first time and would really appreciate if anyone can tell me what am I doing wrong.

 

I need to perform the following sequence of steps:

1. Start Test Stand

2. Open a Sequence File

3. Run a Sequence File

4. Monitor if the Sequence Execution is completed and whether it passes or fails.

5. After the Sequence is completed, unload the sequence files and executions

6. Allow Test Stand to Load a new sequence file and repeat the above test

7. Shutdown Test Stand

 

I am referring to Simple Test Stand UI example and facing the following problems:

 

The code seems to be working fine up to the Run Sequence stage.

 

1. But  in order to monitor the state of execution I am using Get States Invoke Method of execution in which I get error 1055: Invalid, Null or previously deleted reference used at the GetStates error out.

Refer: Monitor Status with Get States.png

 

2. Alternatively, I am comparing string of the Execution ComboBox indicator to check if the sequence execution is completed. This doesn't give me any errors however, it seems that my sequence file and executions are not unloaded from memory since if I run multiple sequence file and one of the test sequence fails the the Execution ResultStatus always returns Failed for all the Test Sequences that follow.

Refer: Monitor Status Alternative.png

 

3. In order to Unload Sequence File and Executions I am using CloseAllSequenceFiles and CloseAllExecutions Invoke Method of Application Manager. Note: The run mode of all my Test Stand modules is Load Dynamically and Unload when Sequence file is closed.

These method seem to clear my Front panel Indicators but do not actually remove them from memory since I get Memory leak errors on Shutdown.

Refer: Unload Sequence and Executions.png

 

4. In shutdown, when I am getting an error 1055 (Refer: Unregister for events error.png) when I am trying to destroy Event reg refnum. I am not using the Event Structure as in the Simple Test Stand UI example so technically I don't even need this control, however I have registered event just as shown in the example. 

On shutdown I get Object and Memory leak errors (Refer: Object release error.txt) and my Labview crashes with non-continuable exception (Refer: Crash error.png)

 

I have more questions, but I need to fix this on priority.

 

Thank you already.

 

Regards,

Linus Koli

0 Kudos
Message 1 of 1
(1,001 Views)