05-20-2014 10:54 AM
Hi,
I’m trying to implement an equation similar to this one embedded in my VI. I’ve simplified it somewhat for the purposes of getting assistance from you guys with the mechanics of crunching through the calc with LabVIEW.
For the equation given can you tell me if the code I’ve produced does what it should be doing to mathematically represent this equation to resolve B? I’ve been thinking about this too long now and my brain is beginning to hurt a little 🙂
Many thanks
L. noob!
05-20-2014 11:02 AM - edited 05-20-2014 11:03 AM
I think this is what you are going for.
Remember that i starts at 0, so you need to add one.
05-20-2014 11:30 AM
As a mathematician I would utilize the distributive property, or as a software developer I would move a loop invariant. As a minimalist with no regard for memory I would go an alternate route.
05-20-2014 11:42 AM
As a minimalist with no regard for memory I would go an alternate route.
Shockingly, guess which uses less memory (unless I missed something)
05-20-2014 11:48 AM
05-20-2014 11:56 AM
@labnoob wrote:
Thanks crossrulz... I did have it in that case configuration at one point but you convince your self it's not right lol. Also I was taking account of u starting at 0 however in my real scenario I'm pulling I and j values from a table which is of course offset 0 too.
Darin I'm not sure I follow your words of wisdom... Would u mind explaining layman's terms?
Many thanks
Well, I'm not neerly a wise in the math field as Darin but, the snippet he attached shows two methods to achieve the same result. One uses a little known vi pulled out of a dark corner of vi.lib and Well lets just say its Block Diagram looks like this
I don't understand the comments either but, it apparently does what you wanted to do if hooked up like Darin showed.
05-20-2014 12:04 PM
05-20-2014 01:05 PM