Getcfg.vi – Measurement Computing UL for NI LabVIEW User Manual
Page 98

Universal Library Virtual Instruments (VIs)
Miscellaneous VIs
GetCfg.VI
Returns a configuration option for a board. The configuration information for all boards is stored in the
CB.CFG file. This information is loaded from CB.CFG by all programs that use the library. The current
configuration can be changed within a running program with the SetCfg.VI VI function. This GetCfg.VI
returns the current configuration information.
Inputs:
InfoType
[I32] - The class of configuration information that you want to retrieve.
BoardNum
[I32] - The board number assigned when installed with InstaCal. Can be
0 to 100.
DevNum
[I32] - Specifies the board device.
ConfigItem
[I32] - Specifies the configuration item.
Outputs:
ConfigVal
[I32] - Current configuration value.
ErrCode
[I32] - Error code. See ErrMsg.VI
Arguments:
InfoType
The configuration information for each board is grouped into different categories.
This argument specifies which category you want. It should be set to one of the
following constants:
GLOBALINFO
- Information about the configuration file.
BOARDINFO
- General information about a board.
DIGITALINFO
- Information about a digital device.
COUNTERINFO
- Information about a counter device.
EXPANSIONINFO
- Information about an expansion device.
MISCINFO
- One of the miscellaneous options for the board.
BoardNum
The board number associated with a board when it was installed with InstaCal.
DevNum
Selects a particular device. If
InfoType=DIGITALINFO
then
DevNum
specifies which
of the board's digital devices you want information on. If
InfoType=COUNTERINFO
then
DevNum
specifies which of the board's counter devices.
ConfigItem
Specifies the configuration item you want to retrieve.
The
ConfigItem
value depends on the
InfoType
value. Refer to the "Notes" section
for a list of all possible values for
ConfigItem
.
ConfigVal
The specified configuration item is returned to this variable.
Notes:
The list of
ConfigItem
values for each category of configuration information is:
InfoType
=
GLOBALINFO
GIVERSION
- CB.CFG file format. This information is used by the library to determine compatibility.
GINUMBOARDS
- Maximum number of installable boards
GINUMEXPBOARDS
- Maximum number of expansion boards allowed to be installed.
InfoType
=
BOARDINFO
BIBASEADR
- Base address of board
BIBOARDTYPE
- Returns a number in the range of 0 to 8000 Hex.
BIINTLEVEL
- Interrupt level. 0 for none or 1 - 15
98