LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i input an equation into Integral x(t).vi?

Hi,I am an absolute novice trying to Integrate a vaguely complex formula.  Running LabVIEW 8.0 FDS on XP.
I have attached a jpeg of what I am trying to integrate - see the part in the red block.  To summarise:  how do I integrate something like  e^(ax^6 + bx^5 +cx^3 etc) (e means "exponent") with respect to dx. My initial value of x is 0 and final value should be something like 6.4.  a, b, c etc are contants.  I am guessing I should use the Intergral x(t).vi and that my "intial condition" = 0, my "final condition" = 6.4.  I am just not sure how to input the above (also see attachment) equations at "X" and what to do with the "dt" input.  Please help - I have looked everywhere without luck.
Thanks in advance.
Andreas
0 Kudos
Message 1 of 6
(3,656 Views)
Here is a vi that creates a random numbers, inputs them into part of your equation and then graphs them.  it also integrates the "aquired" data and plots that as well.

I added different plots for different dT so you can see the difference.

Let me know if you have any other questions.

Kenny
Kenny

0 Kudos
Message 2 of 6
(3,631 Views)

Thanks for responding.  Not sure that would work in my specific case, but I could be wrong.  Not sure how I would input the more complex formula.  Found an example on  the NI website that I modified and thought I'd show it to you.  Has been working so far! Smiley Very Happy

Cheers

Andreas

0 Kudos
Message 3 of 6
(3,611 Views)

Andreas,

I found this problem pretty interesting. I was able to find 2 more ways to do the equation that you developed. One using Formula String and another using Polynomial Evaluation. The VI below show by itself and I added graph also. I can bet that we can even find more ways to solve this problem in LabVIEW. Smiley Happy

I am also showing which VI to use to obtain the integration. Use "Numeric Integration" and give the Y of your function and the dT used (end-start)/#points. You don't need to develop the integration yourself.

Anyway, hope this help!

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 4 of 6
(3,602 Views)

RSA, I'm glad that you seem to have gotten the help for your question, and in case you didn't look again at the thread where I was rude to you (LabVIEW at 20) I wish to apologize, I was having a particularly bad morning and took it out on the wrong people. Please don't think that my response was representative of the welcome that you will get in this community! Welcome to the LabVIEW world, hope you reside here for a long time!

 

From an occasionally grumpy LabVIEWer

 

 

 

Message Edited by LV_Pro on 05-26-2006 09:43 AM

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 5 of 6
(3,593 Views)

Thanks,  was attacked by a killer bug and only back today.  As a humble programmer with approx 10hrs LabVIEW programming experince I will have to get back to you once I've figured this out  - seems very impressive though!

Cheers

Andreas

PS No worries "LV-Pro", no offense taken in case you are still following this thread.  Still getting the hang of things. 

0 Kudos
Message 6 of 6
(3,568 Views)