Communication State
- Updated2026-08-23
- 2 minute(s) read
| Data Type | Direction | Required? | Default |
|---|---|---|---|
|
Read | No | Init (3) |
Property Class
Embedded CAN Interface Short Name
Communication State Description
Specifies the CAN interface state with respect to error confinement (decimal value in parentheses). The following table lists the accepted values.
| Enumeration | Value | Description |
|---|---|---|
| Error Active | 0 | This state reflects normal communication, with few errors detected. The CAN interface remains in this state as long as Receive Error Counter and Transmit Error Counter are both below 128. |
| Error Passive | 1 | If either Receive Error Counter or Transmit Error Counter increment above 127, the CAN interface transitions into this state. Although communication proceeds, the CAN device generally is assumed to have problems with receiving frames.When a CAN interface is in error passive state, acknowledgement errors do not increment Transmit Error Counter. Therefore, if the CAN interface transmits a frame with no other device connected, it eventually enters error passive state due to retransmissions, but does not enter bus off state. |
| Bus Off | 2 | If Transmit Error Counter increments above 255, the CAN interface transitions into this state. Communication immediately stops under the assumption that the CAN interface must be isolated from other devices.When a CAN interface transitions to the bus off state, communication stops for the interface. The interface no longer receives or transmits frame values. |
| Init | 3 | This is the CAN interface initial state on power-up. The interface is essentially off, in that it is not attempting to communicate with other nodes (ECUs).When the start trigger occurs for the CAN interface, it transitions from the Init state to the Error Active state. When the interface stops due to a call to the CAN Stop VI, the CAN interface transitions from either Error Active or Error Passive to the Init state. When the interface stops due to the Bus Off state, it remains in that state until you restart. |
The execution time to read this property is sufficient for use in a high-priority loop in the LabVIEW Real-Time (RT) Module.