04-05-2007 08:50 AM
04-06-2007 11:19 AM
Hi,
This looks like a fun application. A couple questions about your setup: How are you supplying your reference signal - is this straight from your laser or some other source? Also, is the signal that you are PLL'ing to from the AO on your card, or a reading from your laser?
As for your questions, if you use on-board memory, you have to stop, write your waveform and start your task to change the generation. If you don't use on-board, you can just write a new waveform on the fly. You won't have to write a new waveform every time, the card will regenerate your signal until you change whats in the buffer. Seeing as starting and stopping can mess with your phase and cause a bit of havoc with the Lock in Amp, I would suggest not using only on-board memory.
For the timing, they should be one in the same. If you choose Sample Clock, you have to specify a rate at which you are generating, and then use that same rate when you use the Basic function Generator down in your gera_onda.vi. If you use waveform timing, all that is pretty much handled for you. The DAQmx write vi takes the dt (1/Fs) and uses that to calculate the sampling frequency. It's really a matter of preference.
As far as getting x down to zero, I would try changing the phase rather that the DC offset - though that could work as well.
One thing to note, the Lock in Amplifier Toolkit isn't designed for M-Series cards, so performance will vary. Take a look at this KB so you know what to expect - Lock-In Amplifier Startup Toolkit Compatibility with Non-DSA Hardware . To get the best performance from your card, make sure to use the smallest range possible that will still cover your signal. It looks like you are using a range from +/- 10 V but you're generating a sine wave at 75mV. If you change your AI ( and AO) range to reflect your signal, you will have better accuracy over that range. This is crucial for the Lock in Amplifier.
Hope this helps, please don't hesitate to post back if you have additional questions or need clarification over any of my comments.
Cheers,
Andrew S
National Instruments
04-09-2007 04:36 AM
04-10-2007 09:29 AM
04-10-2007 04:10 PM
04-11-2007 04:24 AM - edited 04-11-2007 04:24 AM
Message Edited by Goju-Ryu on 04-11-2007 11:04 AM
04-11-2007 09:32 AM
04-11-2007 10:08 AM
Hey Filipe,
I've attached a version that can be opened in LabVIEW 7.1. To answer your questions: Your 6221 is not a synchronous card - it multiplexes your inputs to a single ADC. This will add in a phase difference which will cause some errors. We spec the crosstalk at 100 kHz to be -75 db for adjacent channels and -95 db for non adjacent. This shouldn't have much of an effect on your reading. When it comes down to it, the 6221 is not well suited for the lock in amplifier. Hopefully you'll see better results with the Lock in tester, and be able to tweak your system with the laser to get better results.
cheers,
Andrew S
04-18-2007 09:07 AM