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.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Would it be possible to plot discontinuous line on CWGraph?

I need to plot a discontinuous line on a plot. Basically, if the amplitude of the waveform is possitive, I need to draw a line at 1.0. If the amplitude drops to below zero, I need a bland line (no line). What would be the easiest way to implement this?
0 Kudos
Message 1 of 2
(2,644 Views)
There's no way to do this with a single plot. The closest that you could do to this would be to create a plot for each line segment. You may also be able to do this by making the value NAN for your 0 values.

- Elton
0 Kudos
Message 2 of 2
(2,644 Views)