12-30-2006 04:32 PM
12-30-2006 04:52 PM
01-03-2007 03:50 AM
Hi Anil Kumar,
I would like to suggest few things (from LabVIEW perspective) for you,
1. To make a CAN Bus Off state thro' program - Make such (relay setup) arrangement to short the CAN High & Low terminals to induce the Bus Off state. LabVIEW program can detect the Bus Off scenario by monitoring the error code (-1074388821, etc...). Execute "CAN Clear VI" after detecting the bus off error code for closing the communication and re-establish the CAN communication by reinitialize the CAN messages (point no. 2).
2. To retrieve CAN bus from the Bus Off state thro' program - Make such (relay setup) arrangement to open the short terminals (CAN High & Low). LabVIEW program should reinitialize the CAN messages by using these
Note: Sometimes, CAN Bus will take some time for coming back to normal state from Bus Off; user needs to continue this normal process like CAN Initialize, Start, Write/Read and CAN Clear.
Hope the above information’s will help you out to solve your problems... 🙂 🙂
Regards,
-Baskar
Satyam,
01-03-2007 04:08 PM
09-16-2008 08:50 AM
Hello Anil,
In a simple way you can short the CAN High and CAN Low to generate Bus Off.
But this is not the exact way to simulate.
If you can use the tool loke Vector CANStress, you can exactly manipulate the bits
before transmission to ensure a proper bus off.
Regards,
Prathap
06-20-2013 08:35 AM
Can you tell me how do i make the relay arrangement ? I am using the neo radi/o. I am not sure where I need to connect the Common and the NC connections ?
07-09-2014 03:55 PM
Using XNET I was trying for test purposes to also set put NI PXI NIXNET CAN into BUS OFF STATE.
I Loopbacked port CAN1 -> CAN2 and set CAN2 to LISTEN_ONLY STATE with NO ACKNOWLEDGE,
which cause CAN1 to repeat transmition and get to ERROR PASIVE with TX ERROU CUNTER = 128,
but don't how to achieve error counter = 255 to go to bus off.
Also I would like to know if there is any way to insert wrong CRC into the frame.
Please advice,
Radek Pozdnicek
Honeywell Aerospace Brno
07-09-2014 04:12 PM
Force one of the nodes to be a different baud rate.. You should start to get stuff errors or other form errors and go bus off.
07-15-2014 06:29 PM
It doesn't matter if CAN+ or CAN- is on NO/NC (I'd use NO).
I would also hope that you have two seperate CAN busses (1 for your DUT and 1 to control your RADI/O). I'm not sure what the RADI/O would do.