02-10-2009 07:40 AM
Hi.
I use Labview 8.5
In my application I have a "for" loop where I read some values from a device. (strings and numeric)
As you know Labview "stores" the values until the "for" loop is terminated, and then they get out into an array.
OK.
I want to use just the first element for strings and numeric, and after that to do something with him, like compare (for numeric)
For strings I used with succes "Split 1D Array" and choose "first subarray". Good.
Now, for numeric works that too, but the result is one element, array type too. I need it to be numeric (decimal) not array type, because I need to compare him (greater than 0). Then use a Case......
So, One element array in one numeric decimal ? Or array to first decimal element. How to ?
I tried with Array subset too. Same think. Labview don't let me compare a 1D array with 0. It's logical, but how to convert, to have just first decimal element ?
Solved! Go to Solution.
02-10-2009 07:47 AM
Try using the "Index Array" function. If you do not wire a value to the index terminal it will return the first elelemnt in the array. If you wire an index it will return the value specified.
Ben
02-10-2009 10:32 AM
Thank you. It works now.