From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,024 Views)

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

0 Kudos
Message 2 of 9
(3,010 Views)

Oh, sorry for this missing Information.

 

It is defined as continious. 

0 Kudos
Message 3 of 9
(3,007 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
(3,003 Views)

Here is the current Version of the Vi

0 Kudos
Message 5 of 9
(2,996 Views)
Solution
Accepted by 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
(2,979 Views)

Good catch.  I completely missed that.

 

That would effectively kill the positive things about Continuous Samples.

0 Kudos
Message 7 of 9
(2,968 Views)

@RavensFan

 

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

 

 

0 Kudos
Message 8 of 9
(2,965 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
(2,956 Views)