07-24-2024 09:53 AM
Friends,
I configured my waveform chart to display time in minutes and seconds on the x-axis. However, a number appears before the minutes and seconds, as shown in the figure. Is there any way to make the program not display this strange number? Thank you for your help!
07-24-2024 10:29 AM - edited 07-24-2024 10:30 AM
What are the time values? (e.g. how is t0 obtained) Could it be they are absolute (seconds since ~1904) instead of relative?
07-24-2024 10:56 AM
Time comes from elapsed time vi.
07-24-2024 11:01 AM
Set start time (s) --> 0
07-24-2024 11:25 AM
You need to be more specific. Can you explain how things are wired up, maybe attach a simplified version of your VI (save for previous, 2020 or below).
A chart does not accept an elapsed time anywhere. What is dt? What is the datatype (dynamic, waveform, array, scalar cluster, etc.). How is the x-axis configured?
07-24-2024 11:51 AM
07-24-2024 11:53 AM
It is a simple continuous voltage acquisition.
07-24-2024 11:56 AM
63411218 minutes is about 120.6 years, which is about the same time between the "zero time" of LabVIEW (Jan 1 1904) to now.
Somewhere, somehow, you have converted a time stamp into a value that the waveform chart thinks is what it needs to display as the time counter.
You might want to consider using a "graph" instead of a "chart". A chart seems easy because you only pass in the Y values and it takes care of X for you as well as storing all previous values in the chart until they roll off, but it comes at the cost that all the X values are evenly spaced and difficult to define.
With a graph you will need to both define the X,Y pairs more precisely and maintain your own copy of the complete data you want to show, but the increase in control over what you see is always worth it in my experience. I haven't used a "chart" in any application larger than a single quick testing VI in years.
07-24-2024 11:56 AM
Forgiveness! Elapsed time was used elsewhere in the code and has nothing to do with this specific case. In this case, it is simply a waveform chart showing the values acquired over time.
07-24-2024 12:55 PM
we cannot debug pictures.