Jump to content

Periodic saving


oscarc

Recommended Posts

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.