05-18-2011 09:38 AM
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:
And the graph looks like this:
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.
05-18-2011 09:48 AM
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
05-18-2011 10:06 AM
The selection is a combobox with different values.
e.g. signal1 has value 1. The indexing of the array is correct, i tried it.
05-18-2011 12:22 PM
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
05-18-2011 01:49 PM
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.
10-11-2011 05:00 PM
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.
10-11-2011 05:03 PM
10-11-2011 05:08 PM - edited 10-11-2011 05:10 PM
10-11-2011 05:43 PM
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.
10-11-2011 05:56 PM
I solved it, I changed the scale under properties to 2 and it solved the problem.