Virtual Test Board

Universal Driver Documentation
This board type causes the driver to emulate the behavior of a typical data acquisition board. This is useful for writing or testing software without access to real hardware.

Table of contents

Operation

Analog Input

Note: The virtual test board acknowledges true voltages. Input modes (set using dscADSetSettings) are identical to the Diamond-MM-16-AT.

Vin 0-3 emulate a triangle wave, peak-to-peak 20V (-10V to 10V) with a period of 6 seconds. Each input is 0.75 seconds out of phase with the previous channel.

Vin 4-7 are mapped (looped back) to the 4 analog output channels. Vin4 <-> Vout0, Vin5 <-> Vout1, etc. The analog output is fixed at +/-10V.

Vin 8 returns -7.5V.

Vin 9 returns -2.5V.

Vin 10 returns 2.5V.

Vin 11 returns 7.5V.

Vin 12-15 are based on the first four output bits of DIO 0. If the bit is high, the Vin returns 5V. If low, the Vin returns -5V.

Vin 16 returns 10mV.

Vin 17 returns -10mV.

Vin 18-31 return random values on each read.

Analog Output

Vout 0-3 emulate 12-bit output in +/-10V mode, so you may pass in 0-4095 as output values.

Digital I/O

The test board DIO emulates an 82C55 chip, with 3 ports of 8 bits (A, B, CL[4], CH[4]). A is looped back to B, CL is looped back to CH.

The test board does not support dscDIOSetConfig. A is always considered an output, B is always an input, CL is output and CH input.


This page was last modified 01:15, 17 Mar 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.