I would like to add several custom measurements based on my Scope Channel 1 signal:
1. Current measurement through a 220 ohm resistor
2. Min and max Frequency measurement of the signal applied to the same 220 ohm resistor.
value = 0
value /= (Channel.data.length)
value *= 1000
Is there a cleaner, better way to do this?
Regarding #2, I wasn't able to figure out how to to obtain time measurements, which I assume I would have to do. My guess is I would have to diff two sequential times, and get their inverse to calculate the frequency. If someone could provide an example I would greatly appreciate it.
Thank you in advance,