LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph, Problem with X-Axe as Timeline

Hallo,

 

I have an array (45 columns and a custom number of rows). Every second a generate a new row, in the first column is 

a timestamp in seconds.

Now I want to take one column and show the values in this column in graph, the X-values are from the first column.

I tried it like that:

Unbenannt.png

And the graph looks like this:

graph.png

The timeline doesn't match with the timestamp.

Is there a better way to show the values, e.g. waveform chart or graph. But how I can generate a signal for such a chart with an 2D array that includes timestamp and value??

 

Thanks.

 

 

 

0 Kudos
Message 1 of 10
(3,316 Views)

Your signal selection appears to use string to numeric where the string is not a number - perhaps you should consider using an enum instead of the string w/conversion.

 

Michael Tracy

Synergy Microwave

0 Kudos
Message 2 of 10
(3,312 Views)

The selection is a combobox with different values.

e.g. signal1 has value 1. The indexing of the array is correct, i tried it.

0 Kudos
Message 3 of 10
(3,307 Views)

Sorry, I saw the straight line response and assumed the indexing was off.  In circumstances where I had a date stamp and the _year_ data was off, the problem was actually in the date formatting for the _month_ part of the data (doesn't make sense, I know).  I don't recall the specifics now, but I would check that.

 

Regards,

 

Michael

 

0 Kudos
Message 4 of 10
(3,300 Views)

For one thing, it sure looks to me like you are bundling your Y values and then your X values when it should be the other way around.

Message 5 of 10
(3,295 Views)

I am getting similar results. The timestamp on the X Axis does not match the time.  There seems to be a lost of a second every 5 to 10 seconds.  I am doing a 24 Hour test and this adds up.

0 Kudos
Message 6 of 10
(3,235 Views)

commtest.PNG

0 Kudos
Message 7 of 10
(3,232 Views)

0 Kudos
Message 8 of 10
(3,227 Views)

I found out that if I change my loop update rate back to one second the problem goes away, if I change it back to 2 second update rate I lose a second every other second.  

0 Kudos
Message 9 of 10
(3,210 Views)

I solved it, I changed the scale under properties to 2 and it solved the problem.  

0 Kudos
Message 10 of 10
(3,202 Views)