Irene,
CVI provides a custom control instrument driver for doing 3D-graphing and some drawing in OpenGL. This instrument driver is in the cvi\toolslib\custctrl\cviogl.fp. You can find several examples for this custom control under cvi\samples\userint\custctrl\cviogl
You may use standard, low-level OpenGL drawing routines with the CVI OGL control. The SDK libraries opengl32.lib and glu32.lib are provided with the SDK that ships with LabWindows/CVI 5.0. Keep in mind that the control takes care of all Windows interface issues, as well as drawing for two types of plots. The same Windows interface, with simplified attributes for lighting and positioning, may be used with the lower-level gl- or glu- calls.
Also, there are several examples that are on the sup
port location of the NI website. Some of these may be different than the examples that are shipped with CVI.
Daniel McChane
Application Engineer
National Instruments