LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Periodic spikes - BNC 2121

Hi, I'm using a BNC 2121 to do event counting.

 

I used the example for counting provided by NI. The only difference is that I plot the difference between current count and previous count as the loop updates.

By varying the loop update speed (the wait for next millisecond multiple) I vary the noise and this will also depend on the source I am counting which is fine.

 

My problem is that as the millisecond multiple goes small (2ms) I start to get periodic spikes which are much larger than the noise. If I go to 1ms the average completely moves to the top of the spikes which were at 2ms.

 

Does anyone know why this would happen? Is there some kind of limit in either labview or the BNC 2121 to how often a counter value can be updated? 

 

This might be difficult to grasp or I am not making it clear I'll probably post some pics later. 

0 Kudos
Message 1 of 3
(2,765 Views)

Results and block diagram.

 

The results show images with segments of varying update time.

 

1.JPG2.JPG3.JPG4.JPG

0 Kudos
Message 2 of 3
(2,744 Views)
You need to figure out the frequency of the spikes. It looks to me like it is a constant frequency. If you know the frequency then you can start trouble shooting. I would be it is ambient noise being injected into your system.
Tim
GHSP
0 Kudos
Message 3 of 3
(2,736 Views)