05-13-2015 11:19 AM
Hi,
I know this question is a little stupid..., but I'd still like to know how to realize it...
If the signal is generated randomly by time, how to plot it in the chart since its interval must be fixed?
like the following image
I think XY Graph might realize it, but it is not what I want since the signal is generated continously for a long time.
I hope the data will be updated as the chart mode, is it possible?
Solved! Go to Solution.
05-13-2015 11:30 AM
05-13-2015 11:52 AM
Hi, Dennis_Knutson,
I just don't hope there're too many data points on the graph.
If it generated 10000 data points after a long time, the graph will show all the data by enabling the autoscale property of the X-scale. It's somewhat too dazzling...so that I'd like to play it with something like a strip chart or scope chart that can update continously. Is it possible to make the XY graph become the similiar way as the chart?
05-13-2015 11:56 AM
Use a fixed size queue and do a lossy enqueue when new data comes in. It essentially becomes a buffer of data of length defined by your queue size. To display the data, use 'Get Queue Status' with 'Return Elements' = True.
(Or have an array of fixed size and have a circular index of elements - but I think the queue solution is neater)
05-13-2015 11:58 AM
05-13-2015 12:14 PM
Hi, Sam_Sharp & Dennis_Knutson,
Very appreciated to your helps, and then I know how to realize it:)
05-13-2015 12:22 PM
You could write waveforms to your chart. You can have a waveform with only 1 data point. But the T0 is the important part here since the chart will use that to know the X value to use. And since you are using a chart, the data is just appended and only the chart size data points will be kept.