LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use time delay properly

Hello Everyone,

I am new to using LabVIEW and have encountered and error with a .vi that I am working on. I am attempting to sample 100 samples every 900 ms at a rate of 1000 Hz. When I run my .vi it works fine for a while and then gives me the following error.

 

Possible reason(s):

The application is not able to keep up with the hardware acquisition.

Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.

Property: RelativeTo
Corresponding Value: Current Read Position
Property: Offset
Corresponding Value: 0

Task Name: _unnamedTask<10>

 

I have attached the file I am using to try and determine what the error is.

 

Thank you, 

Jon

0 Kudos
Message 1 of 2
(2,220 Views)

Well, the Dreaded DAQ Assistant has Done You Wrong!  [Please try to learn the fundamentals, and avoid the Express VIs -- there's a perfectly nice Wait (ms) function on the Timing Palette that will do your 900 msec wait].

 

Having slammed the DDA (Dreaded DAQ Assistant], it did tell me you may not have understood "Acquisition Mode".  "Continuous Samples" means "continuously acquire data as instructed", in this case, continue to acquire 100 points at 1KHz, which it will do 9 times while your 900 ms Wait is taking place.  So your loop is running 9 times slower than the DDA, so it gets an "intestinal blockage" and blows up.

 

Bob Schor

Message 2 of 2
(2,210 Views)