Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

interupt

how do you inplement inturpt protocal? i.e. make the read command wait until it recieves a message?
0 Kudos
Message 1 of 2
(5,970 Views)
Hi,

The NI-CAN API does not expose interrupts directly. If you are using the Frame API you can use the ncWait (state=READ_AVAIL) function to wait for a new frame. If you are using the Channel API, you have to either poll for new messages/channels and check the status for the 'OldDataWarning' = 0x3FF62009, which indicates that no new data has been received yet. Alternativly, you can use the nctReadTimestamped() and set the nctPropTimeout property to wait a given amount of time.

-B2k
0 Kudos
Message 2 of 2
(5,963 Views)