First of all, make sure what type of CAN hardware you are using. If you have 'Series 2' NI CAN hardware, you should leave the fields in the configuration cluster empty and use the Series 2 Filter attributes instead:
ncConfigCanNet (StartOnOpen = False)
ncOpen
ncSetAttr (Series 2 Filter Mode)
ncSetAttr (Series 2 Mask)
ncSetAttr (Series 2 Comparator)
ncAction (Start)
...
...
ncClose
Of course, the fields of the configuration cluster do work with the Series 2 NI CAN hardware, however they are processed in software on Series 2 NI CAN hardware, whereas the above mentioned attributes work in hardware directly on the CAN controller (more efficient).
Another good start would be the 'Series2 Filter Mode' example VI:
NI Example Finder » Hardware Input and Output » CAN » Frame API » General
Check out
this knowledge base article:
http://digital.ni.com/public.nsf/websearch/E834440265FD497986256968005DF85F?OpenDocument
Regards,
-B2k