beautypg.com

Specifying code generator preferences, Compiling and generating the files, Using the lontalk interface developer files – Echelon FTXL User Manual

Page 73

background image

FTXL User’s Guide

61

The LonTalk Interface Developer project directory is automatically included in

the compiler search path, and does not need to be specified explicitly. Similarly,
the Neuron C Compiler system directories (for header files specified with angled

brackets, for example, #include ) are also automatically included in the

compiler search path.

Specifying Code Generator Preferences

From the Interface Developer Code Generator Preferences page of the utility, you

can specify preferences for the LonTalk Interface Developer compiler, such as

whether to generate verbose source-code comments.

Compiling and Generating the Files

From the Summary and Confirmation page of the utility, you can view all of the

information that you specified for the project. When you click Next, the LonTalk
Interface Developer utility compiles the model file and generates a number of C

source files and header files, as described in

Using the LonTalk Interface

Developer Files

on page 61.

The Build Progress and Summary page shows the results of compilation and

generation of the FTXL project files.
Any warning or error messages have the following format:

Error-type: Model_file_name Line_number(Column_number): Message

Example: A model file named “tester.nc” includes the following single network

variable declaration:

network input SNVT_volt nviVolt

Note the missing semi-colon at the end of the line. When you use this file to build

a project from the LonTalk Interface Developer utility, the compiler issues the

following message:

Error: TESTER.NC 1( 32):

Unexpected END-OF-FILE in source file [NCC#21]

The message type is error, the line number is 1, the column number is 32 (which
corresponds to the position of the error, in this case, the missing semi-colon), and

the compiler message number is NCC#21. To fix this error, add a semi-colon to

the end of the line.

See the

NodeBuilder Errors Guide

for information about the compiler messages.

Using the LonTalk Interface Developer Files

The LonTalk Interface Developer utility takes all of the information that you

provide and automatically generates the following files that are needed for your
FTXL application:

• LonNvTypes.h
• LonCpTypes.h
• FtxlDev.h
• FtxlDev.c