LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass array to Eval Formula Node (any chance to avoid this?)

Solved!
Go to solution
No, there is no such option in 7.1 verison 😕
0 Kudos
Message 11 of 19
(1,059 Views)
I've corrected some mistakes. And here it's now available for use in LabView 7.1. (attached VI) Thank you!
Message Edited by ACiDuser on 05-24-2009 03:45 PM
0 Kudos
Message 12 of 19
(1,056 Views)

Sorry about the "multiply vs add" compound node confusion. I forgot to set the mode to multiply after placing it. 😉

 

Some additional comments:

 

  • multiplication is commutative, so the multiplication with Fm should be done once outside the loop. Use my code directly, but change the mode of the compound node from "add" to "multiply", of course.
  • The "zero" diagram constant should be DBL to avoid coercion (just enter 0.0 to turn it orange)
  • If you make the function an enum instead of a ring, the case structure will show the item name, thus avoiding coding mistakes.
  • Why do you have the front panel maximized to the screen? There is not really much on it. This gives me tunnel vision! 😄

 

 

Message 13 of 19
(1,050 Views)
Thanks for the tips! 🙂 Now here's the last version:
0 Kudos
Message 14 of 19
(1,038 Views)
I have built a VI Function for this purpose, so now it's usable very easy
0 Kudos
Message 15 of 19
(1,028 Views)

Indeed. altenbach likes to make things easy on people. Smiley Wink

 

Tip: You can use the Ramp Pattern VI to create your time values rather than the loop in the bottom left. 

Message 16 of 19
(1,010 Views)

smercurio_fc wrote:

Tip: You can use the Ramp Pattern VI to create your time values rather than the loop in the bottom left. 


In addition, we can do all multiplications on the scalars, thus making ~N times fewer operations before the loop. 🙂

 

Also, the sampling frequency should probably be DBL. Why restrict it to integers?

 

Here's how if would look like using "ramp pattern".

 

Depending on what you want, you should round up or down to get N.

 

(It is possible that the ramp pattern looks slightly different in LabVIEW 7.1).

Message Edited by altenbach on 05-25-2009 10:32 AM
Message 17 of 19
(1,004 Views)

 

 

Thank you very much! Your suggestions are professional as always! 🙂

 

 Now I hurry up to re-design other my VI's, which will perform much faster and optimized!

 

 

 

 

0 Kudos
Message 18 of 19
(993 Views)
Here is re-designed version.
0 Kudos
Message 19 of 19
(990 Views)