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.