Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Config XNET read to complete ONLY when a certain arbid is received (i.e. return from function call when the msg is received)

Solved!
Go to solution

Does the XNET-CAN API allow configuring the hardware such that a call to read the frame/signal does not return unless the message is received (no need to poll the buffer, call to function acts like an event...function returns when a message is received) or if a timeout occurs).  I really don't want to poll for data unless I absolutely have to.  My plan is to have parallel-code waiting for a specific msg to be received and respond to it (must be very fast!) whil a different loop receives all other frames.

 

A timeout to the read function call would work good enough, but it doesn't seem to work (see attached snippet).  The only timeout value seems will work (i.e. no property error) is a value of 0 seconds.

 

Thanks,

 

Todd

 

 

0 Kudos
Message 1 of 3
(4,895 Views)
Solution
Accepted by topic author labviewman

Change from a single-point session to a queued session.

0 Kudos
Message 2 of 3
(4,886 Views)