LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Line joining every other value on a chart

Hi guys,

 

Is it possible, on a waveform chart, to set the line to join every other point? My chart plots a point of data, then a point of -1, then a point of data etc. and I would like a line connecting the data points, but bypassing the -1s. Is this possible?

0 Kudos
Message 1 of 5
(2,636 Views)
Well, If every other data point is -1 you could remove the "non-data" points from the array before you plot itSmiley Wink

"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 5
(2,634 Views)

Hi dpg,

 

try replacing the "-1" by NaN!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(2,633 Views)

This would be perfect - it plots the values correctly, but it won't plot a line between them :s

 

Does anyone know a work around 😞

 

Also, RayR, I wish I could Smiley Sad

0 Kudos
Message 4 of 5
(2,595 Views)

Hi dpg,

 

so you could split your values into 2 separate plots (in the same chart of course!), one plot with those "interesting" values, the other with all those "-1"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(2,589 Views)