You can find some good resources on driver programming in C on the web.
jungo.com provides you with utilities that create skeleton code for you, this should help you start you up. And since this is just C programming, it should work in CVI, just like any other C compiler.
Hope this helps
Bilal Durrani
National Instruments
Bilal Durrani
NI