The simple example application – Echelon FTXL User Manual
Page 209
![background image](/manuals/735717/209/background.png)
FTXL User’s Guide
197
Table 56. FTXL Dynamic Interface Example Files
File Name
Description
Dynamic Interface Example.lidprj
LonTalk Interface Developer project file
Dynamic Interface Example.nc
Model file for the application
FtxlHandlers.c
C file for the callback handler functions for
the application
main.c
Main application file
readme.txt
Readme file for the project, including a
brief description of the project, and
hardware and operating system
requirements
SNVT_RQ.H
C header file for the enumeration used
with the SNVT_obj_request structure
template.xml
Nios IDE project template file
See
Using the LonTalk Interface Developer Files
on page 61 for information
about the files that the LonTalk Interface Developer utility generates and copies
for an FTXL project.
The Simple Example Application
The simple voltage amplifier example application is a very simple application
that simulates a voltage actuator with a built-in gain of 2. This device receives
an input voltage value, multiplies the value by 2, and updates the simulated
output feedback value. For a real voltage actuator device, the input value would
be used to set a voltage level. After the device updated the voltage level, the
application would read the actual level and use that value to set the feedback
value.
The model file for this example includes a single SFPTclosedLoopActuator
functional block for the two network variables. It does not include a Node Object
functional block.
The design of the example application is very simple. It includes a single C
source file (main.c), along with the FTXL API files generated by the LonTalk
Interface Developer utility and a version of FtxlHandlers.c that has been
customized for this example application.
The following sections describe the application’s main() function, the application
task (appTask()) function, event handler functions, callback handler functions,
and model file.