LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

[CVI 2015 SP1][XNET] nxReadFrame problem

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,  

0 Kudos
Message 1 of 3
(2,461 Views)

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?

0 Kudos
Message 2 of 3
(2,435 Views)

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.

 

0 Kudos
Message 3 of 3
(2,430 Views)