LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Downsampling Waveform Only For Plotting

Hello:

 

This is such a basic question. I really should not be having a hard time with it but I been using labview only about 5months now.

 

I have about 5 waveforms with about 700K datapoints (samples). All of which I plot.

I think this is using up a lot of memory.

 

Is there a simple vi that I can use to plot say only every 10,000 samples. I believe this may help with my "Not enough Memory" issue.

My VI is attached.  

 

Setup:

NI PCI-MIO-16E-4

BNC 2110

Labview 8.5

 

Thanks in advance.

0 Kudos
Message 1 of 3
(3,134 Views)

Hi,

you may use a small for loop to index out every 10000th element of the waveforms...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,126 Views)

You are attacking the problem, from the wrong direction. Instead of using finite samples. You should use continuous sampling, and read/write your data in a loop. Say you want a update rate equal to 10 times pr second.  then you run your loop 140 times reading/and writing 5000 samples each iteration. In each iteration you may plot the mean value in your chart. You will still be able to do all your filtering,calculation and saving as before. You may only do some small amount of extra programming, and the benefit will be a stable system.

Ps your block diagram/front panel is somewhat chaotic, but I have seen worse. I can see you are a beginner;). It is OK for now. This is probably a student project. But if you do some Labview programming later on you should pay more attention to your programming style   



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 3
(3,092 Views)