11-07-2008 07:46 AM
11-10-2008 08:55 AM - edited 11-10-2008 08:57 AM
Hi SVJ,
the For loop in the mentioned example is executed 8 times before the CAN object is started. Since there is a 8 element queue configured in the ncConfigCANObjRTSI.vi these 8 CAN frames are transmitted after starting the communication using ncAction. After 8 RTSI pulses when the queue is empty the object repeats the last frame until new frames are written into the queue using ncWriteObj (within the while loop).
If you encounter queue overflow problems please refer to the following knowledgebase:
http://digital.ni.com/public.nsf/allkb/862567530005F0A186256A3F005FAB83?OpenDocument
or the "NI CAN Hard- and Software manual" p. 10-150 ncWriteObj.