06-07-2013 02:28 AM
I am acquiring frequency data from a QCM and I need to process it in real time in order to display the change in mass on a chart. After subtraction of first two freq.s, i have to display the mass and subtract second and third frequency and so on.. I have written a rough algorithm please correct it or give suggestions
06-07-2013 02:34 AM
this is my algorithm
06-07-2013 06:20 AM
I've made some more changes.
now, the first deleted element from the array will not be used again.
I have used the array approach. could i use any other way to get the required result?
06-07-2013 08:55 AM
I don't see an algorithm, just a partial view of a messy block diagram with overlapping wires going in all directions. You are building and then chopping down arrays like a lumberjack with no obvious rhyme or reason. The "formula" is hidden inside an express VI.
If you really want help:
06-07-2013 09:25 AM
Okay, i'm getting frequencies from 'read response'.
I've got a formula which says f1-f2=const*dm
and i have to plot this dm
so first i have to calculate f1-f2
then f2-f3, f3-f4 and so on
and i need to plot change in mass (dm) in real time
so i'm building an array from the data first, then taking the first and the second element out, subtracting them and
I'm stuck there I dont know how to put a loop or what to do to get the next value
Ive attached the VI.