Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the 6525 counter to measure frequency: is there a neater way?

Solved!
Go to solution

I'm currently using the high speed counter on the a USB 6525 module to measure the frequency of a spinning object via a hall effect sensor.

 

I was wondering if there was a simpler/ more effective way of coding it than this?

 

Currently all I do is take the current counter reading, wait a second, take another reading and subtract one from the other. The result is the frequency, in hertz.

 

Is there a way of getting the 6525 to return the count/ change in count after 1 second?

 

Thanks

 

Untitled.png

Download All
0 Kudos
Message 1 of 5
(5,952 Views)

The counter can measure the frequency directly.  Just create a counter frequency task.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(5,939 Views)

Thanks for commenting. I'm not sure if I'm doing it right though or whether the NI USB 6525 can't handle this type of measurement?

 

I keep on getting an error that says to effect it can't do this type of operation.

 

Can you advise?


Thanks

 

 

 

Untitled2.pngUntitled3.png

 

 

0 Kudos
Message 3 of 5
(5,923 Views)
Solution
Accepted by topic author AndyF
On the 6525, you only have an event country and you cannot do a frequency measurement.
0 Kudos
Message 4 of 5
(5,890 Views)

That's what I suspected after trying, thanks for confirming.

0 Kudos
Message 5 of 5
(5,875 Views)