LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot offset in contour line plot

Hello,

 

I have a contour line plot like the the following:

 

plot1.png

 

The circle's center is at x = 0 and y = 0.

Now I'd like to move the plot with 2 offsets: x and y.

 

The axis scaling may not change.

But the plot circle's center should be moved a bit, so that it's for example at x = 0,25 and y = 0,4.

 

How can I do that, so that the plot will be recalculated?

I attached an example VI if you like to play around with it. Smiley Wink

It's based on the VI "Contour Line Plot" in the NI Example Finder.

 

The values of the 2D arrays are given (measured). And after measuring these values the offset calculation should start based on these values.

 

Regards

Matthias

 

0 Kudos
Message 1 of 9
(4,321 Views)

Please discard my previous post, I missed that you don't want x/y scale affected...  First  turn off Autoscale on both X & Y (right click no scale, you'll see options, I also turned off Loose fit but not sure if that's needed even though data are fractional) and then add offsets to data just before they enter Contour Line.

 

-BTC
 

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 2 of 9
(4,301 Views)

Hello,

 

as I wrote, the axis scale must be the same like before the offset calculation.

So the plot in this example here must have the x axis scaling from -1 to +1 and the y axis, too.

 

And changing the scale would not recalculate the plot:

If the x axis goes from -0,5 to +1,5 there will be empty space between x = +1,0 and x = +1,5.

 

Regards

0 Kudos
Message 3 of 9
(4,291 Views)

Saw that too late, I updated the VI - check it out.  It doesn't do everything but should lead you in the right direction (It does leave empty space). Offsets would have to be applied to the original array constants before they go into contour line vi. Hmm... this needs more math.

 

-BTC

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 4 of 9
(4,289 Views)

Hello,

 

thank you. Can you save it as a LV2013 VI please?

 

Regards

0 Kudos
Message 5 of 9
(4,270 Views)

Hello,

 

or can anyone please convert the LV 2014 VI posted by BTC_Admin to LabVIEW 2013 or lower?

 

Regards

Matthias

0 Kudos
Message 6 of 9
(4,218 Views)

Last try: Is anybody here who has LabVIEW 2014 installed and can convert the VI in post #2 to LabVIEW 2013 or an older version?

 

Or is anybody here who can help me finding a solution?

 

Regards

0 Kudos
Message 7 of 9
(4,176 Views)
0 Kudos
Message 8 of 9
(4,166 Views)

Thank you very much for converting it!

 

Now I see, that's not really the solution I need. I think there must be a recalculation with the "Contour Line.vi". But I dont't know how to do it.

Maybe with a kind of interpolation before calling the "Contour Line.vi".

0 Kudos
Message 9 of 9
(4,156 Views)