01-28-2008 04:34 PM
01-29-2008 07:45 PM
Hi Matt,
After reading your response it wasn’t clear to me, how you had your counter signal connected. According to the NI 6013/6014 Family Specifications, on page 2 in Table 1 PFI 8 is also the CTR 0 Source.
If using a wire to connect the counter input signal from the ADP, the wire should be connected to PFI 8/P2.0 on the Spring Terminal Block for the BNC 2110. If using a BNC connector for the counter input signal from the ADP, then instructions in the BNC-2110 Installation Guide say that to access the PFI 8 signal from a BNC, you need to connect USER 2 on the spring terminal block to PFI 8/P2.0 with a wire as shown in the diagram in Figure 5 of the manual.
It may also be helpful to set up a frequency measurement to determine the actual frequency of the input signal. Several good examples can be found in the Example Finder under Hardware Input and Output >> DAQmx >> Counter Measurements >> Digital Frequency
01-30-2008 12:08 PM
01-31-2008 01:34 PM
Hi Matt,
I agree that the behavior is strange. I was glad to hear that you were able to correctly read a 10ns TTL signal from a function generator. That helps us to know that everything with the signal configuration is configured properly.
Here are a couple of ideas of things you could try to figure out what is going on:
If you can successfully read a signal with a slow rate from another source, then the issue must be with the detector signal itself (noise in the signal, TTL compatibility, ????).
02-01-2008 02:34 PM
02-04-2008 03:18 PM
Hi,
I do have a question, it seems to me you are trying to count edges, but from your troubleshooting it seems you are measuring frequency I just want to make sure we are in the same page, so are you counting edges or are you measuring frequency?
If you are measuring frecuency I’m suspecting is that you are overflowing the counter. If you are making a frequency measurement you are basically going to count how many ticks of a known frequency signal are inside yours. So if your signal is 8Hz and it is a 50% duty cycle, 0.0625 s are going to be high and 0.0625 are low. That means that using a 20 MHz time base 50 ns ticks we will have 1.25e6 counts for the time your signal is high. For a more comprehensive explanation take a look at this knowledge base: What Are the Maximum and Minimum Limits for High and Low Pulse Width or Duration on a Counter Operat...
I hope it helps
02-05-2008 11:49 AM
02-06-2008 12:25 PM - edited 02-06-2008 12:29 PM
Hi,
So if you are counting edges there is no overflow problem on you configuration. I have an 80 MHz counter reading a 8 Hz signal, probably the same as your co-worker's, what I’m doing is generating from ctr0 an 8 Hz 50% duty cycle square wave and reading it on ctr1 on the same signal through a CB-68. I would like you try these examples with the same setup and tell me if you can get the same result. See screen shots attach:



The names of the examples are on the title bar for each screenshoot, the last one is just the capture from the scope. After this test if you still get the wrong reading and if you don’t mind, please attach the smallest replica of your code that will give you this erratic behavior and I will get a 6014e to test it myself.
I hope it helps
02-06-2008 04:28 PM
Thanks for your help,
- Matt.
02-07-2008 06:17 PM
Hi,
I think you forgot to attach the comparison and attaching your code. So if the test works, and you are able to generate the pulses from the 6014e and count them with the same card it means that the hardware has no problems. What confuses me is that you were able to count the pulses from APD with the USB-6009 and the only difference between those cards is like you said before is the 4.7 Ohms pull up resistor.
The only thing we have to be aware on this test that is not the same when counting from the APD, is that the grounding is not an issue since the counters are sharing the same digital ground. When the signal is coming from the APD the ground of this BNC is been connected to the digital ground. I'm almost positive that what we have here is a grounding issue between the APD and the BNC-2110. If you can post a picture of how your signal looks from the APD in a scope it will help me a lot.
Waiting for your response.