Thread Subject: determening frequency or peaks

Subject: determening frequency or peaks

From: Alex Pedchenko

Date: 11 May, 2009 20:48:01

Message: 1 of 2

I haven't used Simulink with DAQ cards before, so please accept my apologies if this is a very rudimentary question.

I am collecting the analog response of a paddle wheel flow meter. The device indicates the flow speed through both frequency and magnitude (higher freq and higher mag sinusoidal signal corresponding to flow of greater magnitude). I can collect the signal easily enough. However, I am having some problems converting this signal to a real world flow value. I am able to see the sinusoidal response, but I can't record the peaks vs time or determine the instantaneous frequency.

Eventually I want to be able to integrate the flow values in order to send a signal to my system after a certain amoung of fluid has passed through the flow meter. However, after looking at both the peak finder and the input counter blocks, I can't seem to get either to work to obtain some sort of flow magnitude vs time response. Any assistance (in example form if possible) would be greatly appreciated!

Subject: determening frequency or peaks

From: Gautam Vallabha

Date: 13 May, 2009 14:56:02

Message: 2 of 2

"Alex Pedchenko" <alexander.v.pedchenko@vanderbilt.edu> wrote in message <gua2u1$gj3$1@fred.mathworks.com>...
> I haven't used Simulink with DAQ cards before, so please accept my apologies if this is a very rudimentary question.
>
> I am collecting the analog response of a paddle wheel flow meter. The device indicates the flow speed through both frequency and magnitude (higher freq and higher mag sinusoidal signal corresponding to flow of greater magnitude). I can collect the signal easily enough. However, I am having some problems converting this signal to a real world flow value. I am able to see the sinusoidal response, but I can't record the peaks vs time or determine the instantaneous frequency.
>
> Eventually I want to be able to integrate the flow values in order to send a signal to my system after a certain amoung of fluid has passed through the flow meter. However, after looking at both the peak finder and the input counter blocks, I can't seem to get either to work to obtain some sort of flow magnitude vs time response. Any assistance (in example form if possible) would be greatly appreciated!

It sounds like you need to detect the envelope of your signal. The following demo shows two ways of doing this (it requires the Signal Processing Blockset):
http://www.mathworks.com/products/demos/shipping/dspblks/dspenvdet.html

Alternatively, you could just chop the signal into frames (using the Buffer block), calculate the RMS voltage for each frame, and rescale into flow units.

Gautam

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
daq Gautam Vallabha 13 May, 2009 10:56:35
simulink Gautam Vallabha 13 May, 2009 10:56:35
envelope detection Gautam Vallabha 13 May, 2009 10:56:35
data acquisition Gautam Vallabha 13 May, 2009 10:56:35
rssFeed for this Thread

Contact us at files@mathworks.com