This describes the flow of in vivo electrophysiology recording during optogenetic manipulation via UCNPs.