LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph scroll

I have a graph with 8 plots, each with different X_max.
but the number of data points are fixed (400). When my X_max is less than 400 some part of my plot is not visible.
When i scroll the cursor on such a plot, it should be scrolled till 400 and not beyond that.
Also X_max should not go beyond 400.
Also when i do this, my other plots should not be affected.
 
Regards,
Harish.
0 Kudos
Message 1 of 4
(2,894 Views)
Harish,

I might suggest using an XY Graph for your plots instead of a normal graph.  This will display the rest of your data in the correct manner.  If you need help with wiring the XY Graph, check out the help since it can be a little confusing.  Please repost if you have any specific questions about this.

Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 4
(2,868 Views)

Hi Andy,

I am using waveform graph at the moment. Following is the detail of my application,

I acquire data with various sweep speeds( 1ms/div, 2, 5, 10...)

Whenever i acquire data i get a set of 400 points. During offline analysis, i can change the sweep parameter.

When i change the sweep from 2 ms/div to 1ms/div, i change my x_max to 800, and then the plot on the waveform goes beyond the visible region of the graph.

On this plot i also have cursors. Now i might want to put the cursor in the region which is not visible at the moment. This i am able to do by scrolling the cursor. But what i want is that the waveform should be able to allow such horizontal scrolling only till the last data point. X_max for this plot should be locked to 800. Also this scrolling of cursor should not hamper other plots of the waveform.

How can we solve this issue??

Harish

 

0 Kudos
Message 3 of 4
(2,855 Views)
Harish,

So you have 8 sets of data points that you are graphing, each with a different maximum x-value, but all have the same number of points.  During your analysis you change the maximum value of your x-value, which changes how the data is scaled.  Is this correct?  Does the data actually change or are you changing the maximum value on the graph? 

To test this I created four plots each with 100 points and then changed the maximum value on the graph by double-clicking the last value on the x-axis and changed it to 50.  Once I did this and made the scrollbar visible, I was able to only scroll to the end of the data and no further.  If I entered a maximum value past the maximum value of the data then I was able to see the data and empty space where there was not any data.  So I am not sure what you are seeing as an error.  If you right-click on the graph and select Create » Property Node you will have access to a lot of the properties for that graph.  There is probably something there that you would find useful. 

If you attach a simple example of what you are seeing I would be happy to look at it and give some suggestions.  Be sure to simplify the code just to display the plots and give some steps that you follow to see your incorrect behavior. 

Thanks!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 4
(2,834 Views)