11-10-2014 05:12 PM
i am using a code from labview 7.0?
i dont really remember why.
but yes. a stock one will do.
its just a read spreadsheet from array file?
11-10-2014 05:13 PM
yes. i have to learn how to save my code correctly.
everytime i save them to post here. it goes around and i lose track of where i saved it.
when i have time.ill try saving it correctly.
11-10-2014 05:26 PM
@super_saiyans wrote:
i am using a code from labview 7.0?
SInce you are using LabVIEW 14 now, you should replace the file IO with the stock version of "read from spreadsheet file". Select string from the polymorpic selector and you get all the current functionality.
Since you are immediately converting to DBL, it would be even more reasonable to just read that data into a DBL array.
11-10-2014 05:30 PM
ok
11-10-2014 05:52 PM
Try something like this.
If you don't want to show the ignored columns, simply conditionally build the array instead (LabVIEW 2014 has the conditional output tunnel ;))
11-10-2014 06:09 PM
oh hey..that for loop looks good!
i been trying to write a for loop for the mess i have but it wasnt sucessful.
but your mod code doesnt do what i wanted to initially do?
i am only interested in comparing the highlisted columns??
max/min of row 0,1,2,3,4,5,n
ex:
row 0
max = 23.5
min = 21.3
max - min = 23.5 -21.3 = 1.2? ====== FAIL (>1 =failed)
11-10-2014 06:16 PM - edited 11-10-2014 06:21 PM
The current code ignores all columns that would end up with all zeroes.
(If the valid columns are always the same, you could just autoindex on an array of valid column indices)
11-10-2014 06:18 PM
ok.
ill play with it.
11-10-2014 06:22 PM - edited 11-10-2014 06:25 PM
No check again. If a column would end up with all zeroes, it is already ignored.
11-10-2014 06:26 PM
this is what i see?
its nothing related to what i wanted?