LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop to do arithmetic operations

Hi,

I have a 2 dimensonal array which is attached.
Now I need to perform the following arithmetical operation on this array.

I need to add 0 to the first row elements, 40 to the second row elements, 80 to the third row elements, 120 to the fourth row elements and so on incrementing by 40 till the last row.

Can any one help me in building such a VI, I understand that I just need to use a for loop and keep on incrementing the addition constant by 40 but I am having trouble with this.

I also have one more small question, is there a VI such that if I give two numbers it can generate all the numbers between them including the numbers given.

Thanks a lot for any help in this regard.

Ajit
0 Kudos
Message 1 of 5
(2,959 Views)
Message 2 of 5
(2,959 Views)
Your second question is not quite clear. Are you talking about generating a ramp of consecutive integers?

The attached image shows a quick solution for that.
Message 3 of 5
(2,959 Views)
Hey Ajit,

For you second question if you're looking for a variable number of points between your two numbers here's an example.

I hope this helps!

Sarah Miracle
National Instruments
0 Kudos
Message 4 of 5
(2,959 Views)
As an answer you can download the openG toolkit from www.openG.org and there is a tool in there that will this.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 5
(2,959 Views)