01-20-2012 01:12 PM
02-13-2012 07:27 AM
Hi Pedro,
When you set the frequency range, did you select the lower limit of the frequency range to be 0Hz? You have to set the lower limit for frequencies higher than 0Hz because it's not possible to measure 0Hz. It is impossible because you would have to measure the signal indefinitely to ensure it didn't change its value.
Can you try measuring a fixed frequency signal (12Hz, for example) to see if the same error occurs?
If you don't get the same error, the problem is when you sensor measuring reaches 0Hz at a given moment of your aquisition. So, you'll have to change a little your programming.
Regards.
02-20-2012 09:15 AM
hi felipe, well, is not possible set lower frequency limit on 0Hz because of labview dont let you to do that, but consider that, if i know my frequency range, i know which is the lower limit of frequency i'll acquire, so i can predict how many time the lower frequency period takes and if i measure my signal during a time three times bigger than the period of my lower frequency i can completly be sure that if i can`t get at least two upper or lower edges the signal im measuring is a 0hz frequency for my system.
i tryed with 12hz frequency and sometimes it doesnt work, but i've worked just with internal clock frequency, i want to try an exterior clock signal before asking for more help, perhaps i dont understand well how to connect counter input signals or how to configure internal clock.
thanks for your help felipe
Pedro
02-27-2012 01:16 PM - edited 02-27-2012 01:19 PM
Hi Pedro,
One reason that the counter solution would be more desirable than the analog input solution is that you can get a much higher resolution (using the 80 MHz timebase). If I'm not mistaken the tone measurement that you are currently using would only give a 5 Hz resolution--you could acquire for a longer time duration to get higher resolution but the better approach is probably going to be with the counter.
Judging from the scope plots, it looks like the signal is rather noisy. If it is not possible to easily clean up the external signal, you'll probably want to enable digital filtering (see the PFI Filters section of the M Series User Manual) on the counter input terminals. However, you cannot do this through the DAQ Assistant. Here is a simple example showing the lower level DAQmx API that you can get started with. To enable digital filtering you need to add the following DAQmx Channel Property Node to the configuration section:
The noisy signal would explain why you would be measuring frequencies much higher than you expected, but does not explain the timeouts (assuming the signal is present). If you continue having difficulties measuring your signal at all, you should probably post more information about how you are connecting the signals and if possible provide a link to a specs page of your signal source.
Best Regards,