There are example programs that install with the driver. You can take a CAN RTSI example and combine it with a DAQ RTSI example. If you are using LabVIEW, go to Help>>Examples. If you are using CVI, go to C:\Program Files\National Instruments\MeasurementStudio\CVI\samples\nican. If you are using C or VB, go to C:\Program Files\National Instruments\NI-CAN.
Also see the user manual that gets installed with NI-CAN into C:\Program Files\National Instruments\NI-CAN\Documentation