07-24-2006 10:34 AM
Shafran,
The 6602 gives you lots of counters -- perhaps some extra ones can be used to help?
1. Let's suppose you don't directly measure the period of the raw photon pulses, which are quite narrow and may produce bursts at too high a freq for reliable buffered period measurement. I'm guessing it's a problem with the very small on-board FIFO.
2. Instead, use the raw pulses as the trigger signal for retriggerable single pulse generation. This will cause each pulse to be delayed by a fixed delta time, and you can use this delayed pulse output as the signal for buffered period measurement. The new output pulses will have the same period as the original raw pulses.
Well, almost. The exception is during pulse bursts where a 2nd raw pulse comes in before the 1st delayed pulse is fully generated. In this case, the 2nd raw pulse is effectively ignored, and you'll need a 3rd raw pulse coming in to trigger the 2nd delayed pulse.
The pulse parameters can be selected to provide the desired cut-off freq, perhaps something in the order of 100 kHz.
3. This much by itself can help prevent your data acq error, but will leave you with an unknown # of ignored raw pulses
4. If you also set up another counter task to count edges of the raw photon pulses, you'll known the total # of raw pulses that came in. The difference between this and the # of buffered periods will be the # of high-freq raw pulses that were ignored.
5. If needed, the edge-counting task could become a buffered task. Then you can determine which interval the missed pulse(s) belong to. However, a buffered task will be more taxing on the data transfer problem that's causing you trouble.
6. It may be worth mentioning that this kind of issue has come up many times before. Others have sometimes resorted to binning -- generating a fixed frequency "sample clock" pulse train and then counting photon pulses per sampling interval. Just another option out there that seems to be sufficient for some situations.
-Kevin P.
09-12-2006 10:58 AM
09-12-2006 12:00 PM
09-25-2008 05:29 PM
Hello Kevin Price or anybody else with experience... I am trying to find a solution to the problem I posted about here:
http://forums.ni.com/ni/board/message?board.id=40&thread.id=2779&view=by_date_ascending&page=2
The last post of mine in that thread.
Looking for a solution myself I stumbled onto this thread. The problems seem quite similar yet I fail to come up with a solution. You guys seem to know what you're talking about so I was wondering what your thoughts would be on the matter.
Cheers,
KrisJ