07-01-2015 08:08 AM
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
Solved! Go to Solution.
07-01-2015 08:27 AM
Change from a single-point session to a queued session.
07-01-2015 08:32 AM
That worked...thanks!!!