Solution
This behavior typically occurs after a long sequence of CAN errors or when Windows USB power management settings interrupt communication with the device.
You can recover the USB‑8502 from the Bus OFF state by performing a Self-Test using the methods below.
- Perform a Self-Test Using NI MAX
-
- Connect the USB‑8502 directly to the computer.
- Open NI Measurement & Automation Explorer (NI MAX).
- Expand Devices and Interfaces.
- Right-click the USB‑8502.
- Select Self-Test.
- Verify that the self-test completes successfully.
- If you need to perform the recovery programmatically, you can use the Self-Test VI in LabVIEW.
-
- Open LabVIEW.
- Navigate to
Measurement I/O » System Configuration » Hardware Management » Self-Test. - Use the Self-Test VI to initiate a self-test on the USB‑8502.
- Run the VI and monitor for a successful completion.
An example demonstrating this functionality is available in LabVIEW:
- In LabVIEW, select Help » Find Examples.
- Set Browse according to: to Directory Structure.
- Open the nisyscfg folder.
- Locate and open Self-Test All Devices.vi.
If the self-test passes, check whether the device LED returns to its normal state and communication resumes.