LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to specify the output update rate of a DAQ Assistant freaquency task?

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!

 

 

 

 

0 Kudos
Message 1 of 14
(3,721 Views)

What is the frequency range you are trying to measure?  What DAQ module are you using to measure this?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 14
(3,694 Views)

I'm using NI USB 6353. The freaquency range is about 0-140000Hz.

 

Edit. 140 000, not 14 000.

0 Kudos
Message 3 of 14
(3,689 Views)

Any ideas on how to make the DAQ Assitant output update rate higher?

 

Help is greatly appreciated.

0 Kudos
Message 4 of 14
(3,648 Views)

Hi Aleksi,

 

when you want to control all DAQmx settings you should not use ExpressVIs…

 

Why don't you use basic DAQmx functions?

Best regards,
GerdW


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

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.

0 Kudos
Message 6 of 14
(3,636 Views)

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.

0 Kudos
Message 7 of 14
(3,570 Views)

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-



See that button on the left side of this post...

If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~



0 Kudos
Message 8 of 14
(3,562 Views)

I know but I'm a rookie so I have been trying to avoid using them. Smiley Sad 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.

0 Kudos
Message 9 of 14
(3,555 Views)

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:

Capture.PNG

 

I'm still trying to figure out the reason why the response is slow using DAQ Assistant.

 

-Ee Lim-



See that button on the left side of this post...

If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~



0 Kudos
Message 10 of 14
(3,543 Views)