LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to multiply all the elements in an array by negative one

Solved!
Go to solution

HI

 

  I have a 1D numeric array, which I want to multiply each element of the array by negative one.  How would I do that?

0 Kudos
Message 1 of 4
(3,921 Views)
Solution
Accepted by topic author fghfghgfhfhg

You have two options. Top option if you just always want to negate. Bottom if you might want to multiple by something else.

Negate_BD.png

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 4
(3,915 Views)
Solution
Accepted by topic author fghfghgfhfhg

Well...you'd use negate function...that's it it has one input and one output.

 

Also you could wire it to a multiple function, with a constant of -1.  If you aren't very experience with LabVIEW feel free to try some free training. 

 

https://decibel.ni.com/content/docs/DOC-40451

Message 3 of 4
(3,912 Views)

Thanks!

0 Kudos
Message 4 of 4
(3,896 Views)