05-31-2013 09:21 AM
Hi everyone, i have a little problem here.. I'm acquiring a signal that is in one moment diferent of zero and in another zero ( like a counter), However, i'm wolud like to do is:
when the signal is not equal of zero, do some calculation and store the values in to a array, and in another moment , if the signal is zero, store in the same array zeros.
05-31-2013 10:03 AM
anyone?
05-31-2013 10:07 AM
share ur code...
05-31-2013 10:07 AM - edited 05-31-2013 10:08 AM
05-31-2013 10:09 AM
here i doubt.. that he will ever gonna get zero.... and therefore always execute non-zero case...
05-31-2013 10:21 AM - edited 05-31-2013 10:22 AM
That is!
In the first moment, I'm separating the channels, and in another, i'm doing a comparison( if less then 2,5....) to separate the components in channel one...
then I will like to do the calculation, only if the value it is different of zero, and store in to a array, and if is equal to zero, store zeros in the same array.
05-31-2013 11:03 AM
I think that is a easy problem to solve