LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any VI to perform a numerical solve a function numerically with variables on integration limit and integrand

I would like to ask whether there are some VIs that I can use to solve an integral numerically with the same unknown variable on the integration limit and integration. For instance, I have an integral integrated respective to x, which equals to a constant. Also, I have a variable y appeared inside the integrand and also on the integration limit, and my goal is to numerical search the values of y that fits with the integral. I know that there is a VI that can find zeroes in the function, but I don't know whether I can input an integral to that VI. Please let me know the possible solutions if you have any ideain your mind. Thanks!
0 Kudos
Message 1 of 7
(3,854 Views)
Pat,
I am having a hard time following your equation. Could you post an image of it, or (possibly) cut and paste it out of MS equation writer?

Data Science Automation

CTA, CLA, CLED
SHAZAM!
Message 2 of 7
(3,852 Views)
To be more clear, I have written one of the similar equations in the attachment. What I want to do is to solve gamma_k, those listed in the limits of the integral, in the equation (given gamma_bar is known). Any help is appreciated. Thanks!
0 Kudos
Message 3 of 7
(3,838 Views)

Hey Pat,

I think I found the explicit solution to the equation (I edited your word doc to show it), but check my math. M is a constant right? The only unknown in the equation is now Gamma_k.

I guess the next step is to find the actual LabVIEW code  to solve for this for different values of gamma_kBAR and M? In other words, input gamma_KBAR and M and output Gamma_k?

 

 


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 4 of 7
(3,818 Views)
Yeah.. I agree. Acutally I want to ask whether there will be another method such that I can find gamma_k without expanding the function. I know it can be done in MATLAB by using some numerical integartion and fzero functions. Please let me know if you have any idea about that. Thanks!
0 Kudos
Message 5 of 7
(3,793 Views)
Yeah.. I agree. Acutally I want to ask whether there will be another method such that I can find gamma_k without expanding the function. I know it can be done in MATLAB by using some numerical integartion and fzero functions. Please let me know if you have any idea about that. Thanks!
0 Kudos
Message 6 of 7
(3,791 Views)
Hey pat_pat_tong,
    There are a couple of VIs available in LabVIEW that will perform an integration for you.  Also, the summation can easily be done with a for loop.  If you go to www.ni.com and perform a search for integral, there are plenty of links describing how to use these VIs.  Also, there have been multiple discussion forum posts on solving equations involving integrals.  I know it's easier said than done, but the integration VIs should help you solve this equation pretty easily.


Brian B
Account Manager
National Instruments
0 Kudos
Message 7 of 7
(3,775 Views)