LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Analysis: Plot Zoom In

Hello everyone, 

Please check the screen shot below. I trying to do the same in my VI that I attached. There are three cursors in the original XY graph and the three other small XY graph are connected to it. If you move the cursors in the original plot, then the Zoomed-in version of the graph shows up in the small plots. Can anyone check my vi block diagram and tell me how I can implement that In my graph? Thank you. Screen Shot 2017-08-16 at 9.30.09 AM.png

0 Kudos
Message 1 of 10
(5,022 Views)

Use Property node to get the position of the individual cursors along the x-axis  (Active Cursor to specify which cursor,  then cursor position X to read its x value).

 

Use property nodes for the smaller XY graphs to set their X range about the cursor value you just obtained.

 

Going one step further, you can use an event structure (triggered on the Cursor Move or Cursor Release event) to update the appropriate small graph when any of the three cursors are moved.  (red cursor moved... get position via property nodes... update red graph range via property node)

 

Message 2 of 10
(5,007 Views)

Hi proland1121, 

 I was trying to do what you suggested. Do you think you can show me a simple block diagram of what you were talking? Thank you

0 Kudos
Message 3 of 10
(4,931 Views)

This is kinda what I did. But I guess I did not do right. It doesn't work. Screen Shot 2017-08-23 at 4.33.02 PM.png

0 Kudos
Message 4 of 10
(4,924 Views)

Hi Huqs, can you upload a csv file to use the VI? it will not run without a file

0 Kudos
Message 5 of 10
(4,899 Views)

@Huqs wrote:

This is kinda what I did. But I guess I did not do right. It doesn't work.


There is no need to slice and dice the data array N ways. Send the same data to all graphs and set the x-axis range (xmin, xmax) of the sub-graphs based on the cursor position.

 

Please attach your latest VI and a datafile.

0 Kudos
Message 6 of 10
(4,813 Views)

I won't dissect your diagram, but here's a quick draft using plain waveform graphs. Using xy graphs won't really change much, so just adapt accordingly. Is your data really randomly spaced in x?

 

 

Message 7 of 10
(4,809 Views)

Altenbach beat me to a working example.  That is exactly what I had in mind.  Like he said, the approach is valid for different types of graphs.

0 Kudos
Message 8 of 10
(4,795 Views)

Hi altenbach, 

So I looked into the VI that you attached And I liked it! it's simple and easy to implement. So I was trying to implement it in my VI but I couldn't do it due to wiring and connection issues. 

0 Kudos
Message 9 of 10
(4,737 Views)

@Huqs wrote:

So I was trying to implement it in my VI but I couldn't do it due to wiring and connection issues. 


I am sure that if you show us your code, we could easily help you.

0 Kudos
Message 10 of 10
(4,733 Views)