08-14-2012 01:32 PM
I'm trying to simulate a "scope" screen for some data that I get from a Controller-Box. There are really three
chanels of data, but lets just consider one. The data comes in as integers @ a rate of 2000 per second.
What I want to do is have a plot on the "scope" where the X-Axis stays stable. That is, the Division Lines
should stay fixed in place -- not be moving off to the left of the screen. As I append data onto the graph,
the PLOT should move off to the left of the screen.
Put another way, the grid-lines coming up from the X-Axis should be acting like ruler marks and not DATA.
Thanks!
08-15-2012 06:57 PM
Hello Jabadoodle,
Welcome to the forums!
The exact way of doing that depends on which .NET language you are using if you want to configure it programmatically.
You should be able to configure it through the graph properties on the right hand side of the ADE.
Once you are in the Waveform Graph Properties, go to the Graph section, and select the extra options for the XAxes.
There you will find a section on Behavior where you can set the Mode of the XAxes.
Under Mode I believe you are looking for the ScopeChart or StripChart option.
08-16-2012 02:09 PM
Thanks Jacob, I appreciate you're taking the time to answer.
I solved this by doing a new-plot each time rather than appending data. Example:
* I want a plot to be exactly 2000 data-points wide on the X-Asix.
* But I get chunks of data at smaller intervals, say 150 points or so at a time.
* I just put them into an array.
* When I get the next 150
* I shift everything in the array LEFT by 150
* Then plot the full 2000.
Maybe this was the brute-force method..but it works.
Now have another question, but I'll start a seperate thread.
Again, Thanks You!