Basic Programming Model
- Updated2025-09-22
- 1 minute(s) read
This topic is a general outline of the parts of a typical LabVIEW application for NI-Embedded CAN for RIO.
Create Interfaces
Any operation must have an interface object opened first. This interface object represents the embedded CAN port to which the CAN network is connected.
You can open only one object on the specified interface.
Configure the Interfaces
If necessary, you can configure the interface before any communication.
Start
To perform I/O, you must start the devices with the CAN Start VI. The interface starts receiving frames from the CAN network after being started.
Read/Write CAN Frames
Once the session is started, the application can start reading/writing CAN frames.
The application may wait for events by using the CAN Wait VI.
Stop
You can stop communication for the interface after the application runs. The interface stops receiving frames after you stop the communication.
Close Interface
You can close the interfaces with the CAN Close Interface VI after stopping communication.