Hey everyone,
I am an Undergraduate Research Assistant working on chemical research. The VI I am writing is pretty straightforward. All it needs to do is read the voltage coming off a silicon detector as a monochromator (the Digikröm CM110) shines a beam of light at it.
The point of this is to get a voltage reading from the beam every 2nm from 350nm to 650nm. I have put together a VI using some stock smaller VIs, but the issue is that the sequence will run smoothly up until 522nm, where the next number will suddenly be in the 4000s, and consequently break the <650 while loop. However, when I run the VI using the highlighting tool, it runs just fine, and does not give out at 522nm.
Here is an outline of how the VI works:
-The initial wavelength and step sizes are established through a sequence outside the loop.
-The loop commences and the step function is run, and the silicon detector on an AI0 USB6008 A/D converter reads the voltage (compensated for the ground discrepancy).
I'm pretty lost on where to even start looking. I've messed with timeout values and timers, as I thought giving the whole thing time between frames to catch up would fix the issue, or placing the step function inside the loop, but none of those have rendered any fixes so far.
Any form of help would be greatly appreciated.
(I have set the current go to wavelength to 510 so that you wouldn't have to watch it go from 350 - 522nm.)
The VI in question is the voltage read + wavelength.vi, the other file contains some files that are depended upon.
.