LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement of frequency using NI-9401 and NI-cDAQ

I am new to using the DAQ assistant. I want to measure frequency of 1Hz over a period of 32 seconds using NI-cDAQ and NI-9401. I have done the following configuration, but it gives an error ' -200284'. 

 

Chetana_VS_0-1688459776667.png

 

Any lead on how can we measure frequency over a specified period?

 

0 Kudos
Message 1 of 5
(784 Views)

Hi Chetana,

 


@Chetana_VS wrote:

I am new to using the DAQ assistant. I want to measure frequency of 1Hz over a period of 32 seconds using NI-cDAQ and NI-9401. I have done the following configuration, but it gives an error ' -200284'. 


Did you read the error description? It mentions something in the lines of "timeout settings"…

 

General recommendation: don't use the DAQAssistent, use the DAQmx API instead. It's easier than you might think!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(782 Views)

The error description says, 'Timeout occurred before some conversions got complete'. 

 

I wanted to measure a signal of 1Hz over measurement period of 32 seconds. I am confused with the settings to be done. 

 

Any leads on how to configure for my case?

0 Kudos
Message 3 of 5
(756 Views)

Hi Chetana,

 


@Chetana_VS wrote:

The error description says, 'Timeout occurred before some conversions got complete'. 


The complete message is:

Some or all of the samples requested have not yet been acquired.
To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger, make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.

 

So what is the configured timeout value?

Is there a sample clock?

 

All we got so far is an image of one of the configuration tabs of the DAQAssistent. You know we cannot edit/run/debug images with LabVIEW!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(747 Views)

Thanks for your reply @GerdW.

I am attaching my VI here. 

 

Any issue with the configuration?

My input is a digital signal of 1Hz frequency.

 

0 Kudos
Message 5 of 5
(722 Views)