06-19-2006 08:21 PM
06-20-2006
08:18 PM
- last edited on
05-16-2025
01:23 PM
by
Content Cleaner
Confocal,
You would be much better off starting with NI-DAQmx, rather than Traditional NI-DAQ (Legacy), which is what you are currently using. After installing NI-DAQmx, I would start with the Count Digital Events-Buffered-Continuous-Ext Clk.vi example, located in the LabVIEW Example Finder (Help->Find Examples). In this example, you will count pulses on your source. Rising edges on your gate will then buffer the count value, effectively binning the number of pulses at the source. As for the pulse train generation, you can use another counter and the Gen Dig Pulse Train-Continuous.vi example. In this case, you can specify CtrXInternalOutput as the pulse counting gate, where X is the counter on which you are running the pulse train generation example. Please let us know if you have any questions!
Hope this helps,
05-29-2008 10:16 AM
05-30-2008 05:41 PM
06-01-2008 12:32 PM
06-02-2008 09:11 PM
Hi yatintyagi,
This VI has two tasks, one for edge counting and one for pulse generation. When doing Edge Counting the task counts the rising or falling edge of your input signal using a counter channel. The read VI is reading the value of the counter task. In this case a Buffered Edge Counting is performed, so the actual count will be updated with every edge of the sample clock. I think the image on the Edge Counting of the LabVIEW Help might be really helpful, you can also find it here. The counter output task is generating a signal that is defined by the frequency and duty cycle specified in the “Create Channel – Co Pulse Freq” VI. This pulse train generated is used as the sample clock for the Edge Counting task. I hope this is helpful,
06-03-2008 06:47 AM
06-04-2008 08:54 AM
Hi yatinyagi,
06-04-2008 09:45 AM
06-05-2008 08:56 AM
Hi, I basically want to accomplish two things. One is getting the APD count which would need a counter. The other is to make a clock of 20 Mhz and be able to count the time at the software level. So if I apply the output of a counter to the input of another can this be accomplished. What this would do is increment the second counter each time at a rate of 20 Mhz. So, by multiplying the counter data by the time period i.e. 50 ns I can measure the time. Or can this be done using only on counter? So, I am correct? Thanks, Yatin |