Hi ambijo,
after installing you have a lot of examples that can be found in ...\National Instruments\NI-DAQ\Examples\DAQmx ANSI C.
There you probably find what you are looking for. You just have to mix different examples (AI, DI...)
The help on the functions can be found in Start, Programme, National Instruments, NI-DAQ, NIDAQmx C Reference Help.
Hope this helps.
Kai Kratt