I'm trying to have a new log file created everytime the button goes from the off state to the on state. The problem is that when in ON state, the data in the new event is logged in the same lvm file. I think i need a boolean trigger or latch or something but not sure how to implement it. Any ideas?