08-02-2011 03:38 AM
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.
08-02-2011 09:30 AM
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.
08-02-2011 11:12 AM
You didn't include your analyze VI in your ZIP.
08-03-2011 01:56 AM
Oh, right. Here it is 🙂
08-03-2011 10:21 AM
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.