10-09-2012 09:47 AM - edited 10-09-2012 09:55 AM
I have a tunable laser which is suppose to do a sweeping from Min to Max and then back to min.
For some reason there seems to be an extra step after the Maximum wavelength as shown below.
Strange part is that it seems to occur only when i have set a wavelength that has 1 decimal place or 4 decimal places.
I'm relatively new to labVIEW, Please HELP? any advise would be helpful.
Solved! Go to Solution.
10-09-2012 10:06 AM
This sounds like a floating point accuracy problem. Every language fights this.
What you should do is calculate how many steps up should be performed and then do comparison on the step number (an integer).
Also, why use the formula node? A simple case structure would take care of the logic.
10-09-2012 10:15 AM
Thanks! This is actually a sample program that came with the device and so i decided to make modifications to it.
Thanks a lot will try it out later on.