User’s Manual
15
Let’s take a look at sample programs for the relay card in the
SMRTSTAR
folder.
•
SSTARAD1.C
—Demonstrates how to calibrate an A/D converter channel using two
known voltages, and defines the two coefficients, gain and offset. These coefficients are
then read back to compute the equivalent voltage.
•
SSTARAD2.C
—Reads and displays voltage and equivalent values of each A/D converter
channel. Calibrations must have been previously stored into flash memory before run-
ning this program. See sample program
SSTARAD3.C
.
•
SSTARAD3.C
—Demonstrates how to calibrate all A/D converter channels using two
known voltages and defines the two coefficients, gain and offset. These coefficients are
then read back to compute the equivalent voltage and are saved to flash memory.
2.4 Using Dynamic C
To run a sample program, open it with the
File
menu (if it is not still open), compile it
using the
Compile
menu, and then run it by selecting
Run
in the
Run
menu. The CPU
card must be in Program Mode (see Section 3.1, “Switching Between Program Mode and
Run Mode,” in the Smart Start (SR9000) User’s Manual) and must be connected to a PC
using the programming cable as described in Section 2.3, “Programming Cable Connec-
tions,” in the Smart Start (SR9000) User’s Manual.
More complete information on Dynamic C is provided in the Dynamic C Premier User’s
Manual.
Содержание SR9300
Страница 4: ...iv Smart Star A D Converter Cards SR9300 ...
Страница 20: ...16 Smart Star A D Converter Cards SR9300 ...
Страница 24: ...20 Smart Star A D Converter Cards SR9300 ...
Страница 28: ...24 Smart Star A D Converter Cards SR9300 ...
Страница 32: ...28 Smart Star A D Converter Cards SR9300 ...
Страница 34: ...30 Smart Star A D Converter Cards SR9300 ...
Страница 35: ...User s Manual 31 SCHEMATICS 090 0086 A D Converter Card SR9300 Schematic 090 0102 FWT18 Schematic ...
Страница 37: ...B NONE ...
Страница 39: ......