03-14-2018 09:57 AM
Hello,
I'm trying to read few frames with different periods (10ms et 1000ms). It's about 10 frames.
The problem is that, with a buffer size 500, I only get 3 or 4 frames in it.... then a duplication of theses frames to get the buffer full.
It's not a Timeout problem I guess because I set the nxReadFrame like this :
l_Status = nxReadFrame(giCAN1SessionRefFramesR, &l_pMyFrames, sizeof(l_pMyFrames), nxTimeout_None, &l_pMyNumBytesReturned);
Any one can tell me why I can't find the other frames in my buffer ?
Thanks,
03-15-2018 05:41 PM
Hi Did you check the documentation?
nxReadFrame: http://zone.ni.com/reference/en-XX/help/372841L-01/nixnet/nxreadframe/
And the inputs parameters? the number represents the maximum raw bytes to read, not the number of frames.
Are you using Standard Can and Lin?
03-16-2018 04:14 AM
Hello Andr3s_Br3n3s,
Thank you for your reply.
I checked the documentation many times.
I don't have many frames to read. I'm using standard CAN to read 3 or 4 frames. That's all.
I noticed that I'm able to read all periodic frames. But I can't read frames on event.
When I wrote a frame to my ECU, he respond by sending a frame just one time. I can't read this frame response.