LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphing Time on X axis from a 1D array file vs temp

Hello

I am trying to graph time along an X axis in relation to temp.

This is the format I am trying to have displayed

1:00a 2:00a 3:00
05/01/01 05/01/01 05/01/01


These are the conditions:

Time is in the following format:

a. 05/10/01 12:00a
b. In character format
c. In a 1d array

Temp is in the following format:

a. An actual number
b. In a 1D array

Tried solutions to plotting time on X axis:

a. Tried the X,y graph, didn't work
i. Could not plot characters
ii. But, did plot the time numbers, cycled
from 1am to 12am, then it would go back
to 1am


I have considered making the date (05/01/01) into a number but r
an into problems b/cause the software doesn't like slashes. I have searched for an algorithm to delete the slashes but was unsuccesful. There is also the displaying of time. Time is problem b/c it is no longer part of the array being displayed on the X axis.

Have also attempted to make time into characters and plot it as a bar graph but bar graphs are not available in labVIEW.

Using the clock provided by the labVIEW charts is not an option! We tried this and after a while our data and time were not matching. This
is probably because our data is not in real-time.

Please advice
0 Kudos
Message 1 of 2
(2,762 Views)
Have you tried putting X scale format in time and date? this way, just wiring seconds since 1904 into x scale will give you a date/time format very close to your objective. Just right click on the xy graph and select x scale formatting. There, you can select time & date in format, so you'll have a date time string in the x scale, but only if you wire proper seconds since 1904, under time date function palette.
Hope this helps
0 Kudos
Message 2 of 2
(2,762 Views)