Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Using WaveFormGraph -- How can I keep X-Axis Constant?

 

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!

0 Kudos
Message 1 of 3
(4,582 Views)

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.

 

Jacob R. | Applications Engineer | National Instruments

0 Kudos
Message 2 of 3
(4,575 Views)

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!

 

 

0 Kudos
Message 3 of 3
(4,572 Views)