LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use arrays and double precision constants in the formula node?

How would I use the formula node to include both double precision constant inputs and array inputs to output a new array?

 

For example, in the Formula Express VI, if I wanted to take the array A = [1 2 3] and square each element and multiply by the constant C = 2, I would write, "A**2*C", including both A and C as inputs into the VI.

 

I would like to be able to do the same thing using the formula node, but it seems a little more complex. If A was a constant, I would just write, "pow(A,2)*C", but since A is actually an array I'm thinking I may need to create a loop?

0 Kudos
Message 1 of 2
(2,606 Views)

Please stick to your original post.

0 Kudos
Message 2 of 2
(2,595 Views)