Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use CWCounter to make continuous frequency measurements?

I am using the component works CWCounter control to measure the frequency of a quadrature signal being fed into my PCI-6602 card. My CWCounter setup currently looks like

m_spCounter->Device = 1;
m_spCounter->MeasurementType = CWDAQControlsLib::cwctrFrequency;
m_spCounter->GateWidth = 10;
m_spCounter->Configure();
// Advise the AcquiredData() event here
m_spCounter->Start();

This results in only one event being called after ten seconds. How do I make the CWCounter report frequency ever 10 seconds until I call Stop()?
0 Kudos
Message 1 of 2
(3,321 Views)
Aaron;

The best way for you to start your development is to use one of the NI-DAQ shipping examples for that board of yours.
You can refer to the one named "TIO Position Measurment" that you can find at C:\Program Files\National Instruments\NI-DAQ\examples\Visual Basic.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,321 Views)