Chapter 2
C Language Reference
AutoCode Reference
File
Defines the development platform. Contains a C
sa_sys.h
preprocessor
platform.
Defines the supported data types and certain math
sa_types.h
constants.
Defines constants for generated code, error codes, and
sa_defn.h
mapping for ANSI features such as const and volatile.
Contains definitions of integration algorithms
sa_intgr.h
(including user-supplied integrator) used in code
generation of hybrid or continuous systems.
Contains definitions of fuzzy logic support routines.
sa_fuzzy.h
Contains external function prototypes for the
sa_utils.h
stand-alone utilities.
Declares certain extensions to ANSI-Standard C math
sa_math.h
functions. The
code for the extensions, is also required.
Declares a time-related variable.
sa_time.h
Furnishes a function prototype for UCBs.
sa_user.h
Data Types
Several of the target-specific utilities are involved with data types
(in the
file). The three following data types are defined for
sa_types.h
the C Code Generator:
Corresponds to C type double or float, depending on
RT_FLOAT
your C compiler.
Corresponds to C type integer.
RT_INTEGER
Corresponds to C type integer.
RT_BOOLEAN
At compilation, you must make available the
which declares these types. This file is in the
on your system; you can edit a copy of it as required. The structure
also is declared in
STATUS_RECORD
hand-coded UserCode Blocks. You can modify
Table 2-3. Header Files
Purpose
statement for each supported
#define
sa_math.c
sa_types.h
2-4
file, which contains the
header file,
sa_types.h
distribution directory
src
to be used with
if you need
sa_types.h
ni.com
Need help?
Do you have a question about the AutoCode NI MATRIX and is the answer not in the manual?
Questions and answers