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

Database logging - how to retry/ reconnect after network or server problem (An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging')

$
0
0

I'm running tests that last around 30 sec / DUT and stores data to a database using a user defined schema. When the (external) SQL DB server  sometimes makes a hick-up / no connection, then teststand reports a runtime error (An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'). - see also post forums.ni.com/t5/NI-TestStand/An-error-occurred-calling-LogResults-in-ITSDBLog-of-zNI/td-p/3240276"  which describes the same issue

 

 

How would I go around setting up teststand to automatically retry the write? Maybe with a dialog to the user where he can press 'retry' or 'stop'. It woul dprobably be something with resetting the reference (RunState.Root.RunState.Execution.TSDatabaseLoggingDatalinkxxxxxxxx) and then calling ITSDBLOG again. Or could the offline results processing do it instead? It doesn't matter if the writing of the data is some minutes delayed.


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>