Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear CAN buffer

Hai
   How to clear the CAN buffer.
i use CANwrite & CANread in sequence, after every read & write operation i am getting the
previous write operations CAN data with the consequtive write & read function.
i want only the responce of respective write operation
thanks
sk
________
I am using LabVIEW 7.1 & PCMCIA CAN card
0 Kudos
Message 1 of 3
(4,360 Views)
Hi
 
All messages received in sequence step 1, should be removed from the queue and no longer available for sequence step 2.
It seems you receive still data after your Read call in sequence Step 1.
The only chance is to read all old messages, short before you write the second request in sequence step 2.
To check whether this is not our fault, please create a Spy logfile using NI Spy from Start>>Programs>> national Instruments>>NI-Spy.
First run the NI Spy, second your application, single run, stop Spy and save the log file .
That could help us to see what is going on.
 
DirkW
0 Kudos
Message 2 of 3
(4,347 Views)
Thanks Mr DirkW
     I found the problem, now its ok!!!
thanks
sk
0 Kudos
Message 3 of 3
(4,336 Views)