LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay on saving a graph

Hi.

 

Having some problem with saving a graph image in a labview program that triggers a hammer and then acquiring a signal from an accelerometer.

When I have acquired the signal I use the fft the function and plots it vs. the frequency and then having a export image function for the graph. It works fine up to this, the problem is that I seem to have some delay issues on the graph so the image that gets saved shows nothing, is there any way to just delay the saving part in a parallel process to the graph?

 

Attaching the image and vi below.

 

/David

Download All
0 Kudos
Message 1 of 2
(2,081 Views)

Hi David,

 

If you just want the raw data (as opposed to an image of the graph) I'd suggest a producer/consumer architecture: https://www.ni.com/en/support/documentation/supplemental/21/producer-consumer-architecture-in-labvie...

 

You can use a queue to transfer your data between loops. This stops your data collection loop from being held up by the slower logging processes. 

 

 

If you really want the graph image a parallel loop controlled by a notifier might be a better option.

 

-CC 

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


0 Kudos
Message 2 of 2
(2,037 Views)