The capabilities file, The adac-lvi.ini file – Measurement Computing ADAC-LVi User Manual

Page 15

Advertising
background image

Chapter 1 Introduction

ADAC LabVIEW VI

9

The Capabilities File

A Capabilities file contains all the possible programmable options for
each ADAC function call for a particular DAQ board. There is one
Capabilities file per unique DAQ board, ADAC-LVi uses this
information to validate all application program VI call parameters, and
when initializing a logical device from the initialization file described
below. The Capabilities file has a .CAP filename extension. CAP files
are for internal driver use only and should not be changed by the user.

Contents of the Capabilities File includes:

Device capabilities: The features and options the DAQ board
supports

How the board's subsections are divided up into logical hardware
devices (such as ADC0, DAC0, DAC1, DOT0, DIN3, CTR0, etc.)

The ADAC-LVi.INI File

The initialization file specifies how the programmable features of
boards and logical devices are to be initialized during the ADAC-LVi
device allocation VI call. There is only one .INI file per LabVIEW
program application, and the name and location is specified in the
ADAC-LVi.CON file.

The initialization file reduces the amount of user programming required
by initially setting the ADAC-LVi logical device subsystem database
(LDSD) to the desired user application defaults. This feature allows
only the bare minimum amount of ADAC-LVi calls to start a logical
device.

Contents of the INI file includes:

One or more named sections, each corresponding to a Logical
Device, including information for data transfer method, number of
channels enabled, channel gain settings, sampling mode, sampling
rate, notification method, and logical device option information.

If an .INI parameter is not specified, but the capabilities file indicated
support for the option, the parameter will default to the first option for
that entry in the capabilities file.

To configure the ADAC-LVi.INI file open it up in NOTEPAD.EXE.
The file consists of one active section called [LogicalDevice0] and an
inactive section [LogicalDevice1], which has been commented out with
semi-colons. Text within the file describes changing the settings and
adding additional Logical Devices sections.

Advertising