05-18-2023 02:40 PM
Hello,
We have a Princeton spectrometer and CCD that we need to communicate with in order to obtain spectral data. The provided Lightfield software can be interfaced with LabVIEW, and we have successfully achieved this integration. However, the spectrum we obtain is in pixel units (We are using the event driven example code from Princeton instruments, I have attached the code with minor modifications). We have addressed this by obtaining calibration curves to convert pixel values to wavelengths.
Currently, our LabVIEW program is structured using an event structure, with multiple events incorporated. The final event is triggered when we press 'acquire', and only then are we able to visualize the spectrum. However, we now require real-time visualization of the spectrum in wavelength units. We are uncertain about how to utilize event structures or loops in this scenario. Our main challenge is reorganizing the program to achieve real-time spectrum visualization.
If anyone has experience with this particular issue or can provide any guidance on resolving it, we would greatly appreciate your input.
05-18-2023 03:41 PM
The easiest way would be to make this Acquire event a timeout event and specify a timeout time in mSec.
05-19-2023 08:24 AM
Hi,
Thank you for your reply. I tried your suggestion. But the Lightfield software is not responding once we run the VI.
05-19-2023 01:23 PM
Hi,
I have resolved the problem by incorporating an additional while loop that contains the 'get calibration curve VI.' As a result, I can now observe the spectrum in real-time. Moving forward, I have developed a separate program for performing spectral background correction. This correction involves FFT correction and some mathematical operations, without requiring any instrument communication. My objective is to integrate this code into the spectrometer program, so that after acquiring the spectrum, we can apply the background correction using the dedicated program. This correction does not need to be performed in real-time. Could you please provide some guidance on how to accomplish this in LabVIEW?.
Thank you
06-15-2023 10:41 AM
Hi, could you please tell the details of how you were able to calibrate the wavelength?
10-03-2023 05:32 PM
Hello
could you give us more details on how you managed to solve the problem?
thank you