Hi I have graph that is displaying both analog and digital data and I am trying to integrate the analog input only when the digital input is high. I'm not really sure how to go about it. I was thinking that I would have to get the time stamps whenever the digital input goes high and then low, and then use those as my limits of integration...
I was hoping to get some feedback or tips on how to approach my problem. Anything would help.
I've attached a photo of the code that I have so far.
Thanks!