Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Devicenet Reset

Hello,
 
I have a PXI system running a PXI-8641D devicenet card.  I am powering the bus with an external 24V power supply.  During the course of testing my app. I have found that if I turn off the 24V bus power and turn it back on there is no way to recover.
 
I get this message-  Error 1074388981 occured at wait for state.vi with the message as shown in the attachment.
 
The only way I can clear this error is to close out all LabView windows, go into MAX and do a self test on the card.  This is really not acceptable for an industrial network interface.  I cannot tell my customer that he has to go into another program (MAX) and do this and that to recover from a 24V power loss.
 
Does anyone have any suggestions?
 
Thanks,
 
Nathan
 
 
0 Kudos
Message 1 of 6
(7,856 Views)

If you turn off the BUs power, the CAN controller communicating on the bus will enter the BUS off state. The CAN definition does not allow to recover from this state. The only chance is reconfiguration. You could use the nc reste from the NI-CAN driver to reset the board before you start your reconfiguration. See the attached picture for more information. The ncreset.vi can be found in VIlib/nican/nican.llb. But be careful the ncreset resets both ports of your two port device even if you call it on a single port.

DirkW

0 Kudos
Message 2 of 6
(7,833 Views)

Dirk,

I cannot find the ncReset.vi in either my CAN library or the DeviceNet library.  I have the latest version of both. 

 

As far as resetting the card- It should be no problem, I am using a single port PXI 8461. 

 

Thanks for the info- hope to hear back.

-Nathan

0 Kudos
Message 3 of 6
(7,827 Views)
You should find it in the following llb. Its a SUB VI below the line.
 
National Instruments\LabVIEWX.x\vi.lib\nican\nican.llb
 
DirkW
0 Kudos
Message 4 of 6
(7,814 Views)
I have found the ncReset in the library, but i am unable to insert it into my block diagram. I tried to drag and drop it as well setting it as top level of the dll.
0 Kudos
Message 5 of 6
(7,279 Views)

foreshadow,

 

If you right-click on your block diagram, select Select a VI... and the navigate to the Program Files\National Instruments\LabVIEW 8.6\vi.lib\nican directory and select the nican.llb, you will then be able to select ncReset and use it in your block diagram.

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 6 of 6
(7,256 Views)