NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Quiting Excel When Used in Process Model

I have modified the batch process model to include some data recording and graphing capabilities. The data is logged into Microsoft Excel and then graphed using Active X steps. At the end of the sequence that performs this functionality, I close the workbook and quit the application. However, the Excel process remains running in the background even though the application has been closed.

I believe that I have narrowed this problem down to a result of running in the process model. The same functionality works just fine as a standalone executable called from the tools menu and also in a normal test sequence file.

Has anyone tried to do this in the process model and experienced the same issue? If so, is there is workar
ound or something that I am missing that will allow the process model to release the Excel process?

Thanks.
0 Kudos
Message 1 of 2
(2,942 Views)
btuman,

It sounds like the reference to the object is not getting released. On the Specify Module dialog, you can specify the lifetime of that object reference using the "Use Step Load/Unload Options to Specify Object Creation Time and Lifetime" option under the Create Object section. The Load/Unload Options are found under the step properties on the Run Options tab. Try setting the Unload Option to "Unload after sequence executes."

Best Regards,

Matt P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,942 Views)