Hi Noely,
Why can't you use a boolean trigger to generate the entry into your error log? The OpenG toolkit boolean trigger will take a rising edge (or falling) and generate a single pulse. This should allow you to place your write to spreadsheet vi in a case structure and it will only write to log once.
Ive attached a simple example outlining what I mean. Let me know if this is what you intended.