ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Example Code

OpenGL sample program with LabVIEW

Code and Documents

Attachment

Download All

In OpenGL Win32 Tutorial

http://www.nullterminator.net/opengl32.html , there is a course in how to initialize OpenGL in a Windows program with a sample program :  glsample.cpp by Blaine Hodge.

This course is very helpful to build an example vi by making a new dynamic link library.  I really appreciate Mr.  Blaine Hodge's work.

I ported his sample program :  glsample.cpp over to LabVIEW.

For building the dynamic link library and the example vi, I used  vc2008 express, LabVIEW2010 Fall 2010 and WindowsXP.

Although this example vi is tiny, I belive that this is an extensible and thought-provoking code.

I hope to enjoy coding. 

I also ported a modified version sample program without flat sequential structure in the former version : opengltest2.zip  with  LabVIEW2011 SP1 2012 .

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
brano.s
Member
Member
on

Hi,

your DLL is working great . Thx

hideok34
Member
Member
on

Hi   brano.s

I read your e-mail and considered about the problem.

Please google "Error 1097 occurred at Call Library Function Node".

There are some  sugggestions since 2007, for example "build a.dll in Visual Studio C++ 2008 and use it in labview".

brano.s
Member
Member
on

Hi hideok34,

thanks for reply.

I am sorry it was my fault. Later I tried to recompile your code and everything went fine.

Sorry for bothering you. Good job with this examples

Contributors