LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

frequency measurement off by a factor of e6

I am using a niScope Read WDT to acquire statistical measurements of the frequency. However, when I record the frequency, it is off by a factor of 10MHz. That is, if I input 5MHz or 1MHz, it gives me the result as 0,1Hz and 0,499999Hz. Any ideas why?

 

 

Please see attached vi and measurement file.

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

My quick guess would be the locale setting for Windows. You appear to be using a European separator (comma).

 

I Don't have LV2010 installed or an niScope, but I suspect that there must be a place to change the separator setting for locale on one of the the VIs or in NI-MAX. 

 

 

0 Kudos
Message 2 of 5
(2,574 Views)

You didn't include your analyze VI in your ZIP.

0 Kudos
Message 3 of 5
(2,566 Views)

Oh, right. Here it is 🙂

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

My guess is that your global is the cause of your problems.  You are coercing your captured data to a waveform that only supports an array of DBLs.  No timing info is saved in your global.  This would cause the analysis VIs to not be able to report correct timing/frequency info.

 

You also don't need your global.  You have the two subVIs right there.  Create a control on your analyze VI and wire the two VIs together.

0 Kudos
Message 5 of 5
(2,529 Views)