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.