Table of Contents

Example: CAN raw

This example requests a temperature value from the NXP microcontroller on the ZSOM-Control using raw CAN frames. Because the microcontroller operates according to the CANopen standard, the commands are formatted accordingly. For the hardware, see CAN.

Project: ZSOM-Control_CAN.lvproj, VI CANraw_example.vi. In LabVIEW, open Help → Find Examples and search for “ZSOM”.

Prerequisite: The firmware of the microcontroller must be flashed once, see Example: CAN NXP firmware update. The same example with the CANopen VIs of the SDK is described in Example: CANopen.

RT code: front panel
RT code: front panel

Front panel

Indicator Function
Temperature (Celsius) Temperature reported by the microcontroller
error out Error cluster

How it works

RT code: block diagram
RT code: block diagram