LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compare columns min and max

Solved!
Go to solution

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?

 

0 Kudos
Message 11 of 31
(1,564 Views)

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.

 

0 Kudos
Message 12 of 31
(1,564 Views)

@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.

Message 13 of 31
(1,560 Views)

Untitled.png

 

ok

 

0 Kudos
Message 14 of 31
(1,556 Views)

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 ;))

Message 15 of 31
(1,548 Views)

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?

 

Untitled.png

 

 

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)

 

 

 

 

 

0 Kudos
Message 16 of 31
(1,543 Views)

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)

0 Kudos
Message 17 of 31
(1,539 Views)

ok.

ill play with it.

 

0 Kudos
Message 18 of 31
(1,536 Views)

No check again. If a column would end up with all zeroes, it is already ignored.

0 Kudos
Message 19 of 31
(1,532 Views)

Untitled.png

 

this is what i see?

its nothing related to what i wanted?

 

0 Kudos
Message 20 of 31
(1,528 Views)