LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Waveform graph cannot render

Solved!
Go to solution

Labview 2016

I reading Data from CSV. (Format is one timestamp and one float data).

I connect the output 2D data as waveform chart and waveform graph.

But waveform chart work well and waveform graph cannot render and cause labview program crash.

What problem in my code ?

Download All
0 Kudos
Message 1 of 4
(2,916 Views)

We can't run and debug pictures of a .VI!

Please attach your actual .vi file.

0 Kudos
Message 2 of 4
(2,896 Views)
Solution
Accepted by topic author ngc7493

To begin with, your timestamp isn't monotonic. It start with 19:29:20.0 increase by steps of 0.1 second to 19:29:20.9 then continue with 19:29:20.10 which is the same as 19:29:20.1 (so it goes back in time). Then the next value is 19:29:20.11, the delta time is now 0.01 second! This is a big possibility why LabVIEW might crash.

Look at the LabVIEW help on Waveform Graph, it will explain what are the expected data formats for a Waveform Graph.

 

Ben64

0 Kudos
Message 3 of 4
(2,869 Views)
Solution
Accepted by topic author ngc7493

Also, have you looked at how 19:29:20.1 convert to a double? It returns 19, so all your timestamps that start with 19: will return this value. When you send this 2D array to a waveform graph it will display a constant plot of value 19 and a second plot with the values of the second column of your file, surely not what you want.

 

Ben64

0 Kudos
Message 4 of 4
(2,861 Views)