I have a task to analysis the data , collected by NI 9207, analog input, voltage, code attached.
My purpose is to know the data of LED is on or off or blink.
if blinking, every 2 sec, high voltage will be there (means LED ON) for 100ms. (refer attached picture: Blinking LED- NI forum ask.png)
I use 100Hz. expected the value is average value for 10ms time span (but not sure how to get that?)
in NI API code, if use high speed, data not correct. if auto speed, the data, 150ms time span, which means 15 data all the same value, so i guess it average the value during the 150ms time span? the value sometimes not nice. (refer attached picture: NI forum Q LED sample rate how to define.png)
Is there a method or setting , to allow the speed custom, I know there is code like "AIAdcTimingMode.Custom;", but did not find out a sample code how to use it, where to define the speed. so the results can get as I expected: average value for 10ms time span