05-27-2017 09:50 AM
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 ?
Solved! Go to Solution.
05-27-2017 10:37 AM
We can't run and debug pictures of a .VI!
Please attach your actual .vi file.
05-27-2017 01:49 PM
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
05-27-2017 02:42 PM
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