LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmably control the 3D plot, switching from greyscale to colorgram?

I am using the 3D parametric surface vi to plot a 3D matrix. It should be displayed either as a colorgram or greyscale plot, controlled by the users. But currently it seems like I just can stop running the program and then manually right click the display area, select the 3D plot properties to change ... How can I realize this by programming? Thanks.
0 Kudos
Message 1 of 6
(3,264 Views)
Hi BLpig,

Hope this example will help you!
It's made in Labview 7.0!
Message 2 of 6
(3,264 Views)
hi, thank you so much! It works for me.
But one more step is, I also need to change the colormap or the colorvalues property as well (do they need to specify together?) since like for greyscale, I want to have my 0 value mapping to white and 3.5 value mapping to black. I think maybe I can work this out with the CWPlot3D.ColorMapColors and ColorMapValues ... but haven't figure out how to do it.

How to do this?
0 Kudos
Message 3 of 6
(3,264 Views)
Hi BLpig,

I changed the example so it is possible to change the colors and values during runtime.
Some explanation is in the example!

Hope this will solve your problem!
0 Kudos
Message 4 of 6
(3,264 Views)
hi, it works perfect for me now. Thank you so much!
0 Kudos
Message 5 of 6
(3,265 Views)
Here is a little note from somebody who wasted a lot of time before finding this example...

It is REALLY important that the ColorMapAutoScale property is set to false BEFORE you change the ColorMapValues.
I never new that the order of the elements in property nodes was important. Here it is!

The example is correct - my code wasn't. Thanks for the example.
-DB
0 Kudos
Message 6 of 6
(3,062 Views)