# DEMO-BOARD

The DEMO-BOARD is a software simulation of a data acquisition device that simulates analog input and digital I/O operations. The DEMO-BOARD supports the following features.

## Analog input

Functions

UL: cbAIn(), cbAInScan(), cbATrig(), cbFileAInScan()

UL for .NET: AIn(), AInScan(), ATrig(), FileAInScan()

Python: a_in(), a_in_scan(), a_trig()

Options

BACKGROUND, CONTINUOUS, SINGLEIO, DMAIO

HighChan

7 max

Rate

300000

## Digital I/O

Functions

UL: cbDIn(), cbDBitIn(), cbDInScan(), cbDOut(), cbDBitOut(), cbDOutScan(), cbDConfigPort()

UL for .NET: DIn(), DBitIn(), DInScan(), DOut(), DBitOut(), DOutScan(), DConfigPort()

Python: d_in(), d_bit_in(), d_in_scan(), d_out(), d_bit_out(), d_out_scan(), d_config_port()

PortNum

FIRSTPORTA, FIRSTPORTB

AUXPORT

DataValue

0 to 255 using FIRSTPORTA, FIRSTPORTB, or AUXPORT

BitNum

0 to 15 using FIRSTPORTA

0 to 7 using AUXPORT

## Using the DEMO-BOARD

### Analog input

The DEMO-BOARD simulates eight channels of 16-bit analog input. InstaCal is used to configure the following waveforms on the analog input channels:

- Sine wave
- Square wave
- Saw-tooth
- Ramp
- Damped sine wave
- Input from a data file

The data file is a streamer file, so any data that has been previously saved in a streamer file can be used as a source of demo data by the board. Data files are named DEMO0.DAT through DEMO7.DAT. When a data file is assigned to a channel, the library tries to extract data for that channel from the streamer file. If data for that channel does not exist, then the first (and possibly only) channel data in the streamer is extracted and used.

For example, DEMO2.DAT is assigned as the data source for channel 5 on the DEMO-BOARD. The library will try to extract data from the file that corresponds to channel 5. If DEMO2.DAT has scan data that corresponds to channels 0 through 15, then channel 5 data is extracted. If DEMO2.DAT only has data for a single channel, the data for that channel is used as the data source for channel 5.

### Digital I/O

The DEMO-BOARD simulates the following:

- One eight-bit AUXPORT configurable digital input/output port. Each bit of the AUXPORT generates a square wave with a different period.
- Two eight-bit configurable digital I/O ports — FIRSTPORTA and FIRSTPORTB — which can be used for high speed scanning. FIRSTPORTA functions like AUXPORT in that it generates square waves. Each bit of FIRSTPORTB generates a pulse with a different frequency.