LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting data with gaps

Is there a way to plot data with gaps between groups of data points in LabVIEW 7.0? I receive a data packet from another computer over a TCP connection once per second. Each packet contains data for one machine cycle. I would like to plot the data in LabVIEW with gaps between each packet of data.
0 Kudos
Message 1 of 5
(3,222 Views)
LabVIEW graphs do not display the NAN value. You can stuff some NAN values between the packets. Another option is to use the Waveform Data Type. When passed to a plot, the data is plotted as a function of time. If each packet has a different t0, they will appear with time gaps. I have attached an example VI showing the Waveform approach.

Good luck,

-Jim
Message 2 of 5
(3,222 Views)
The NaN values do the trick. I thought there was a NaN constant but I couldn't find it so I generated it with the square root of -1.

Thanks for your help and quick reply.
0 Kudos
Message 3 of 5
(3,222 Views)
You can type the letters "NaN" into any floating point numeric constant/control.
0 Kudos
Message 4 of 5
(3,222 Views)
Now that's a really cool trick. Thanks JK!
~J5


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 5 of 5
(3,222 Views)