LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use buffers to store data?

 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!

Message Edited by freitas on 06-23-2009 12:57 PM
António Veríssimo de Freitas
Universidade de Aveiro Student
0 Kudos
Message 1 of 2
(5,969 Views)

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....

0 Kudos
Message 2 of 2
(5,923 Views)