06-15-2010 03:02 PM
Hey folks,
So I'm trying to take data from two different photo diodes plugged into a NI BNC2110 DAQ but for some reason it's collecting a specified amount of data from one channel then it moves onto the other. I'd like for these to be collected at the same time but cannot figure out how to do it.
I've attached my code as well as a sample of the data I've collected from a HeNe laser power fluctuation. After viewing the image you should see that Channel 2 is distinctly out of phase from Channel 0 whereas these should be directly in phase. Weird.
Any help would be appreciated.
06-15-2010 03:03 PM
06-15-2010 03:07 PM - edited 06-15-2010 03:11 PM
It's not at all weird since that is the way you programmed the acquisition. You have one task for one channel that you start and then stop and then you start/stop a task for a different channel. You need to have a single task with both channels specified in the physical channel constant and change from 1Chan NSamp to NChan NSamp.
p.s. You don't have any sort of loop. Please don't say you are using the Run Continuous button. If you are, stop doing that and place a while loop around the code you want to run. The code up to the Start Task and the Clear Task should be outside the loop.
06-17-2010 02:37 PM
hah, I actually figured out the problem mere moments after I posted the question. Your solution was the answer.
I still have no idea how to couple the zoom on two separate graphs. Any ideas?
06-18-2010 03:36 PM
Howdy Luminescense!
This forum post discusses how to synchronize the zoom between two waveform graphs.
Regards,