12-15-2009 06:40 AM
Howdy folks,
I'm working with NI virtual lock-in amplifier to build a detection system that uses a linear diode array detector to measure the effect an electric field has on the absorption spectrum of a molecule. Traditionally, this technique was performed using a single photodiode detector connected to an external lockin amplifier, and the absorption spectrum was scanned using a spectrometer. The lockin would demodulate the signal of interest as a function of wavelength. In my configuration, I am acquiring the entire spectrum (all wavelengths) simultaneously to speed up the experiment and improve S:N. To do this, I am using an OOptics USB2000+ spectrometer and NI virtual LIA. Each element of the photodiode array then acts like a single photodector calibrated for a specific wavelength. I want to demodulate the signal of interest from each element of the photodiode array.
After reviewing many of the posts on this discussion board, I am starting to worry if my setup will actually work. So far, I have seen that everyone uses a single channel detector connected to a digitizer card of some sort, which also acquires a reference signal. Phase delays would come primarily from electronics and cable lengths. In my configuration, the detector is digitized by the 2MHz ADC in the OOptics spectrometer and my NI digitizer is only measuring the reference signal from the experiment. Because two ADC from separate instruments are being used, does this preclude the use of vLIA? My intuition tells me know, but I am relatively new to using photodiode array detectors for this purpose.
Any help would be greatly appreciated.
Timchem
Solved! Go to Solution.
12-15-2009 09:44 AM
Timchem,
It probably will not be easy, but whether it can be done at all may depend on some things you did not mention.
What are the sampling rates for both devices? What is the modulation (reference) frequency? What is the expected signal to noise ratio, especially at wavelengths where meaningful signals are likely to be present? How many samples are available at each read? Is there any way to synchronize the sampling clocks of the two devices?
Now for the tougher questions: How much phase error can you tolerate? How do you handle wavelength bins where there is no detectable signal? How do you define "no detectable signal?"
Lynn
12-15-2009 03:03 PM
Lynn,
Thanks for responding. I will do my best to answer your questions but my background is in physical chemistry, so I might need some coaching along the way. Here goes...
I've done my best to answer your questions, but like I said there is engineering parlance here that I am still learning, so please feel free to coach me along. I would appreciate the skill upgrade.
Best,
Tim
12-15-2009 04:24 PM
Tim,
OK. I work with chemists all the time, so I'll see what I can do to help.
Rule #1. Keep chemicals away from your electronics. The electronics last much longer that way.
Q1. You did not specify an sampling rate for the spectrometer. Does this mean you do not know or just got distracted while typing?
Q2. Is the 400 Hz your reference frequency for the lock-in?
Q3. Coaching time: Do you mean that the maximum signal from any pixel is 140 dB greater than the dark current? That means that if the dark current is 1 nA, then the maximum signal is 140 dB above 1 nA = 10 mA. Your digitizers probably cannot handle a dynamic range that large without range switching, or they will be very slow. If your signal to noise ratio is really 140 dB you do not need a lock-in amplifier. Lock-ins are most useful when S/N < 0 dB.
Q4. How fast do you read? Or how long between capturing one set of 2048 intensities and the next set?
Q6. If the sample clocks are synchronized and a the same frequency, then phase errors will likely be minimized. Do you know it the 2048 pixel intensities are measured simultaneously or sequentially? If sequentially, how long does it take the spectrometer to capture all 2048 measurements?
Lynn
12-15-2009 05:47 PM
Hi Lynn,
I'm glad you work with chemists a lot. As a spectroscopist, I keep my instruments and optics well out of the way of any chemical I am using. Learned this lesson the hard way. I had to look up the sampling rate for the spectrometer, which is why I didn't answer that question.
12-16-2009 08:53 AM
Tim,
Now we are getting somewhere.
Your effective sampling rate is about 70 Hz. Unfortunately, the timing is probably software controlled, which introduces additional jitter in the times of each data set. Sampling a signal at the Nyquist rate only gets you minimal information about that signal, and certainly produces very little meaningful phase information.
Since the pixel intensities are measured simultaneously, you have no worries about phase shifts between pixels.
Question on the synchronization: Does the spectrometer initiate a measurement each time it gets a TTL pulse? Integrate for 1 ms, then send 2048 data points, then wait for next pulse? Assuming that this is what it does, then you have a fighting chance to make a verrrrrry slooooow lock-in amplifier.
It would work something like this. Set the synchronizing generator to produce one measurement trigger pulse every T ms, where T > 13+1 ms. Let's assume T = 20 ms (fsample = 50 Hz) to keep the math simple. Set the modulating frequency to 1 Hz. Then you get 50 samples per period of the modulation, or one sample every 7.2 degrees.
Now I need one more number. You indicate that your AC signal is microvolts. What is the magnitude of the DC component? The ratio of these two signals is the signal to noise ratio. A quick glance at the Ocean Optics web site indicates that the dynamic range for a single acquisition is 1300:1, which seems rather low for a device with a 16 bit A/D converter. That must be the limit of the photodiodes at a specified integration time. If the signal is really limited to this range, you may have trouble. The lock-in amplifier depends on some signal actually being there, just smaller than the noise. In this case due to the limits of the photodiodes or the spectrometer's digitizing process it is possible that there really is no signal there to extract.
If your signal has a magnitude equivalent to 10% of the dark current, you would need to average over about 100 cycles of the modulation frequency (1Hz) to begin to get a signal that you could measure with any precision. Are your samples stable for 2 minutes or more?
A different instrument might be the best bet.
Lynn
08-27-2010 10:43 AM
I just came upon this discussion regarding attempting to use Labview to perform a lock-in measurement of the signal from an array detector.
I am still wondering whether in principle such a measurement using labview. In a normal lock-in measurement there is a single input. In this case there would be 2048 inputs (1 per pixel) and each pixel would need to be lock-in amplified to a reference freq.
If this is possible, I am wondering exactly how you would do this. What labview VI you would use...how you would be able to input 2048 pixels and get 2048 output pixels (in-phase).
08-27-2010 11:26 AM
Typically you would have a numeric array representing the pixel values. At the next sample time you get a new set of values for each pixel, updating the array. So the lock-in function would be applied to the array rather than the scalar value in a physical lock-in.
Do a search. I think there have been several implementations of lock-in processing using LV.
Lynn
08-27-2010 11:47 AM
I did search and found no examples of being able to lock-in on up to 2048 channels.
The best I could find is this example, http://zone.ni.com/devzone/cda/epd/p/id/3805
In this case, up to 127 channels are processed at the same time, far from 2048.
Because digital lock-in processing requires significant computational speed, of course there is a limit, and it seems that as the number of channels increases, the maximum sampling rate must necesarily decrease to allow the processor to keep up, e.g., http://zone.ni.com/devzone/cda/tut/p/id/3411
08-27-2010 12:17 PM
That program has a bunch of password protected subVIs so you cannot see how they have implemented the lock-in. However there is nothing that suggests that the lock-in portion is limited to 127 channels. That appears to be a limitation of the 4472 hardware.
Try feeding your data to the lock-in stuff and see how it works!
What kind of reference signal do you have?
Lynn