annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Integrate without Express VIs

Risolto!
Vai alla soluzione

I need to integrate a data array (2-D array double), but I don't have native integral VIs that come with the full development system. Nor do I wish to use the express VI.

 

Is the attached an effective way to integrate X-Y data? Any ideas for improvements?

 

Thanks

0 Kudos
Messaggio 1 di 7
3.259Visualizzazioni

If you downconvert your VI to LV10 or below, I will take a look (Files>>Save for Previous Version).

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Messaggio 2 di 7
3.248Visualizzazioni

Wait...I see something a bit fishy.  If Input is a step function that works but if we apply the trapizoidal rule you would want to add the lower value of X(n) and X(n-1) times delta Y + 1/2 Delta X * Y


"Should be" isn't "Is" -Jay
0 Kudos
Messaggio 3 di 7
3.244Visualizzazioni

Woops this look better?

 

Any ideas for improvements?

0 Kudos
Messaggio 4 di 7
3.229Visualizzazioni

not quite.

 

attach the vi and we may help tweek it to implement the function I discribed earlier


"Should be" isn't "Is" -Jay
0 Kudos
Messaggio 5 di 7
3.223Visualizzazioni

Here you go!

 

Thanks

0 Kudos
Messaggio 6 di 7
3.221Visualizzazioni
Soluzione
Accettato da autore argomento ap8888

Wasn't to far off.

 

Essentially if you draw the shape on a graph,  you can think of a series of trapizoids between each successive points. the areas for each can be split into a rectanlgle ((min(Y,Y-1)*dX)  and a triangle (1/2 abs( dY)*dX)  sum the two and add to the previous area.

 

And as snippet

TR.png


"Should be" isn't "Is" -Jay
0 Kudos
Messaggio 7 di 7
3.214Visualizzazioni