03-13-2014 09:20 AM
Hello.
I need to measure freaquency of a digital pulse counter in LabVIEW. I know that this is possible with DAQ assistant and I already tried it and it works.
The problem is this: The DAQ Assistant freaquency output seems to be updating only once in ~1s which is even nearly the rate that I need for this application. Is there any way to increase this output rate for freaquency measurement?
All help is appriciated!
03-13-2014 10:48 AM
What is the frequency range you are trying to measure? What DAQ module are you using to measure this?
03-13-2014 10:56 AM - edited 03-13-2014 10:59 AM
I'm using NI USB 6353. The freaquency range is about 0-140000Hz.
Edit. 140 000, not 14 000.
03-14-2014 05:38 AM
Any ideas on how to make the DAQ Assitant output update rate higher?
Help is greatly appreciated.
03-14-2014 05:48 AM
03-14-2014 05:59 AM - edited 03-14-2014 05:59 AM
I've checked some basic block -ipmplementations of a basic digital freaquency measurement but I still haven't come up with a way to adjust the update rate of the output.
03-18-2014 03:15 AM - edited 03-18-2014 03:19 AM
I still haven't come up with a solution to this problem. What actually is the core reason for the update rate being so slow and how can I change that?
Edit.
To be more precise I am using "one sample on demand" for the counting and the DAQ Assistant is inside a for-loop.
Thank you.
03-18-2014 03:25 AM - edited 03-18-2014 03:26 AM
Hi Aleksi,
As what GerdW mentioned, its best to use basic (or low level) DAQ functions for configuration.
Anyhow, can you post a screenshot of the configuration of the DAQ Assistant?
Also, did you place any timing functions (like Wait, or Wait Until Next ms Multiple function) in the While For Loop?
-Ee Lim-
03-18-2014 03:32 AM - edited 03-18-2014 03:34 AM
I know but I'm a rookie so I have been trying to avoid using them. I quess I should give it a try.
Anyhow you can see the Daq Assistant settings attached. And yes, I am using a Delay function inside the for loop (0,01s). I quess that's a problem? I do need it so I must come up with something else I quess.
Thanks for your help.
Edit. I haven't touched any of the settings that are not visible in the picture.
03-18-2014 03:49 AM - edited 03-18-2014 03:56 AM
Hi Aleksi,
Well, you don't have to worry about building basic DAQ functions from scatch. There is already an example code in LabVIEW, where the codes for frequency measurement are already done for you.
All you need is to go to Help > Find Example, and look for the following example VI as shown in the diagram below:
I'm still trying to figure out the reason why the response is slow using DAQ Assistant.
-Ee Lim-