06-07-2011 09:23 AM
Hi Folks -
I am using LabVIEW 2010 64-bit so I cannot use the ActiveX surface graph. One initial question I have has to do with creating custom color tables. I am starting with the example provided in LabVIEW. I am not sure why the developers did not stay with the color table scheme consistent with either LabVIEW intensity graphs or ActiveX surface graph (or maybe they have and I am missing it). It appears that the 'Surface Color Ramp' property node wants a color table with 7 values (as opposed to a 255 color array). However, I am unsuccessful in applying a simple 'custom' gray scale table in the example. Any help/advice is appreciated. Thanks, Don
Solved! Go to Solution.
06-08-2011 01:53 AM
Hi DonRoth,
To modify the color by VI server, you need to set the Active Plot to the plot you want to change (same ID as the helper VI beside the control terminal). The ramp array and ramp index are in the same length. The ramp index is the ending pixel of the corresponding color in the ramp array. The index should be in ascending order and its max value ends at 255.
06-08-2011 12:10 PM
As a followup, I AM able to use the intensity graph color table composed of 255 elements directly according to the following strategy:
06-09-2011 09:25 AM
If I have 100 plots on one surface graph, is there a way to globally apply the same color table to all of the graphs instead of running through a for loop (which takes quite a bit of time)?
06-09-2011 07:52 PM
The control does not support to globally apply the same color table to all of its plots. You need a loop.
06-10-2011 07:39 AM
Curious...
Does "Defer FP Updates" help at all?
Ben
06-10-2011 09:50 AM
I don't see that option under property or invoke nodes for the Non-activeX 3d surface graph. Where is it?? Then I might be able to try it.
Don
06-10-2011 09:53 AM
It is a property of the front panel.
This VI >>> FP >>> DeferFPupdat
Set rue before (to defer updates) and then false after the updates.
Ben
06-10-2011 10:09 AM
Doesn't seem to help much.
With 10 slices, plotting the multiple surfaces seems to work well and with relatively good performance. With 100 surfaces, it is a different story and the VI shows an empty surface graph with a lot of background processing churning (I might leave it for awhile and see what happens).
06-15-2011 10:08 AM
Want to follow up on this again. I believe I am now correctly implementing the 'Defer Front Panel Updates' VI property and do see a nice performance gain and the ability to render ~ 90 slices (about 100 x 100 pixel resolution of the slices pretty well). I had forgotten to reset this property to false once outside of the for loop. Also, by adding the Plane Spacing factor discusssed here,
the 3d image looks pretty good.