This can be done a number of ways, firstly the BasicDataLogger2 has a "ComError" event available which can call a method which you could use to write those 0's you're referring to. Not sure exactly what you're writing or how you're holding the data before sending it to the SQL database but that's on you
. Alternatively, if you use the "DataReturned" or "DataChanged' events, at the very beginning of the event handler method, you could fill all of your temp variables with 0's prior to populating them from the BasicDataLogger2's data, then if the BDL2 is errored the application would write 0's as opposed to the previous data. Again these are all very vague descriptions since I have no idea your application and how it works.