I am attempting to use an external digital signal to trigger the start of a write to an excel file when the digital signal goes down to -1V. I've also written in an "or" function to allow me to manually start writing to the file. However, it automatically starts writing to the file when i start running the code whether or not the digital signal is lower than the threshold voltage.