LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform chart gaps

Hi,

 

If completed my application for data acquisition, onlyi'mnot that happywithmy waveform chart... It shows gaps, time to time? And i don't know why?

 

Here is an example:

Screenshot 2014-04-04 16.22.53.png

 

Does anyone has a solution for this?

 

Regards,

Thijs

0 Kudos
Message 1 of 25
(3,611 Views)

The only time I've seen gaps in graphs or charts, is when you try to graph the value "NaN" (not a number).  This usually comes about by doing some math that has a result that can't be represented.  Dividing by zero is a common way of making a value NaN.  You'll need to do some debugging to figure out why your value became NaN and probably use the Not a Number check (under the comparision palette) to catch when this happens.

0 Kudos
Message 2 of 25
(3,596 Views)
Maybe that could be the case, i'll check for emty arrays and only write to my graph when there's data. I can only check this next tuesday... I had this once in another apication i recall. But if i write empty arrays to a waveform chart it shouldn't fill it either...? Mmmh??

Best regards,
Thijs
0 Kudos
Message 3 of 25
(3,573 Views)

Hello Thijs,

 

Please note that NaN's are not the same as empty arrays.
It would indeed be a good idea to look at (or better to log) the data that you're currently sending to the chart.

This will give you some more insight.

 

If it does not help, then do not hesitate to share some sample code.

It might prove useful to pinpoint the source of your gaps.

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 25
(3,559 Views)

I didn't want to reply until I knew for sure, but writing an empty array to a waveform chart does not create gaps. Only writing a NaN does this.

0 Kudos
Message 5 of 25
(3,555 Views)
I couldn't imagine i write nan's to my chart? My data is realy clean and simple... But i have to check to be sure!
0 Kudos
Message 6 of 25
(3,551 Views)

Hey Thijs,

 

Can you perhaps log the data and share the VI?
This way I can try to reproduce it.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 7 of 25
(3,544 Views)
Next tuesday... I am not at work till then...
0 Kudos
Message 8 of 25
(3,531 Views)
It looks to me like square edges may not be showing properly due to rendering issues. I doubt it is NaN in this case as it looks like the same data point in the y axis. I may be wrong but I will be interested to see the original data set to see if the problem can be re created.
Michael
Message 9 of 25
(3,524 Views)

I agree with Michael78--all of your dropouts are at zero crossings on vertical lines.  It would be quite the coincidence if you were losing data for some reason at exactly those places and those places only.  It has to be a rendering issue.  Can you feed it some data that does not have vertical lines and see if the problem disappears?

0 Kudos
Message 10 of 25
(3,515 Views)