Specifications
Introduction
4-5
Selecting a CAN Library
Before you can build a target application using CAN driver blocks, you need to
select the correct CAN library. The different CAN libraries are listed and
selected in the xPC Target environment setup. If no CAN-library is defined the
target application build process will error out during the linking stage
reporting several “unresolved external” errors. If the wrong CAN-library is
defined (mismatch between actual installed physical board and CAN-library in
the environment setup) the build process succeeds but downloading the
firmware during application initialization on the target will error out.
Therefore the definition of the correct CAN library in the environment setup is
crucial.
Here the definition of the correct CAN-library is explained by using the
xpcsetup-GUI. The same can be achieved by using the corresponding command
line functions. See “Changing Environment Properties with Command Line
Interface” on page 5-16.
In the MATLAB command window, type
xpcsetup
The xPC Target Setup up window opens. The popup control of interest is
labeled “CANLibrary”, the same name as used for the property name. The
default property value is “None” which means that no CAN-library will be
linked to the target application.