The photogate unit is probably a digital device much like you have drawn. But since it is powered by a USB unit. It is probably driven by around 5 volt and not 6 volt. To do what you want you will need to tap into the signal and supply lines in the photogate itself. Is this something you have been able to do so far?