LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing measurement entries for DAQMx

Solved!
Go to solution

Hi there, in my program a small error occurred.

Vi_22102018-1534.PNG

The following error occurs in all exported files:

 

LabViewBug.PNGWith the defined task I get all 0.004 seconds 3 values from 3 different physical input channels.

Exactly one second, the time series jumps to another interval. The error occurs only on exactly one second. In the second (2, 3, 4...) The error does not occur!

Does anyone have an idea what problem that can be?

 

Thanks!

0 Kudos
Message 1 of 9
(1,824 Views)

How is the task defined?  As Continuous Samples or N Samples?

0 Kudos
Message 2 of 9
(1,810 Views)

Oh, sorry for this missing Information.

 

It is defined as continious. 

0 Kudos
Message 3 of 9
(1,807 Views)

Okay.  I was thinking that if it was N samples, a small Windows hiccup might cause you to miss some milliseconds worth of data.  Continuous should work since it keeps the buffer going and the data should be there in the event of delay.

 

Attach the actual VI so we can see what some of the values you have in the controls.

Message 4 of 9
(1,803 Views)

Here is the current Version of the Vi

0 Kudos
Message 5 of 9
(1,796 Views)
Solution
Accepted by topic author JohannesS93

It looks like you are clearing the task after every iteration, so it needs to make a new task each time.

  1. Create task outside loop
  2. Clear Task Outside loop
  3. Only read samples inside loop.

mcduff

Message 6 of 9
(1,779 Views)

Good catch.  I completely missed that.

 

That would effectively kill the positive things about Continuous Samples.

0 Kudos
Message 7 of 9
(1,768 Views)

@RavensFan

 

Everybody misses an "extra point" every now and then. Smiley Wink

 

 

0 Kudos
Message 8 of 9
(1,765 Views)

@mcduff wrote:

@RavensFan

 

Everybody misses an "extra point" every now and then. Smiley Wink

 

 


Oh nooo!!!   Too soon!

 

Smiley SurprisedSmiley LOL

0 Kudos
Message 9 of 9
(1,756 Views)