oscarc Posted May 29, 2009 Report Posted May 29, 2009 Hi, I have a project where I am using a daq to measure acceleration. I want to measure high frequencies ~30kHz, and I use a producer/consumer loop to do the measuring in the producer loop, and the fft:s and saving part in the consumer loop. I will let my system run continously, but I want to save averaged data at specific times (with a timestamp on), for certain periods: saving saving saving etc. _________-------_________-------_________-------____ t1 t2 --->t Currently I was thinking of using t1 = 20s and t2 = 10s, but I will want to control them later. I was wondering about what method to use, so that the consumer loop will still be processing the averaging and saving part. I guess I can use two time elapsed vi:s which control a case structure in which I place the saving part, but it would be messy. I was wondering if the timed loop is good for controlling this, but it seems not.. Many thanks for your help! Oscar Quote
Jaromir Ludwin Posted May 29, 2009 Report Posted May 29, 2009 Why don't you make your fft loop producer for the third loop where saving would be placed. Than in this third saving loop (consumer) you can apply timing with no influence on your analyzing loop. Jaromir Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.