Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

Finding the position of the minimum value in a channel

$
0
0

Very occasionally, the following line of code fails to return the row number of the minimum channel value and returns 0 instead:

 

L1=Find("Ch('WkSpace')=ChnValMin('WkSpace')")

 

The values in WkSpace are generated from the cursor position in the View window and I can make the code work if I move the cursor little bit. So, it seems that DIAdem is being tripped by rounding errors perhaps. Is there a more robust way of writing the line of code to find the minimum value row number without falling foul of rounding errors?

 

Thanks.

 

Simon.

 

 


Viewing all articles
Browse latest Browse all 3197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>