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: 

if else

i got a 1D array of assorted values(DBL). and wanted to store only the values of '1' back into the array.
 
By the use of array.
0 Kudos
Message 1 of 4
(2,619 Views)
The values of the 1D array is in terms of 1 and 0s. I just wanted to store 1s only. And the size of array is undeterminable.
 
0 Kudos
Message 2 of 4
(2,617 Views)
Your code makes no sense. I would suggest you start by looking in the shipping examples. Open the Example Finder and on the Browse tab, expand Fundamentals>Arrays and Clusters. Open Separate Array Values. It doesn't do exactly what you want but by replacing the less than zero function, you can have it. I would strongly recomend you not do equal comparisons on floating point numbers, though. Convert your array to integers.
Message 3 of 4
(2,614 Views)
omg... i nvr look at there...
 
thks dennis...for ur help. i think this definetly serve me a better picture.
0 Kudos
Message 4 of 4
(2,607 Views)