Setcfg.vi – Measurement Computing UL for NI LabVIEW User Manual

Page 104

Advertising
background image

Universal Library Virtual Instruments (VIs)

Miscellaneous VIs

SetCfg.VI

Sets a configuration option for a board. The configuration information for all boards is stored in the CB.CFG
file. All programs that use the library read this file. This function can be used to override the configuration
information stored in the CB.CFG file.

Summary:

Inputs:

BoardNum

[U32] - The board number assigned when installed with InstaCal. Can

be 0 to 100.

InfoType

[I32] - Specifies which configuration item you wish to retrieve.

DevNum

[I32] - Specifies the board device.

ConfigItem

[I32] - Specifies the configuration item to set.

ConfigVal

[I32] - Set

ConfigItem

to this value.

Output:

ErrCode

- Error code. See ErrMsg.VI

Arguments:

BoardNum

The board number associated with a board when it was installed with InstaCal.

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.

DevNum

Selects a particular device. If

InfoType

=

DIGITALINFO

then

DevNum

specifies

which of the board's digital devices you want to set information on. If

InfoType

=

COUNTERINFO

then

DevNum

specifies which of the board's counter devices.

ConfigItem

Specifies the configuration item you want to set.

The

ConfigItem

value depends on the

InfoType

value. Refer to the "Notes" section

for a list of all possible values for

ConfigItem

.

ConfigVal

The value to set the specified configuration item to.

Notes:

The list of ConfigItem values for each category of configuration information is:

InfoType

=

GLOBALINFO

ƒ

GIVERSION

- CB.CFG file format

ƒ

GINUMBOARDS

- Number of configured boards

ƒ

GINUMEXPBOARDS

- Number of expansions configured boards

InfoType

=

BOARDINFO

ƒ

BIBASEADR

- Base address of board

ƒ

BIBOARDTYPE

- Board Type

ƒ

BIINTLEVEL

- Interrupt level

104

Advertising