ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(3,288 Views)
Solution
Accepted by topic author 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
(3,282 Views)

Hi Anand

 

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

0 Kudos
Message 3 of 6
(3,279 Views)

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

0 Kudos
Message 4 of 6
(3,277 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
(3,267 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
(3,266 Views)