02-07-2015 04:45 AM - edited 02-07-2015 04:51 AM
Hello,
I have a contour line plot like the the following:
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.
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
02-07-2015 05:40 AM - edited 02-07-2015 06:00 AM
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
02-07-2015 05:55 AM
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
02-07-2015 06:00 AM - edited 02-07-2015 06:08 AM
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
02-07-2015 06:21 AM
Hello,
thank you. Can you save it as a LV2013 VI please?
Regards
02-10-2015 02:25 AM
02-13-2015 03:32 PM
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
02-13-2015 04:58 PM
This should be 2013.
02-14-2015 01:35 AM - edited 02-14-2015 01:35 AM
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".