09-19-2013 04:15 AM
I like to programattically invert the X and Y axis of a 3D plot to meet the orientation of my setup. In old versions of labview this was possible but now in 2013 this option seems to be gone. In the help of 2013 is mentioned a function called "axis:Range:Range inverted" but it is not there.
Does it return in a new update soon??
Regards,
Martin
Solved! Go to Solution.
09-19-2013 07:31 AM
Hello Martin,
I was able to find the range inverted property node for 3D Graphs. Please see the images below.
Let me know if this helps.
Regards,
Chinmay
09-20-2013 02:46 AM
Dear Chinmay,
Thank you for your fast and outstanding reaction. Due to your attached picture I found out that I have used a different 3D-surface graph VI. Mine VI icon had a green color instead of an orange. It can be found in the same palet but then with the name Surface Graph istead of surface. In the VI I had chosen there is not the option of inverting the axis for some reason. I am not sure what the difference is with respect to the "plot Helper (vector)" polymorf VI. In general I like to avoid these muli-functional VI`s when possible (memory issue...) That is problably why I had chosen for the "green"surface graph. Except for inverting the axis it does everything I need.
Thanks again. Maybe somebody of NI can comment on why and what is the difference between the two VIs?
Martin
09-20-2013 02:54 AM
... just to compleet: here is the picture of the situation...
09-20-2013
04:51 AM
- last edited on
05-02-2025
03:59 PM
by
Content Cleaner
Hello Martin,
I am glad you were able to locate the property. The difference between the 2 garphs is that the 3D Surface Graph (which you were using) uses ActiveX and is supported only on Windows OS. The other graph (that I used) is more like a native LabVIEW control. The differences are detailed here.
I am not sure why the invert axis property is not exposed, or if it will be in future versions, but here is a quick work around. Place an ActiveX container on your front panel. Right click on it and select Insert ActiveX object. From the dialog box that pops up select CWGraph3D Control. This should give a similar 3D Graph on your front panel, as you are accustomed to use.
On the block diagram, you will get a 3D graph ActiveX reference. This you can use to manipulate the graph with the help of 3D Graph properties VIs (Functions Palette > Programming > Graphics and Sound > 3D Graph Properties). To invert the axis you can do something like this.
If you notice the data that you need to provide to plot remains same in your approach, and in this workaround.
Hope this helps.
Regards,
Chinmay
09-20-2013 05:59 AM
Many Thanks, Excellent support!!!