User`s guide
Universal Library User's Guide Digital Input/Output Boards - DEMO-BOARD
155
DEMO-BOARD
The DEMO-BOARD is a software simulation of a data acquisition board that simulates analog input and
digital I/O operations.
Analog Input
Analog input functions and methods supported
UL: cbAIn(), cbAInScan(), cbATrig(), cbFileAInScan()
UL for .NET: AIn(), AInScan(), ATrig(), FileAInScan()
Analog input argument values
Options BACKGROUND, CONTINUOUS, SINGLEIO, DMAIO
HighChan 7 max
Rate 300000
Digital I/O
Digital I/O functions and methods supported
UL: cbDIn(), cbDBitIn(), cbDInScan(), cbDOut(), cbDBitOut(), cbDOutScan(),
cbDConfigPort()
UL for .NET: DIn(), DBitIn(), DInScan(), DOut(), DBitOut(), DOutScan(), DConfigPort()
Digital I/O argument values
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.