LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph RIO zoom Problem

Hello
 
Can anyone help me out?  I am trying to use a chart with a Sliding Region of intrest function. 
 
I would like to be able to zoom in on the RIO and have the ability to zoom back out.
 
I would also like to be able to set the initial mid point setting of the RIO slider.  The original file was using the delta T (psec) control to do this.
I have only been experiementing with this number to see what value works.  If someone could explain what is going on with that control it would help.
 
I noticed that when I move the RIO slider to the left all the way the value goes negative, I am not sure if the program stops reading the value
at zero or not.....
 
When you run  the select RIO Rev 4 vi set the DATA COL to PLOT to 1 to see the correct data
 
Thanks in advacne
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 2
(2,696 Views)
Hi Tim,

I took a quick look at the code, and it seemed to work fairly well for me (I am using LabVIEW 8.0.1 - which version are you using?).  I noticed the negative values for the boundaries if I move the midpoint near the edge of the graph, although for me the actual region of interest stopped shifting left once the left boundary hit zero.  If you want to prevent the user from moving the midpoint beyond this point, you can edit your Window Midpoint Value Change event case to force the value to be no less than the width of the region of interest.

I probably didn't clearly understand your question, but for me the functionality that you're looking to implement is already available as part of the XY Graph in 8.0.  If you open the Graph Palette attached to the bottom right corner of the XY Graph, there is a zoom selection that lets you choose an axis-locked region of interest on which to zoom in on, as well as another zoom option that will take you back out to the full graph view.  Using these may be more efficient for you.
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 2 of 2
(2,679 Views)