Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Clocked Frequency Measurement DAQmx .NET cDAQ

Can anyone tell me how to make a Sample Clocked Buffered Frequency Measurement in a cDAQ chassis using NI-DAQmx with .NET 4.0?

I would like to make this type of measurement using a cDAQ chassis (with a DI module) and synchronize it with AI measurements from other modules in the chassis.

The User Manual for the cDAQ-917x chassis indicates that this is a supported measurement option but I can't find any program examples or other support for implementing it.

If I create a frequency measurement in NI-MAX for a cDAQ chassis, it is not one of the measurement types provided in the drop down list.

In addition, I cannot find any reference to this method anywhere in the NI-DAQmx .NET assembly nor find any reference to the CI.Freq.EnableAveraging property which apparently can be used to control the buffer averaging.

My .NET NI-DAQmx Assembly version: 9.3.40.219.

Thanks,

Jeff
0 Kudos
Message 1 of 4
(5,845 Views)

Hey Jeff,

 

Can you respond with the DAQ card that you're going to be using?

 

Thanks,

0 Kudos
Message 2 of 4
(5,828 Views)

cDAQ NI-9411

Jeff
0 Kudos
Message 3 of 4
(5,822 Views)

Hi Jeff,

 

The NI-9411 that you're using should be compatible with this kind of measurement. There is an example that ships with Measurement Studio that makes a Sample Clocked Buffered Frequency Measurement, which should be found on your computer at: C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.0\Counter\Measure Digital Frequency\MeasDigFreqBuffCont_ExtClk_ArmStart\VB. This example is written in VB, and there should be a C# example at the same path as well. 

 

To configure this kind of frequency measurement in NI-MAX, you just need to go to the Advanced Timing tab, and set the Timing Type to "Sample Clock."

 

Best,

Dan Nelson

Applications Engineer

0 Kudos
Message 4 of 4
(5,805 Views)