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
(4,712 Views)
Solution
Accepted by 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
(4,706 Views)
Solution
Accepted by 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
(4,703 Views)

Thanks!

0 Kudos
Message 4 of 4
(4,687 Views)