LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CWgraph plot question

if some range of data, which changed according to time, lost.I use "CWUIControlsLib__DCWGraphChartXvsY" method of CWgraph controlto plot it, how can I don't plot the region of lost data ? I found there is a line rather than nothing in this region.
0 Kudos
Message 1 of 4
(3,287 Views)
Hello,

Can you provide some additional information on how you're plotting and keeping track of this lost data? If you are doing some form of data acquisition, either your board or your code could be outputting old values until the value is changed. Therefore, you may see a constant line on your graph during this time. Maybe attaching some code would be helpful.


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 4
(3,265 Views)
sure, In the attach, there is a picture.Thanks!
0 Kudos
Message 3 of 4
(3,253 Views)
Hello,

If you want a discontinuity or a break in your graph where you lose data, you can plot a NaN value at this location. You can use the NotANumber() function to generate that value. This function is located in the Programmer's Toolbox under "Special Double Precision Numbers and Constants".
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 4
(3,234 Views)