LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to modify a waveform in a waveforms array

Hi,
I have a global variable with a waveforms array, each position of this array is a buffer channel where i write a portion of a signal at the same time i read.
My problem is that i´m wasting a lot of memory. How could i write a block of a signal in one of this buffers without wasting too much memory?
0 Kudos
Message 1 of 2
(2,573 Views)
Bribon,

I haven't understood your question completely. I would like to know what your main goal is.

Did you want to transfer data (i.e. waveform) from one VI to another? A suggestion for this is to use RTFIFO. There is a Real-Time FIFO example that you can download from our web.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D99D56A4E034080020E74861&p_node=174821&p_submitted=&p_rank=&p_answer=&p_source=External


Using global-variable in time critical/Real time application can introduce jitter (like a glitch in the timing of a signal aquisition). That is in addition to the larger memory space usage, as you mentioned, especially when the global is a large array. The reason for this is because each app that uses the global
made a copy of that array.

Thanks.

ChristianM
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,573 Views)