06-23-2009 12:54 PM - edited 06-23-2009 12:57 PM
Hi all:
I'm building a signal analyzer using SPI and UART example, for 50/60 Hz electricity supply.. the example uses buffer size = 1!
I can read the value via SPI, but I want to get some mathematics on it (not for a single value, but at least some wavecycles)!
2 questions:
--> what's the best way to "store" data to future analysis? using an array? using a buffer, spi buffer >1? circular buffer?
please remember i want to display the results of the analysis all the time, let's supose @ 1 Hz!
--> I want to display the waveform too, so, I need to print all the values in the buffer, array or whatever, give me some hints, please..
Thanks in advance and congratz for this forum,
António Freitas - Universidade de Aveiro
P.S. - my mistake, move it to LabView embedded please!
06-29-2009 03:22 AM
I suggest using a functinal global variable - a while loop with shift registers to store your data; with case statements to determine how you wish to control/use the data.
mind you, i haven't looked at the example you suggested....