LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a math function from 1D array!

Dear all!
 
I have an 1D array data that changed by the time. How can I create its function in Labview from this data, e.g. x=f(x_dot,t)  with x_dot is the changed value of x.
 
Thanks a lot.
0 Kudos
Message 1 of 2
(2,195 Views)

It is not entirely clear from your description if your input is x or x_dot.

  1. If you input is x_dot and you want x, make a running sum.
  2. if your input is x and you want an array with x_dot, take the difference of adjacent elements.

In both cases you might need to worry about initial conditions, scaling by the t increment, etc.

Anyway, the attached simple VI shows both possibilities using a simple FOR loop containing a shift register. Let me know if it makes sense.

 

Message Edited by altenbach on 03-20-200607:45 PM

Download All
0 Kudos
Message 2 of 2
(2,192 Views)