Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Object Transmits Waveform on RTSI

I have a question to the above mentioned VI. The ncWriteObj.vi is placed in a For loop here. Does this mean that the For loop is executed once every time an RTSI event occurs???
0 Kudos
Message 1 of 2
(6,256 Views)

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.

Message Edited by AndreasS on 11-10-2008 08:57 AM
Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 2
(6,232 Views)