new and improved function for finding the difference between the e-prime trigger and the diode