11-30-2015 02:56 AM
Hello,
I am building a fluorescense measurement optical setup, and plan to control it using LabView.
I need to scan a range of wavelengths, and for each one aquire a measurement. I have come to realise the best way to do this is with a state machine, that will iterate two states (first Set Wavelength, second Aquire) until the final wavelength is reached.
I would like to plot the wavelength vs. aquired data (X vs Y, two arrays I guess) as the scan is performed.
And after many iterations, when the scan has ended, I want to save the entire data to file (say, as two columns, one of Wavelength, the second Aquired Data).
Therefore, for each iteration of the scan, I need to store the current wavelength and its corresponding measurement. This information will also need to pass between the states, as I want the plot to be real-time (as the scan progresses).
As a LabView novice, I am unsure what is the best way to do this (shift registers? AE? queues?), and would appreciate any assitance.
Thanks!
Solved! Go to Solution.
11-30-2015 03:34 AM
Shift registers is the easiest and suggested way.
Just be a little bit careful so you wire it through all states, else you'll ditch the data halfway.
/Y
11-30-2015 03:35 AM
Shift register is the most natural choice for what you describe. The best thing is to pre-allocate all memory you need (you do know the length of scanning, don't you?) and the replace the appropriate package for each scan intervall.
This is what i recommend you to do.
Norbert