Chapter 4
Interfacing to Your Round Card
©
National Instruments Corporation
4-5
80188EB-Based Fieldbus Round Card User Manual
the Function Block Shell. See Chapter 7, Miscellaneous Functions, of
the NI-FBUS Function Block Shell Reference Manual for more details.
Generating Your Device Configuration
The initial configuration of your device includes the configuration of
items such as the starting node address, device identification, and,
optionally, the function block schedules. You must specify the
parameters in the standard Windows
.ini
file format in a configuration
.ini
file. Sample configuration files are included in the
\samples
subdirectory of your installation directory. You might want to start with
one of these files and edit it according to your needs. The entries in the
data link configuration and system management configuration sections
of your configuration
.ini
file are described in are described in
Appendix A, Data Link Configuration Section Format, and
Appendix B, System Management Configuration Section Format.
After you have generated your configuration
.ini
file, you must run the
Configuration Generator to create a C source file that contains your
configuration. This step is described in the next section, Converting
Your Device Configuration to C Code.
Converting Your Device Configuration to C Code
To convert your Device Configuration to a compilable and linkable
.c
file, you must use the Configuration Generator utility. The
Configuration Generator requires the following syntax:
cfggen
iniFile cFile
where
iniFile
is the name of your configuration file, and
cFile
is the
name of the C source file for the output C code. If your
.ini
file
contains errors, the Configuration Generator halts and informs you
where the errors are located. Otherwise, it creates a
.c
source file,
which you use in the final step to create your binary file.
Compiling, Linking, and Locating Your Program
The final stage of application development on the Round Card involves
creating a binary file suitable for downloading to the EPROM of the
Round Card.
Note:
The
nistack.lib
library file, which your code must link to, was created
with Borland C version 4.5. Use either the same compiler or a compatible
compiler to ensure that your code works correctly with
nistack.lib
.