Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

i get an error in using ncWatiForState,how to solve the problem?

I recuperate a  CVI code (obj2obj) in examples, in order to receive CAN data. However, I met an ERROR, 
It shows:
(Hex 0xBFF62001) means the timeout of a wait or notification function expired before any desired state occurred.
Solutions: Increase value of Timeout parameter; Verify your cable connections and operation of remote devices
 
But if the other OBJ didn't  send data,how to solve this ERROR?
I means that i want to get my program continue  running without/after this error be solved?That is if time is out,it jumps to next line。
0 Kudos
Message 1 of 2
(6,078 Views)
You could ignore the timeout for the wait and just case to the next function you wnat to call if a timeout ocures. Thus you would not call the read function in a timeout case.
Or you could loop into the wait function again to wait another timout until the frame you expected has received.

DirkW
0 Kudos
Message 2 of 2
(6,002 Views)