NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the TSDatabaseLogging object at runtime

Hi All,

 

We are using TestStand 4.1.1

Our UUTs are part of an order. The Access database file where the testresults are saved has the ordernumber in its filename. UUTs with different order numbers can be tested during the same batch.

 

To be sure the testresults are saved to the correct Access database, the connection is reset after each UUT by setting the Runstate.Execution.TSDatabaseLoggingxxx object to nothing after logging the testresults (Call to ITSDBLog.LogResults).

 

Closing and opening the database connection for each UUT takes a lot of time. I want to only close the connection when the actual UUT has another order number than the previous UUT, I want to do this comparison before the call to ITSDBLog.LogResults, but it seems that the object Runstate.Execution.TSDatabaseLoggingxxx does not exist before the call to ITSDBLog.LogResults. However the Access database connection still exists since the lock file stays next to the *.mdb file. Is there somewhere another reference to the database connection object?

 

Thanks in advance, Stef

0 Kudos
Message 1 of 2
(1,601 Views)