LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

The 3dGraph Control does not appear to be capable of displaying a fill style of flat ?

When the 3dgraph control is set to a fill style of flat , the individual pixel values should look square, but still appear to be graded from one value to another, I have used this control in previous version of MS1 using VB6 and it worked as expected, am I missing something with the new version.

Thanks
0 Kudos
Message 1 of 10
(5,071 Views)
I assume you are now using Measurement Studio 7.1 for Visual Studio 2003 .NET. I also assume you are using VB .NET. You shouldn’t be missing anything. The CWGraph3D available in the Measurement Studio C++ Tools portion of the Toolbox is essentially the same as the CWGraph3D that came with Measurement Studio 6.0.

However, I am aware of the following issue that is noted in the Readme which might be found at C:\Program Files\National Instruments\MeasurementStudioVS2003\Readme.htm:

“The Measurement Studio Visual C++ 3D graph and user interface controls do not update correctly when you modify the property pages after running the program. When you use the property pages to change a property after running the program, and compile and run the program again, the property change does not take effect. To work around this issue, make the change in the property pages, move the control on the dialog resource, and move the control back to its original position on the dialog resource. Alternatively, close the resource editor after modifying the property pages and before running the program, and reopen the resource editor. When you run the program, the control appears with the updated property.”

Hopefully this information will help.

Regards,

Eric M
0 Kudos
Message 2 of 10
(5,037 Views)
I am using Labwindows/CVI 7.1 and the 3dGraph ActiveX control. I am setting the property in both the property page and again in the program, with no success. Thanks for the response
0 Kudos
Message 3 of 10
(5,022 Views)
The ActiveX CW3DGraph Control in LabWindows/CVI 7.1 is the same control used by Measurement Studio. I would expect it to demonstrate the same behavior in LabWindows/CVI as it does in Measurement Studio. That is, I would expect the information in the Readme I mentioned in my last post to still apply. The “dialog resource” in LabWindows/CVI is the UIR. Have you tried the suggestions made in the portion of the Readme?
0 Kudos
Message 4 of 10
(5,001 Views)
Yes , I did try as suggested but with no success. Within the property page, one can set it to flat , then apply changes, click to any tab and then back , and the property is reset to smooth, and I have tried it in VB with the same results.
0 Kudos
Message 5 of 10
(4,993 Views)
Hello

We have identified a bug with the property pages with regards to this property. It should still work if you set the value programmatically. I have reported this to the developers to correct for future releases.

This property only affects the fillstyle for lighting on the surface plot, not the actual plot surface itself. So you need to have lighting enabled to see the affect of the fill style.

I tried using an old version of the control and I noticed that when setting the property programmtically, the behavior was the same across versions. What kind of difference were you noticing?

I tested this out with version 7.1 of the 3DGraph.
Bilal Durrani
NI
0 Kudos
Message 6 of 10
(4,970 Views)
I have 3DGraph 3.0 running on Win2000 with VB6 and from the property page when flat or smooth is toggled the displayed graph changes from flat to smooth as expected, ie square pixels to graded, although the property page setting is reset to indicate smooth when you return from another tab the graph remains in flat mode, using 3DGraph 7.1 on WinXP with VB6 or Labwindows it does not change the displayed graph and setting the property while in the program does not change the displayed graph, it appears to be stuck in smooth.
0 Kudos
Message 7 of 10
(4,959 Views)
This is the bug in the property pages that I described earlier. You should be able to set the property programatically for it to take effect. Try using the shipping example under C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\3DGraph\Plot Styles. You can enable lighting and then add some callbacks to switch between the fillstyles.

'Set to Flat Fill Style
CWGraph3D1.Plots.Item(1).FillStyle = cwFlat


'Set to Smooth Flat Style
CWGraph3D1.Plots.Item(1).FillStyle = cwSmooth


I verified this with CW3dGraph 7.1 on XP.
Bilal Durrani
NI
0 Kudos
Message 8 of 10
(4,949 Views)
Yes I see that with lighting enabled the flat/smooth property does change, but what I am describing should not require lighting, it is a basic property of how the graph is displayed ,ie discrete data points for each xy value (flat) or each xy value has a smooth transition to the adjacent values (smooth)which does not show any pixelization, which is what I want to see. I have attached a jpg file that shows the difference between flat and smooth using 3dGraph 3.0 The lighting proprerty creates some odd shapes but does not change the basic display topology.
0 Kudos
Message 9 of 10
(4,938 Views)
yes, this does look like a problem. I have filed a report for this issue to the developers for further investigation.
For now, I would recommend reverting back to the older version of the control if you need to get the pixelated appearence for the surface.
Bilal Durrani
NI
0 Kudos
Message 10 of 10
(4,894 Views)