04-16-2014 08:43 AM
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:
Does anyone has a solution for this?
Regards,
Thijs
04-16-2014 09:43 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-17-2014 12:39 AM
04-17-2014 09:21 AM - edited 04-17-2014 09:36 AM
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.
04-17-2014 09:26 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-17-2014 09:35 AM
04-17-2014 09:37 AM
Hey Thijs,
Can you perhaps log the data and share the VI?
This way I can try to reproduce it.
04-17-2014 12:34 PM
04-17-2014 12:49 PM
04-17-2014 01:01 PM
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?