08-27-2009 08:15 AM - edited 08-27-2009 08:17 AM
Well I blew the chance at teh bonus points now that I have more clues. (Oh bother!)
I have another idea!
We have done everything but actually say the word "epsilon" but now I have to.
I found this code*
inthis thread that was originally posted by Charles K of NI.
Are we getting close?
Ben
* This is slight mode of teh original code to toss a ms wait and eleminate the candidate display update in each iteration.
08-27-2009 08:33 AM
08-27-2009 08:42 AM
I'm tossing in the towel!
It must have something to do with the "measured Precision" output but I don't know what that value is supposed to mean.
Ben
08-27-2009 08:54 AM
+1 must come after the (-x)
Felix
08-27-2009 09:06 AM
F. Schubert wrote:+1 must come after the (-x)
Felix
I was never very good at memorizing numbers so I'll trust you on that point.
Still playing with that example and was thinking about a "effectivly equal" VI that takes epsilon into account. So I changed the control to a contnat thinking that LV would fold the entire VI... but NO!
Why wouldn't LV fold that loop?
Ben
08-27-2009 09:14 AM - edited 08-27-2009 09:14 AM
Ben wrote:
Why wouldn't LV fold that loop?
If I remember correctly I've never seen LV folding a while loop!?
The question remains though: why?
Daniel
08-27-2009 09:36 AM
dan_u wrote:
Ben wrote:
Why wouldn't LV fold that loop?
If I remember correctly I've never seen LV folding a while loop!?
The question remains though: why?
Daniel
Message Edited by dan_u on 08-27-2009 04:14 PM
While review the 2009 complete upgrade notes I was looking for how to use the new icon editor when the notes about floding caught my eye.
I had debugging enabled on that VI so no folding. Disable debugging and the while loop is folded.
But what to my wondering eyes did not appear, the VI snippets leave out folding I fear!
here is a screen shot.
Ben
08-27-2009 04:26 PM
For the record, the posted snippet is not <vi.lib>\Waveform\WDTOps.llb\Check for Equality.vi. That would be this (for some strange reason, this VI is diagram locked on earlier version of LabVIEW).
The glaring error is shown on the inner frame. The measured precision output, which is to how many digits the input numbers match, should be 15 (it is almost 16, log10(253)) for two equal doubles. It is set to 10.