Example Programs And Flow Diagrams - Real Time Devices AD1200 User Manual

Table of Contents

Advertisement

Example Programs and Flow Diagrams
Included with the 1200 is a set of example programs that demonstrate the use of many of the board's features.
These examples are written in C, Pascal, and BASIC. Also included is an easy-to-use menu-driven diagnostics
program, I200DIAG, which is especially helpful when you are frst checking out your board after installation and
when calibrating the board (Chapter 5).
Before using the software included with your board, make a backup copy of the disk. You may make as many
backups as you need.
C and Pascal Programs
These programs are source code files so that you can easily develop your own custom software for your 1200
board. In the C directory, 1200.H and 1200.INC contain all ttre functions needed o implement the main C programs.
H defines the addresses and INC contains the routines called by the main progams. In the Pascal directory,
I200.PNC contains all of the procedures needed to implement the main Pascal progams.
Analog-to-Digital:
SOFITRIG
EXTTRIG
MULTI
Timer/Counters:
TIMER
Digital VO:
DIGITAL
Digital.to-Analog:
DAC
WAVES
Interrupts:
INTRPTS
INTSTRM
DMA:
DMA
DMASTRM
Demonstrates how to use the software rigger mode for acquiring data.
Similar to SOFTTRIG except ttrat an external trigger is used.
Shows how to fill an anay with data using a software trigger.
A short program demonstrating how to program the 8254 for use as a timer.
Simple program that shows how to read and write the digiral VO lines.
Shows how to use t}re DACs. Uses A/D channel 1 to monitor the ouput of DACI.
A more complex program that shows how to use the 8254 timer and the DACs as a
waveform generator.
Shows the bare essentials required for using interrupts.
A complete program showing intemrpt-based sreaming to disk.
Demonstrates how to use DMA to transfer acquired data to a memory buffer. Buffer can
be written to disk and viewed with the included VIEWDAT progam.
Demonstrates how to use DMA for disk streaming. Very high continuous acquisition
rates can be obtained.
BASIC Programs
These programs are source code files so that you can easily develop your own custom software for your 1200
board.
Analog-to-Digital:
SINGLE
DemonsEates how to use the single convert, internal trigger mode for acquiring data.
EXTTRIG
Demonstrates how to use the external trigger to acquire data.
SCAN
Demonstrates how to scan channels to acquire data.
4-27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ada1200

Table of Contents