Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Wait For State error

Hi Chris,

Please update the code in the following way and try it again.

Only wrap the while loop around Write DeviceNet IO, Wait for State, Read DeviceNet IO. Move the others out of the while loop.
You need only initialize the interface card once. Open/close repeatedly is not recommended. It slows the test.
The DeviceNet example SingleDevice shows the typical usage.

Regards,
Frank
0 Kudos
Message 11 of 12
(3,013 Views)

It turned out to be a driver timing issue. The PCI/PXI board sometimes replied to fast, so some slaves missed that frame and didn't answer. That caused a timeout for our Master board. We changed the minimum time between two requests to 2 ms as it is for PCMCIA boards today and that fixed the problem.

The Fix should be included in the next driver release NI-DNET 1.6.3 or 1.7. I(f you need a fix for an earlier version let me know : canpse@ni.com.

 

DirkW

0 Kudos
Message 12 of 12
(2,885 Views)