10-16-2010 06:29 PM
Hi to all,
I have a clock signal, and then some TTL pulses (coming from a detector).
I want to continuously read the number of pulses of the clock (the "tag") for each time the detector sends a TTL pulse.
I should save these tags in a binary file.
I have 4 different detectors, and I need to count each of them (so, a file for each detector) using the same clock for all of them.
Specs:
clock: 5 MHz would be the minimal requirement, 20 the optimal
TTL pulses: random, with an average rate of 200 KHz
I have two PCI6602 boards (I found that each 6602 can have only up to 3 DMA counters, so I bought a second one)
and I will probably use LabView 2009 (DAQmx) under windows XP (or linux).
I have some experience with LabVIEW, but feel I don't have enough knowledge to understand the details, and which is the best approach.
Starting from an example in
http://zone.ni.com/devzone/cda/epd/p/id/5905
I added the file saving and the increasing counter (with shift registers).
But with this approach, for my specs (high frequencies) I need 2 counters for each channel, so I would need to buy two more 6602 cards.
Are my requirements beyond the hardware (i.e. two boards only) capabilities?
Is there a more efficient approach?
Thanks
oakwood
10-18-2010 05:26 PM
In the meanwhile, I tried few more attempts:
with "2 edge separation" apparently is not possible to use an external timing source.
The "encoders" approach seems not suitable, since it requires no input other than the "encoder" intelf.
So, I am running out of options to try...
Unless there is something I am missing.
10-19-2010 11:01 AM
Hi,
I think it's not a period measurement, but a gated edge counter that you should use.
Have you had a look at the following exemples?
I know they are not really new, and they'll maybe need some modifications to work with the newer drivers, but they should give you some clues to access what you want to do with the hardware you already owns.
Kind Regards,
Olivier L. | Certified LabVIEW Developer