LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building an array from a for loop.

Solved!
Go to solution

Hi all

 

I have a vi which reads from a file and manipulates the data using for loop. I am taking each element and multiplying it with a constant and converting it to I32. I would like to build back to a new array with the new values. I have attached the vi and a sample data file to read from.

 

Please suggest if there are any better ways to do this.

 

Thank you. 

Download All
0 Kudos
Message 1 of 6
(2,194 Views)
Solution
Accepted by avinash3010

You can multiply the array with the constant and use the array instead of multiplying it with each element.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 6
(2,188 Views)

Hi Anand

 

Thanks again...I never thought numeric would work on arrays as well.. 

0 Kudos
Message 3 of 6
(2,185 Views)

But what is the way to convert each element into I32..??? 

0 Kudos
Message 4 of 6
(2,183 Views)
Just pass the array through I32 the whole array wil be converter
-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 6
(2,173 Views)
Just pass the array through I32 the whole array wil be converter
-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 6
(2,172 Views)