Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ timing

Solved!
Go to solution

 

Hello,

 

I am getting data by DAQ Assistant in a While loop. I need the loop working just for 600ms and after that it should stop. I used two Tick Counts inside and outside of the loop (just like attached) so that as soon as x-y indicator gets 600 the while loop should stop. However, this idea does not work as x-y never gets 600. It always starts from around 1025ms (it is randomly, some times this number changes to 1041, 1023, 1058,...). Does any one know what is the problem here? Some thing is wrong with my DAQ Assistant?

 

Thank you

0 Kudos
Message 1 of 8
(6,048 Views)

You have a normal LabVIEW question that belongs in the LabVIEW forum.  For some reason, you decided to post in the Idea Exchange to propose new ideas for data acquisition products.  I've asked the moderator to move this thread.

0 Kudos
Message 2 of 8
(6,040 Views)
It is impossible to say without knowing what you have set for the sample rate and the number of samples. The time for a single acquisition is a simple arithmetic calculation so provide the numbers and the DAQ.device you are using.

Also, you should not be using an equal comparison. A greater than or equal should be used.
0 Kudos
Message 3 of 8
(6,021 Views)

Hi Dennis,

 

Lets say the sampling rate and # of samples are equal and can be either 1000 or 10000. I am attaching the code.

 

Many many thanks,

Soran

0 Kudos
Message 4 of 8
(6,012 Views)
Solution
Accepted by Soran
If they are equal, then the acquisition will take 1 second. As I said, this is simple arithmetic. Samples divided by samples/second yields seconds.

You still have not provided the DAQ device. We have no idea if your sample rate is being coerced to something the device actual supports.
0 Kudos
Message 5 of 8
(6,008 Views)

Oh sorry, DAQ is PCIe6351

0 Kudos
Message 6 of 8
(6,004 Views)
So, setting your comparison to 600 msec makes no sense. The reason that you see a count greater than 1000 is the time required to initialize and start the task.
Message 7 of 8
(5,995 Views)

Got it, thank you very much.

0 Kudos
Message 8 of 8
(5,989 Views)